1.

Kunal has entered the following SQL- command on Table 'STUDENT' that has TotalMarks as one of the columns. SELECT COUNT (*) FROM STUDENT;The output displayed is 20.Then, Kunal enters the following command :SELECT COUNT (*) FROM STUDENT WHERE TotalMarks <100;The output displayed is 15.Then, Kunal enters the following command :SELECT COUNT (*) FROM STUDENT WHERE TotalMarks >= 100;He predicts the output of the above query as 5. Do you agree with Kunal ? Give reason for your answer.

Answer»

The prediction of Kunal is correct. Since, total entries arc 20, which are total numbers of students. 15 students got marks less than 100. 

So, rest are getting the marks which is equal to or greater than 100. (20 - 15 = 5).



Discussion

No Comment Found

Related InterviewSolutions