G
Guest
I have a table with a DateTime column and both the date and time portions of
the field are used in the entries. But I want to write a query that'll do the
following:
Get a list of each distinct DATE from all of the rows of the DateTime
column. So, for example, let's say the column is named "PurchaseDate", and
some of the values look like:
PurchaseDate
1/12/2006 3:25pm
1/12/2006 6:45pm
3/3/2006 12:05am
3/3/2006 1:22am
I'd like the result of this query (for this example) to be a list as follows:
DistinctDates
1/12/2006
3/3/2006
Alex
the field are used in the entries. But I want to write a query that'll do the
following:
Get a list of each distinct DATE from all of the rows of the DateTime
column. So, for example, let's say the column is named "PurchaseDate", and
some of the values look like:
PurchaseDate
1/12/2006 3:25pm
1/12/2006 6:45pm
3/3/2006 12:05am
3/3/2006 1:22am
I'd like the result of this query (for this example) to be a list as follows:
DistinctDates
1/12/2006
3/3/2006
Alex