I have a view called 'videos' with the following columns:
email(varchar)
time(varchar)
page(varchar)
The view has rows for every time a person with a given email visited a page.
I want to return results that show for each email address, a count of how many days they visited at least one page, and a count of how many distinct pages they visited regardless of date.
One of my issues is probably that the time is stored as a varchar. Here is an example of the format the time is in.
2016-01-25T14:36