You have two tables:
You need to check if there are employees who failed the Certification 2. If yes, get their phone numbers and call them. If no, show a message that everything is okay.
Enter the following SQL query:
SELECT EXISTS(SELECT * FROM T2 WHERE 'Certification 2' = "FAILED"); SELECT T1.'Employee', T1.'Job Title', T1.'Phone Number', T2.'Certification 2' FROM T1 JOIN T2 ON T1.'Employee'=T2.'Employee' WHERE T2.'Certification 2' = "FAILED" |