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

as a general practice, it is recommended to have dbo be the owner of all database objects however, in your database you find number of tables owned by a user other than dbo, how could you fix this? : Sql server administration

621


In how many ways you can invoke ssrs reports?

111


what is bit datatype? : Sql server database administration

575


Explain what stored procedure sp_replcounters is used for? : sql server replication

1130


Suppose i have a table that contains 5 columns like col1,col2...colm5.I want to import only two column through BCP utility.How to do same through BCP in sybase.

2075






What’s the use of custom fields in report?

650


How to call stored procedure using http soap?

612


What stored by the msdb? : sql server database administration

641


What is user-defined functions? What are the types of user-defined functions that can be created?

657


Find columns used in stored procedure?

613


Tell me what is the difference between locking and multi-versioning?

673


Do you know what are the reporting services components?

624


What is the security principal at the server level that represents your session?

643


What are the steps you should follow to start sql server in single-user mode?

564


What is a join in sql? What are the types of joins?

607