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

What is dbms and its application?

560


Write the fastest query to find out how many rows exist in a table?

668


What is normalization? Explain different levels of normalization?

59854


How to read and create .LDC data files which are used by linguatic dictionary.

2065


Hi my program is accesing data from two db2 databases.what is the bind card for this program to genarate plan? how to specify the two owners and two qualifiers in bind card

1681






Why does this query return 0?

626


1. Using the XML Document below, with the URI “recipe.xml” define the following queries in XQuery: a.) Give the names of all breakfast in the menu. b.) Select breakfasts that have price lower than $7.00? Belgian Waffles $5.95 two of our famous Belgian Waffles with plenty of real maple syrup 650 Strawberry Belgian Waffles $7.95 light Belgian waffles covered with strawberries and whipped cream 900 Berry-Berry Belgian Waffles $8.95 light Belgian waffles covered with an assortment of fresh berries and whipped cream 900 French Toast $4.50 thick slices made from our homemade sourdough bread 600 Homestyle Breakfast $6.95 two eggs, bacon or sausage, toast, and our ever-popular hash browns 950

1660


What are the key features of dbms?

574


You have two tables with a one to many join based on a field named id. You need to find records in the parent table that are not represented in the child table. how would you accomplish this?

601


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?

530


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

2082


How can I detect whether a given connection is blocked?

588


How to replace not in with not exist?

1470


Explain about network model?

591


Explain about xml databases?

626