The following relational tables/schemes are given:
In bold is the primary key, in Italics is foreign key:
-City(Name,Country,Population)
-Venue(VID,Capacity,Name)
-Concert(KID,ID,DID,duration)
-Performer(ID,KID,age,name)
-Ticket(TID,KID,price,type)
Now my assignment is to find all the concerts where there were more VIP tickets than other tickets. VIP is of the attribute type, in tickets. I honestly have thought about this problem a while. My main idea what to group KID,Type,count(*) in (tickets) and somehow add the tickets of type != VIP and select where that is less than VIP tickets, but I just don;t know how to do that formally..