Id of bills with the highest number of distinct items Select BillID From L.BillItem Group By BillID Having Count(*) >= ALL (Select Count(*) From L.BillItem Group By BillID) --- Very hard: List all couples of cinema (names only), that have screened same movies (the same set of movies). List only couples, where Name1= ALL (Select Count(*) From L.BillItem Group By BillID) --- List names of cinemas with number of their screenings. There are not cinemas without any screening. select program.Name, count(*) from Program program group by program.Name --- ID of bills with the most expensive item in the shop select distinct bi.BillID from BillItem bi inner join Item item on item.ID = bi.ItemID where item.Price >= (select max(Price) from Item) ---