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
Can we call future method from queueable?
Explain what are commit and rollback in sql?
How do I completely remove sql server instance?
Explain the truncate command?
What command is used to delete a table from the database in the sql server and how?
What are sql dirty pages?
What is difference between stored procedure and user defined function?
What is an index. What are the types?
Explain primary key, foreign key and unique key?
What is a non clustered primary key?
If user is owning any SQL Objects, can we drop that user
hi, how to link a text file and a .rpt file in my tables of sql server and to retrieve those records for further use. reply me as soon as possible.
there is a trigger defined for insert operations on a table, in an oltp system. The trigger is written to instantiate a com object and pass the newly inserted rows to it for some custom processing. What do you think of this implementation? Can this be implemented better? : Sql server database administration
What is trigger explain with program?
What is report snapshot in ssrs?