CBSE · 083Class XII · 2022Section A1 mark

Question 5a

7 June 2022 · Computer Science (083)

Table: VACCINATION_DATA

VIDNameAgeDose1Dose2City
101Jenny272021-12-252022-01-31Delhi
102Harjot552021-07-142021-10-14Mumbai
103Srikanth432021-04-182021-07-20Delhi
104Gazala752021-07-31NULLKolkata
105Shiksha322022-01-01NULLMumbai

Write the output of the SQL query: SELECT Name, Age FROM VACCINATION_DATA WHERE Dose2 IS NOT NULL AND Age > 40;

Answer

NameAge
Harjot55
Srikanth43

Explanation

Selects records where Dose2 is not null and Age is greater than 40.