Display a roll having miminum marks in two subjects?
Answer Posted / sonia
create table student7(Roll int,English int,Hindi int,Maths
int)
insert into student7 values(1,12,15,9)
insert into student7 values(2,23,3,13)
insert into student7 values(3,15,12,4)
select roll from student7 where
maths=(select min(maths) from student7)
AND
English=(select min(english)from student7)
Rajesh, AND Operator is used b/w two conditions . Answer
given by you is limted to two subjects, if there are three
or more subjects then
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
How to rename databases in ms sql server?
What does the update command do?
What are rest-style architecture's?
Other than truncate statement, which other command can by-pass the trigger on the tables?
Explain syntax for disabling triggers?
How to list all login names on the ms sql server?
What is the difference between online clustering and Offline clustering?
How to create a view and a stored procedure in ms sql server using "create view/procedure" statements?
How would we use distinct statement? What is its use?
What is the difference between dataadapter and datareader?
What the different types of Replication and why are they used?
What is the difference between ddl,dml and dcl commands?
What is multilevel indexing?
What is a transactions?
Describe triggers features and limitations?