Keep SQLtest alive: Help cover this month's $100 server costs to keep all lessons and the SQL playground online. Support the project →
SQL code copied to buffer
Task 23:

Clients Who Met at Rental Points

MySQL
Find clients who met at one of the rental points. Display a table with fields meet_time - according the rental time, store_id, customers - list of meeting clients in the format JOHN SNOW,DAENERYS TARGARYEN sorted by clients's last name.
The results table should be sorted by meeting time and store id.
(Customers met if they rented movies from the same branch at the same time. The meeting place is determined by the employee's place of work.)
Expected result Columns: 3 · Rows: 25
meet_time store_id customers

Sample rows open after wrong checks: 0 of 3

Write your query below and click "Check it!". Tables are described in the right pane.

The query result will appear here. Ctrl+Enter - Run query