When I was working for one of customers we found some strange thing. We needed to found number of distinct sessions per day. Table layout was very simple: