Note that in order t carry out the above task, you need to run the following SQL:
SELECT *
FROM students
WHERE DOB <= '1995-01-01';
What is the above query about?
This query will select all columns from the 'Students' table and only return records where the value in the 'Date of Birth' column is less than or equal tothe current date.
Here is a breakdown of the query:
SELECT *: This selects all columns from the 'Students' table.
FROM Students: This specifies the table that you want to query.
WHERE Date of Birth <= CURDATE(): This filters the results to only include records where the value in the 'Date of Birth' column is less than or equal to the current date.
The CURDATE() function returns the current date.
Full Question:
Limit the query results to records where the student's date of birth DOB is less than or equal to January 1, 1995. Run the query to view the results.