Difference between inner join and left join.
Asked in the technical interview stage. SQL concept. Using users and tickets, write a query that demonstrates the result of preserving every user, whether or not that user has a ticket.
user_id, user_name, ticket_id, ticket_subject, and match_statusmatch_status to matched or no_ticketuser_id, then ticket_id, with users without tickets last within each user| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique user identifier |
| user_name | VARCHAR(100) | User display name |
| VARCHAR(255) | User email address |
| Column | Type | Description |
|---|---|---|
| ticket_idPK | INT | Unique ticket identifier |
| user_id | INT | User associated with the ticket |
| subject | VARCHAR(200) | Ticket subject |
| status | VARCHAR(30) | Current ticket status |