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 are the advantages of using stored procedures?
How can you insert null values in a column while inserting the data?
What is a join in sql? What are the types of joins?
How to identify current user in ssrs report?
What is the difference between local and global temporary tables?
What are different types of table joins?
Explain the database you used in your final year project?
What are trace files?
Which operator do you use to return all of the rows from one query except rows are returned in a second query?
What are the results of running this script?
Who is the owner of a schema in ms sql server?
How do I start sql server agent automatically?
What is 2nf in normalization?
Can one drop a column from a table?
List the different types of collation sensitivities in sql server?