Fewpal
0 votes
225 views
in Information Technology by (47.4k points)
edited by

Consider the table STUDENT given below:

RollNoNameClassDOBGenderCityMarks
1AnandXI6/6/97MAgra430
2ChetanXII7/5/94MMumbai460
3GeetXI6/5/97FAgra470
4PreetiXII8/8/95FMumbai492
5SaniyalXII8/10/95MDelhi360
6MaakhiyXI12/12/94FDubai256
7NehaX8/12/95FMoscow324
8NishantX12/6/95MMoscow429

1. State the command that will give the output as :

Name
Anand
Chetan
Geet
Preeti

i. select name from student where class=’XI’ and class=’XII’;

ii. select name from student where not class=’XI’ and class=’XII’;

iii. select name from student where city=”Agra” OR city=”Mumbai”;

iv. select name from student where city IN(“Agra”, “Mumbai”);

Choose the correct option:

a. Both (i) and (ii).

b. Both (iii) and (iv).

c. Any of the options (i), (ii) and (iv)

d. Only (iii)

(2). What will be the output of the following command?

Select * from student where gender =”F” order by marks;+

(a) 

RollnoNameClassDOBGenderCityMarks
4
3
7
6
Preeti
Geet
Neha
Maakhiy
XII
XI
X
XI
8/8/95
6/5/97
8/12/95
12/12/94
F
F
F
F
Mumbai
Agra
Moscow
Dubai
492
470
324
256

 (b)

RollnoNameClassDOBGenderCityMarks
6
7
3
4
Maakhiy
Neha
Geet
Preeti
XI
X
XI
XII
12/12/94
8/12/95
6/5/97
8/8/95
F
F
F
F
Dubai
Moscow
Agra
Mumbai
256
324
470
492

(c)

GenderMarks
F
F
F
F
256
324
470
492

(d) 

GenderMarks
F
F
F
F
492
470
324
256

Please log in or register to answer this question.

1 Answer

+1 vote
by (46.2k points)

(1) b. Both (iii) and (iv)

(2) b.

RollnoNameClassDOBGenderCityMarks
6
7
3
4
Maakhiy
Neha
Geet
Preeti
XI
X
XI
XII
12/12/94
8/12/95
6/5/97
8/8/95
F
F
F
F
Dubai
Moscow
Agra
Mumbai
256
324
470
492

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...