Viewing 7 posts - 1 through 7 (of 7 total)
How can I count the rows when I make new table. Here is my code:
SELECT EMPLOYEE_ID, LAST_NAME, SALARY, JOB_ID, COMMISSION_PCT, DEPARTMENT_ID, COUNT(TO_CHAR(HIRE_DATE, 'DAY')) AS NUM_EMPLOYEES
FROM EMPLOYEES
WHERE TO_CHAR(HIRE_DATE, 'Day') = 'Monday'
GROUP...
January 6, 2015 at 3:57 pm
SELECT
DISTINCT E.JOB_ID
,D.DEPARTMENT_NAME
,COUNT(E.LAST_NAME) OVER
(
...
January 6, 2015 at 3:43 pm
I made it. Thank you. If I have any other questions I will post them. Thanks!
January 4, 2015 at 3:47 pm
Here is the picture: https://www.dropbox.com/s/v9l4sp6o2lml101/2.PNG?dl=0
January 4, 2015 at 3:39 pm
Thank you! But I do not want to for example IT_PROG to be displayed 5 times. Please take a look at the attached picture. I tried to use DISTINCT, but...
January 4, 2015 at 3:08 pm
The tables are linked by these lines:
FROM EMPLOYEES E JOIN DEPARTMENTS D
ON (E.DEPARTMENT_ID = D.DEPARTMENT_ID)
The names of the tables are called: EMPLOYEES and DEPARTMENTS
January 4, 2015 at 10:09 am
Viewing 7 posts - 1 through 7 (of 7 total)