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
Tell me what is log shipping?
how you can list all the tables in a database?
What are indexes in sql?
Explain the database you used in your final year project?
Can you get second highest salary from the table?
what is blocking? : Sql server database administration
Write an sql query to find first weekday of the month?
What is 'Join' and explain its various types.
What happens if null values are involved in bitwise operations?
How to compare the top two records using sql?
Tell me what do we need queues in sql service broker?
what is a schema in sql server 2005? Explain how to create a new schema in a database? : Sql server database administration
Explain different types of locks in sql server.
What is the purpose of the master database?
How to assign new column names in a view?