An employee table, with the columns id, name, sal and
dob.Query to select emp names of all highest salaries(there
are 4-5 people having the same salary which happens to be
the highest).

Answer Posted / n@n!

emp table= emp;
column id =column_id;
name = name;
sal= sal;
dob= dob;


select top 1 name,sal,column_id,dob from emp order by sal
desc

while u run this query only one row was effected which
shows employee taken highest salary along with details like
column id,dob,name,sal.

if u want 5 employees list then replace top 1 by top 5



plz let me know if it was wrong (along with ur
query)...................

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can anybody help i put the pharma and bank project in my resume, but i dont know what to tell about them, any body tell the where can i get the information about them,what i need to tell about these applications,please help me

1593


Can anyone write test cases on google account creation page in the testing template format , urgent pls and explain if possible how to execute also

1581


how can u prepare the test plan?

1785


What is unit level testing?

645


What are the main key components in web applications and client and server applications?

710






What are the two main categories of software testing?

680


what is the general pattern of explanation of projects in interview, can u ans me plz.......... ex: online banking application

1586


write a testing stratgy \ approach for a product that you are use every day (e.g gmail, out look etc)

1455


How to explain the Insurance project in the interview?

1079


What is a code walk through?

652


What is PBX Testing & What is Test coverage?

9829


what is scrum how with ex?

1618


What is XML Testing? Do we have any tools to test the XML? Please let me know.

1564


What types of testing is specifically important for web testing?

664


What is a defect?

652