Viewing 15 posts - 9,211 through 9,225 (of 26,490 total)
Compare:
DECLARE @date DATE = '20121202';
SELECT
CASE WHEN datename(dw,@date) <> 'Sunday' THEN CONVERT(varchar(10), DATEADD(WK, DATEDIFF(WK, 0, @date), 0),
103) ELSE CONVERT(varchar(10), DATEADD(WK, DATEDIFF(WK, 0, @date), - 7), 103) END
go
DECLARE @date DATE...
December 4, 2012 at 10:04 am
Pete Cox (12/4/2012)
YYYYMMDD is in fact the Basic date format proposed by ISO8601.YYYY-MM-DD is named the Extended format.
Using either is OK by the standard.
True, but YYYY-MM-DD doesn't always work depending...
December 4, 2012 at 7:51 am
kapil_kk (12/4/2012)
i want an example of converting int to time...i cant change the datatype of column to varchar
You weren't asking how to convert an INT to TIME, this was your...
December 4, 2012 at 7:40 am
The quarter final games this week see the SSC Steelers facing off with the SELECT Wins INTO. Having just played each other, what changes will they make going into...
December 4, 2012 at 6:30 am
Well, we know who is moving on to the Championship round.
It has been an exciting run. Who will win the championship this year?
December 3, 2012 at 9:54 pm
As Ray indicated earlier, (DT_DBDATE)0 evaluates to 1899-12-30. This would be equivalent to using -2 inplace of 0 in the T-SQL calls as shown here:
/*
Date Available in db ...
December 3, 2012 at 9:10 pm
dogramone (12/3/2012)
December 3, 2012 at 8:58 pm
sap0698 (12/3/2012)
I'm doing text mining using Oracle SQL Developer: ODMiner.. I imported the data "WEBLOG" into a table.. This weblog data consist of users activity, date, time, url, etc. The...
December 3, 2012 at 8:55 pm
Jeff Moden (12/3/2012)
Stefan Krzywicki (12/3/2012)
The Dixie Flatline (12/3/2012)
My motor is still idling from the tryptophan-coma of Thanksgiving.
In my experience, the period from just before Thanksgiving through New Year's Day isn't...
December 3, 2012 at 6:21 pm
sqlfriends (12/3/2012)
Do I have to configure the named instance to use diffrent port than 1433 because the...
December 3, 2012 at 6:17 pm
CELKO (12/3/2012)
Joe, you're a dinosaur like me. Most people on this forum probably don't even know what COBOL is.
And most of them have never see a punch card...
December 3, 2012 at 6:06 pm
var05 (12/3/2012)
I wanted to find the starting of the week and poulate it as an additional column. Im trying to use dervived column in SSIS
SQL Equivalent is:
SELECT DATEADD(WK, DATEDIFF(WK,0,'11/01/2012'),...
December 3, 2012 at 9:33 am
kapil_kk (12/3/2012)
in this case it will be '2012-02-03'
Care to answer all the other questions I asked? I really don't feel like retyping them.
December 3, 2012 at 7:05 am
Viewing 15 posts - 9,211 through 9,225 (of 26,490 total)