Display a roll having miminum marks in two subjects?

Answer Posted / pradip jain

Select * from marks where
(Math=(select min(Math)from
marks) and phy=(select min(phy) from marks))
OR
(Math=(select min(Math)from
marks) and chem=(select min(chem) from marks))
OR
(Phy=(select min(phy)from
marks) and chem=(select min(chem) from marks))


Sonia if it is 3 subject and will be combine with or clause

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can a database be shrunk to 0 bytes, if not, why? : Sql server administration

802


Does group by or order by come first?

713


What is temporary stored procedure?

707


How to define the name and server for a new dsn?

721


Can you please explain the difference between primary keys and foreign keys?

838






How do I know if localdb is running?

693


What is difference between count (*) and count 1?

678


What are the differences between stored procedure and the dynamic sql?

762


What’s the distinction between dropping a info and taking a info offline?

805


What are the tables in sql?

788


what is an extended stored procedure? Can you instantiate a com object by using t-sql? : Sql server database administration

785


How to execute stored procedure and set temp table in sql server?

740


What is difference between count (*) and count column?

664


What is the difference between createstatement and preparedstatement?

689


Explain active/passive and active/active cluster configurations?

798