Advertisements
Advertisements
Question
Consider the following table and write the output of the following SQL Queries.
Table: Student
| StudentID | Name | DateofBirth | Marks | City |
| 301 | Aryan | 15-03-2005 | 88 | Delhi |
| 302 | Ayesha | NULL | 90 | NULL |
| 304 | Aditi | NULL | 85 | Pune |
| 305 | Rajesh | 11-01-2006 | 72 | NULL |
| 306 | Maria | 29-04-2005 | 95 | Chennai |
Write the output of the following SQL Queries.
-
SELECT Name, LENGTH(Name) FROM Student WHERE StudentID < 303; -
SELECT lower(Name) FROM Student WHERE MONTH(DateofBirth)= 3; -
SELECT AVG(Marks) FROM Student; -
SELECT Name, Marks FROM Student WHERE Marks BETWEEN 90 AND 100;
Very Short Answer
Advertisements
Solution
Name LENGTH(Name) Aryan 5 Ayesha 6
lower(Name) aryan
AVG(Marks) 86.0000
Name Marks Ayesha 90 Maria 95
shaalaa.com
Is there an error in this question or solution?
