Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> SQL help needed
Using the Oracle example table 'EMP', I want to produce a query that will
show me the number of employees whose Salary falls within a particular range
(i.e less than 1000, between 1000 and 3000, and then greater than 3000), and
then grouped by Job. The output I want is as follows:-
Job $ <1000 $ 1000-3000 $ 3000+ ======= ==== ======== ===== Clerk 2 2 Salesman 4 Manager 3 Analyst 2President
Anyone offer any help on this knotty little problem ?
Many thanks
Andy
(Sorry if the table isn't lined up very well)
Received on Mon Sep 28 1998 - 10:09:49 CDT