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...

I have student marks in a student table. I need second
highest mark .Then what will the query for this?

Answer Posted / adarsh pandey

select distinct mark from student_mark s
where (select count(distinct s1.mark) from student_mark s1
where s1.mark>=s.mark )=4;

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you optimize a stored procedure optimization?

1036


What is the latest version of microsoft sql server?

1043


What do you know about system database? : SQL Server Architecture

983


While using a cursor, how can you differentiate between a deleted row and a row that has been inserted with null data values?

1038


What do you mean by authentication modes in sql server?

1083


I have a table Events Events containing cardno,time,id,name--each id has a cardno my requirement is every day each employee swipe the card several times i want to calculate first and last time of each card the output should be name 1 2 6 7 in out in out holiday holiday xxx 09:30 06:30 09:40 06:45 where 1,2...... are dates for example january 1,2, etc. 6 and 7 are saturday and sunday how it is posssible

2239


What is sql server replication? : sql server replication

981


What is difference between index and primary key?

1097


What is data compression? : sql server database administration

966


How to delete an existing row with delete statements in ms sql server?

1087


What is db stored procedure?

878


How do I find the default sql server instance?

941


What is an active database?

1009


How to filter out duplications in the returning rows in ms sql server?

1132


what does the automatic recovery do? : Sql server administration

1014