S
Sam
Suppose I have the following tables:
CUSTOMER
Customer_ID
Customer_Name
TICKETS
Ticket_ID
Ticket_Text
Ticket_Status (either 'closed' or 'open')
CUSTOMER_TICKETS (link table)
Customer_ID
Ticket_ID
This is database to allow customers to raise 'tickets'. What I want is a
query which shows the Customer ID, Customer Name, number of open tickets
and number of closed tickets all on the same row. What query would I need
to show this?
There is a many-to-many relationship meaning that a ticket can be linked
to multiple customers and a customer may be linked to multiple tickets.
Thanks
CUSTOMER
Customer_ID
Customer_Name
TICKETS
Ticket_ID
Ticket_Text
Ticket_Status (either 'closed' or 'open')
CUSTOMER_TICKETS (link table)
Customer_ID
Ticket_ID
This is database to allow customers to raise 'tickets'. What I want is a
query which shows the Customer ID, Customer Name, number of open tickets
and number of closed tickets all on the same row. What query would I need
to show this?
There is a many-to-many relationship meaning that a ticket can be linked
to multiple customers and a customer may be linked to multiple tickets.
Thanks