Comprehension

Consider the following table and answer the questions that follow :
Teacher
NoNameAgeDepartmentDobSalarySex
1Jagan34Comp10/1/9712000M
2Shona31Hist24/3/98NULLF
3Sandeep32Maths12/12/9830000M
4Sangita35Hist01/07/9940000F
5Rohit42Maths05/09/9725000M
6Sharma50Hist27/06/9830000M
7Amit44Comp25/02/9721000M
8GirishaNULLMaths31/07/9720000F

Question: 1

Choose the correct output of the following SQL query
Select min(Dob) from Teacher;

Updated On: Sep 23, 2024
  • 01/07/99
  • 25/02/97
  • 31/07/97
  • 10/1/97
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

The correct option is (D) :10/1/97.
Was this answer helpful?
0
0
Question: 2

Choose the correct output of the following query
select count(Age) from Teacher;

Updated On: Sep 23, 2024
  • 9
  • 7
  • 8
  • NULL
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

The correct option is (B) :7.
Was this answer helpful?
0
0
Question: 3

Choose the correct query to display Names of Teachers along with Salary of those Teachers who are in History department ?

Updated On: Sep 23, 2024
  • Select Name from Teacher where Department - 'History';
  • Select Name, Salary from Teacher where Department = 'Hist';
  • Select Name, Salary from Teacher where Department - 'History';
  • Select Salary from Teacher where Department = 'Hist';
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

The correct option is (B) :Select Name, Salary from Teacher where Department = 'Hist';
Was this answer helpful?
0
0
Question: 4

Suppose the teacher with No - 7 left the school, suggest the correct query to delete that record from the teacher table :

Updated On: Sep 23, 2024
  • Delete from Teacher;
  • Delete from Teacher where No = 7;
  • Delete from Teacher, where No = '7';
  • Delete * from Teacher where No = 7;
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

The correct option is (B) :Delete from Teacher where No = 7;
Was this answer helpful?
0
0
Question: 5

Choose the correct statement with reference to SQL table Teacher
A. Alter table Teacher is used to make changes in the structure of the table
B. Update Teacher is used to modify existing data in the table
C. Desc Teacher will display the tuples in sorted order
D. Select * from Teacher will display all the attributes along with their data types
Choose the correct answer from the options given below :

Updated On: Sep 23, 2024
  • A, B and D only
  • C and D only
  • A and D only
  • B, C and D only
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

The correct option is (B) :C and D only.
Was this answer helpful?
0
0

Top Questions on Reading Comprehension

View More Questions