| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.oracle -> creating joins between tables with "group by" clause to limit rows
Hi!
I have problems creating joins between tables and to limit rows for a
specified clolumn. I have 2 tables!
employees
departments
I face the problems with the GROUP BY clause and i don't get it handled solving that problem. Neither with oracle sql or SQL1999 syntax!
Oracle SQL:
SELECT
dep.department_name as "Name", dep.location_id as "Location", emp.salary AS "Salary"
SQL1999:
SELECT
department_name as "Name",
location_id as "Location",
salary AS "Salary"
FROM employees emp
JOIN departments dep
USING(department_id)
GROUP BY department_id;
for any help
Thank you
Tamer Received on Tue May 11 2004 - 12:00:24 CDT
![]() |
![]() |