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
Define ACID properties in a Database?
What is sub-query in sql server?
What is built-in/administrator?
What are the types of database recovery models?
What is report snapshot?
How to make a column nullable?
Where are sql server user names and passwords stored in sql server?
Is ssrs support other database except ms sql server?
Define clusters?
How to delete duplicate rows in sql server?
What is sql server locking?
Explain what is analysis service repository?
What is ssl in sql server?
What is SQL Azure Federations?
Tell me about joins in database system and explain each in detail.