In the casino industry, trip defines as total activities within day. A guest might play table games then turn around and play slot games the next hour; we count that as 1 trip. However, our data structure divided Slot and Table separate. A guest can be In two tables within a given day. Below I used inner join for three tables: Guest, Slot, and Table. The result looks like the picture below. As you can see guest 1001 played total times in one day in TablePlayerDayDate1 even though he/she did not have multiple transactions. Now how do I get their trips based on their one gaming day?
... View more