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 is attribute? : sql server analysis services, ssas
Explain system functions or built-in functions? What are different types of system functions?
What is RAID? What are the different types of RAID configurations?
Can sub report data source be different from that of the parent report?
How to transfer a table from one schema to another?
What is logshipping and its purpose?
What is user-defined function?
How to Sync Two SQL Azure Databases?
What is partition index in sql server?
When columns are added to existing tables, what do they initially contain?
Explain log shipping and mention its advantages.
What is use of except clause? How it differs from not in clause?
which backup strategy you are following at ur company
How to delete duplicate rows in sql server?
Different types of keys in SQL?