Given an employee table, how would you find out the second
highest salary?

Answer Posted / vivek mohan singh

select salary from tablename order by salary desc limit 1,1;

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why does this query return 0?

623


What is the physical representation for a many-to-many relationship?

576


Explain about query and reporting.

1691


What is dbms and its application?

554


Can an extended stored procedure be called from inside a user-defined function?

610






Hi , any one can help me on the same,this is regarding the Informatica Function doc,i want to know how developer is will develop the mapping. pl forwar the any function doc .just for my references. svlc75@yahoo.co.in

1587


You are testing the performance of a query the first time you run the query, the performance is slow. the second time you run the query, the performance is fast. why is this?

525


Explain the role of indexing in databases?

642


fact table and dimension table containg one to many relationship or many to one relastionship

2078


How can you log an error to the server event log from a stored procedure?

559


Explain what a database is?

613


Pgm A calls Pgm B and pgm B uses cursor, when pgm B is called second time, the program is abending saying the cursor is opened? Why?

2010


Who are end users in dbms?

548


On friday, you issued several insert statements using query analyzer. You then verified the data had been correctly entered with a select statement on monday, your users report that the data is not there what happened?

567


What is the maximum length of an extended property?

559