Hi,
I use access to query a Jet database full of info about members of a club.
Each attendance by each member at any of 18 sites is recorded in a table called qptHisAttendanc e
I'm trying to create a query that will list each member ID in the first column and the site ID for the site they've visited most in the last 30 days.
So far I've got two queries. The first lists all the visits made...
User Profile
Collapse
-
For anyone else wanting to do the same - it does work!
Thanks for all your help everyone! -
Maybe someone could paste...
SELECT LEFT(DATENAME(w eekday, GETDATE()),3) As DAY
...into Query Analyzer and tell me what they get (should be the first three letters of the name of the current day of the week)Leave a comment:
-
After much hunting around online I've found the DATENAME function which apparently when used with "weekday" as per the example below returns a string like "Sunday", "Monday" or whatever based on the day of the week that correlates to the date
Code:DATENAME(weekday, Activity.StartDateTime)
Leave a comment:
-
Return a string representing the day of the week
Hi All,
New to the forum and new to T-SQL
I'm trying to add a column to the results of query that shows a text string representing the day of the week.
Code:Select Activity.StartDateTime as DAY
I know it's possible to return an integer which represent the day of the week, and I know there's a way to specify which...
No activity results to display
Show More
Leave a comment: