Forum Replies Created

Viewing 15 posts - 9,211 through 9,225 (of 26,490 total)

  • RE: Query to find the start day of the week as Monday

    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...

  • RE: Calculate weekend

    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...

  • RE: Convert varchar

    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...

  • RE: Fantasy football 2012

    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...

  • RE: Fantasy football 2012

    Well, we know who is moving on to the Championship round.

    It has been an exciting run. Who will win the championship this year?

  • RE: SSIS datediff and dateadd

    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 ...

  • RE: Create Or Replace Function Error

    Duplicate post.

  • RE: Create Or Replace Function Error

    Duplicate post.

  • RE: Thousand Seperator Magic

    dogramone (12/3/2012)


    And unfortunately none of them are intelligent enough to investigate. Oh for the good old days when IT was a black box that no one got involved in...

  • RE: Create Or Replace Function Error

    sap0698 (12/3/2012)


    Hello,

    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...

  • RE: Are the posted questions getting worse?

    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...

  • RE: instance port number

    sqlfriends (12/3/2012)


    I have a SQl SERVER that has a default instance and a named instance.

    Do I have to configure the named instance to use diffrent port than 1433 because the...

  • RE: Thousand Seperator Magic

    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...

  • RE: SSIS datediff and dateadd

    var05 (12/3/2012)


    Hi All,

    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'),...

  • RE: Calculate weekend

    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.

Viewing 15 posts - 9,211 through 9,225 (of 26,490 total)