Your question is SQL for Birthday Matching. Start with the requirements and the two tables on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
PharmaACE wants to support employee birthday reporting in its internal analytics tools. Given your PharmaACE employee ID, identify how many other employees have the same calendar birthday, regardless of birth year.
Write a PostgreSQL query that uses the employee profile record to obtain the target birthday and compares it with the birthdays of all employees.
\$1.birth_date, ignoring the year.people_with_same_birthday.| Column | Type | Description |
|---|---|---|
| employee_idPK | INT | Unique PharmaACE employee identifier |
| employee_name | VARCHAR(100) | Employee's full name |
| department | VARCHAR(80) | Employee's department |
| birth_date | DATE | Employee's date of birth |
| Column | Type | Description |
|---|---|---|
| employee_idPK | INT | Employee identifier associated with the profile |
| profile_status | VARCHAR(20) | Current profile status |