What's an inner join?
Write a PostgreSQL query that demonstrates an inner join between employees and access_cards. Return only records where an employee has a matching access card. Do not include employees without cards or cards without a matching employee.
employee_id, employee_name, card_id, and card_statusemployee_id ascending, then card_id ascending| Column | Type | Description |
|---|---|---|
| employee_idPK | INT | Unique employee identifier |
| employee_name | VARCHAR(100) | Employee display name |
| Column | Type | Description |
|---|---|---|
| card_idPK | INT | Unique access card identifier |
| employee_id | INT | Employee assigned to the card |
| card_status | VARCHAR(20) | Current card status |