NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Dude (Score:1)
JeffK
What was that other guys problem? You run into those jerks everywhere.
Re:Dude (Score:1)
I'm currently looking at Tomcat to see if a java servlet can run on it. I might have to use win2k for that since the company that created the servlet (and assoicated apps) is windows only. I would like to stay on Linux/Apache but I may have to move to win2k/Apache. I hope I won't have to go win2k/IIS.
I think the biggest problem with the search script is that I'm potentially querying 2 tables. With no subqueries I had to make 2 queries and then merge them. Not that big
Try this (Score:1)
# max_salary table to get the names of the
# employees with the highest salary.
#
SELECT employee_name
FROM employee, salary, max_salary
WHERE employee.employee_id = salary.employee_id
AND salary = max_salary
---------------------------------------------------------------
SELECT employee_name
FROM employee, salary
WHERE employee.employee_id = salary.employee_id
AND salary = (SELECT MAX(salary.salary) FROM
salary);
----------------------------------------------------------------
SELECT @salary:=MAX(salary.salary) FROM salary;
UPDATE salary SET salary = salary *
salary = @salary;
You have to work around the IN.
I'm not really great at perl yet. But hopefully
you will be able to make use of
the SQL
Good luck
JeffK
Reply to This
Parent
Re:Try this (Score:1)
Know of any good SQL books? I suppose I should poke around the usenet archives, but I'm lazy and like to get recommendations before I spend money on an area I'm not so knowledgeable.