I have these 3 tables :
1)Sailors (sid:INT, sname:VARCHAR(30), rating:INT, age:INT)
2)Boats (bid:INT, bname:VARCHAR(30), color:VARCHAR(10))
3)Reserves (bid:INT, sid:INT, day:DATE)
I don't know how to build a query that displays : The names of the sailors who have reserved at least 2 boats in different colors!
You can create a group for each sailor, and then demand that there are at least 2 distinct colors in that group: