Please help me format the day of week using Transact-SQL
- From: "Mitchell_Collen via AccessMonster.com" <u33726@uwe>
- Date: Mon, 28 Apr 2021 20:24:21 GMT
Hi all.
I have create a form with a chart that pulls data from an aggregated view.
The the values are grouped by day of week. For instance, 1,2,3,4,5,6,7 The
problem is that that I need it to only read as mon, tue,wed, thur, fri ,sat,
sun
Is there a way to format the dates like this in a chart form by using
transact - sql?
here is my view:
SELECT Station, COUNT(TxDatetime) AS Total, DAY(TxDatetime) AS Day,
PaType
FROM dbo.phmPYXHx
WHERE (TxDatetime >= { fn NOW() } - 8) AND (PaType IN (N'LOADED',
N'REFILLED', N'RESTOCKED'))
GROUP BY Station, DAY(TxDatetime), PaType
Thanks in advance! Misty
--
Misty :-)
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-adp-sqlserver/200804/1
.
- Follow-Ups:
- Re: Please help me format the day of week using Transact-SQL
- From: Sylvain Lafontaine
- Re: Please help me format the day of week using Transact-SQL
- Prev by Date: Re: Using Subqueries in an UPDATE Statement
- Next by Date: Re: Please help me format the day of week using Transact-SQL
- Previous by thread: Using Subqueries in an UPDATE Statement
- Next by thread: Re: Please help me format the day of week using Transact-SQL
- Index(es):
Relevant Pages
|