need query based on the below requirement [message #635061] |
Thu, 19 March 2015 11:37 |
|
vasu.bods703
Messages: 1 Registered: March 2015 Location: Chennai
|
Junior Member |
|
|
Hi,
I have a table with 2 columns(EMPID,SAL).I want to write a query based on those 2 columns,and my query should be like this
EMPID,COUNT OF EMPLOYEE WHO HAS LESS SALARY THEN EACH EMPLOYEE
My table is
EMPID,SAL
A,10000
B,20000
C,30000
D.40000
Thanks&Regards,
Vasu.
|
|
|
|
Re: need query based on the below requirement [message #635063 is a reply to message #635061] |
Thu, 19 March 2015 11:41 |
John Watson
Messages: 8931 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
This looks like a college homework question, yes? No-one will goive you the answer, but if you show what you have tried so far, you will get advice.
Before you reply, be sure to read about [code] tags. And then post the code need to create your table and insert those rows, and what SELECT you have tried. Hint: think sub-queries.
|
|
|
Re: need query based on the below requirement [message #635066 is a reply to message #635061] |
Thu, 19 March 2015 12:42 |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
vasu.bods703 wrote on Thu, 19 March 2015 12:37
EMPID,COUNT OF EMPLOYEE WHO HAS LESS SALARY THEN EACH EMPLOYEE
American english is my first and only language. I do not understand what that means. We will need a full expalanation with output expected.
|
|
|
|
|