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
What are number line correlation administrators will use while working with a subquery?
What is sql collation?
How to transfer data from a cursor to variables with a "fetch" statement?
How can you check the version of sql server?
What is bcp? When does it use?
What are the disadvantages of merge replication?
List the different types of collation sensitivities in sql server?
mention different types of relationships in the dbms?
What are the types of lock supported by ?
What are the differences between union, intersect, and minus operators?
List some of the rules that apply to creating and using a ‘view’
What are the differences between substr and charindex in sql server.
Can you explain what is sql server english query?
what is unique and xaml nonclustered index
How to find the version of sql server? : sql server database administration