Advertisement

07.29.2007 at 08:40AM PDT, ID: 22727362
[x]
Attachment Details

Getting 2 character day with DATENAME

Asked by JackW9653 in SQL Server 2005, Databases Miscellaneous, MS SQL Server

Tags: datename

Hello Experts,

The following Select statement returns the day of the week. Does anyone know how to just return the first 2 characters of the weekday?

SELECT DISTINCT VisitDate, DATENAME(dw, VisitDate)As Day, S_time, Sch_Mins, Provider, Discipline, Case_Name
FROM tblScheduleData S ...

Thanks,

JackW9653Start Free Trial
[+][-]07.29.2007 at 08:42AM PDT, ID: 19588295

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Server 2005, Databases Miscellaneous, MS SQL Server
Tags: datename
Sign Up Now!
Solution Provided By: angelIII
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.29.2007 at 08:47AM PDT, ID: 19588301

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32