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?

Answers were Sorted based on User's Feedback



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

Answer / b.bathakaraithangam,giri

select * from student where mark=(select max(mark) from
student where mark not in (select max(mark) from student))

Is This Answer Correct ?    2 Yes 0 No

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

Answer / 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

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

Answer / shrikant

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

Is This Answer Correct ?    2 Yes 1 No

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

Answer / rias

Select MIN(MARK) from student where mark in (select Top 2
mark from student order by mark desc)

Is This Answer Correct ?    1 Yes 0 No

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

Answer / sadaq moulani

select top 1 marks from student where marks in(select
distinct top 2 marks from student order by marks desc)

Is This Answer Correct ?    1 Yes 0 No

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

Answer / mohammed mujahid

select MAX (EmployeeSalary) from EmployeeDetails where
EmployeeSalary in (select MAX(EmployeeSalary) from
EmployeeDetails)


Here I have changed the table name and column name plz
check it ones with student details

Is This Answer Correct ?    1 Yes 0 No

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

Answer / rajat kumar

select top 1 marks from student where marks <(select max(marks) from student) order by marks desc

Is This Answer Correct ?    1 Yes 0 No

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

Answer / kunal sain

select mark from student s
where 1=(select count(*) from student s1
where s1.mark<s.mark);

Is This Answer Correct ?    5 Yes 5 No

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

Answer / sanah

select top 1 marks from marks where marks
<(select max(marks) from marks) order by 1 desc

Is This Answer Correct ?    3 Yes 3 No

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

Answer / abhishek srivastava

select top 1 marks from (select top 2 distinct marks from
students order by marks desc)
order by marks

Is This Answer Correct ?    3 Yes 3 No

Post New Answer

More SQL Server Interview Questions

What function does a database engine serve in the sql server?

0 Answers  


what is the difference between delete table and truncate table commands? : Sql server database administration

0 Answers  


What is the use of CASCADE CONSTRAINTS?

3 Answers  


Repair mdf file

2 Answers  


Find columns used in stored procedure?

0 Answers  


What is the minimum and maximum number of partitions required for a measure group? : sql server analysis services, ssas

0 Answers  


Which language is supported by sql server?

0 Answers  


my problem is tempdb tempdb(dbname) 77752.95 MB(db size) 25345.03 MB (unallocated size) suppose i increased temp db size 10 gb . after increase the temp db showing 87 gb (dbsize) 25346.03MB(unallocated size)--unallocated size is showing same .please clarify.

1 Answers  


Can someone suggest me the best institute to learn SQL Server... I want to gain in depth knowledge on SQL Server Development. I have been to naresh, peers, sql school,mind q systems... Any idea about best faculty....

3 Answers  


What are pages and extents? : SQL Server Architecture

0 Answers  


If I delete a template from the list in sql studio, will it be deleted from the hard disk? : sql server management studio

0 Answers  


What are the new data types are introduced in sql 2000?

0 Answers  


Categories