Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to find the second highest salary from emp table?

Answer Posted / udayalakshmij

select emp_name,max(salary) from emp except(select max(salary) from emp);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to include numeric values in sql statements? : Sql dba

1147


What is snowflake sql?

1127


What is nosql vs sql?

1225


what are date and time data types? : Sql dba

1026


Write an sql query to select all records from the table?

1076


What is the largest value that can be stored in a byte data field?

1058


How many unique keys can a table have?

1066


What are stored procedures used for?

1049


what are the non-standard sql commands supported by 'mysql'? : Sql dba

1173


How to handle bulk data?

1364


How do you update a table in sql?

1038


Define tables and fields in a database

1176


What is left inner join in sql?

1091


How can we optimize a sql query?

1107


What are the types of triggers in sql?

1140