DA0-002 Data Concepts and Environments • Set 2
DA0-002 Data Concepts and Environments Practice Test 2 — 15 questions with explanations. Free, no signup.
A healthcare organization maintains a database of patient records. The database has a table 'patients' with columns: patient_id (primary key), first_name, last_name, date_of_birth, gender, and last_visit_date. A data analyst is tasked with creating a report that lists all patients who have not visited in the last two years. The analyst writes a query: SELECT * FROM patients WHERE last_visit_date < DATEADD(year, -2, GETDATE()); However, the query returns zero rows, even though the analyst knows there are patients who have not visited for over two years. Upon inspection, the analyst discovers that the last_visit_date column contains NULL values for patients who have never visited. Which modification to the query should the analyst make to include patients with NULL last_visit_date?
Choose an answer to begin — your selection is scored in the full session.
15 questions · instant feedback and full explanations after every question.