Forum Replies Created

Viewing 15 posts - 736 through 750 (of 1,243 total)

  • RE: Need help

    Try this one[/url] first. There's many out there so a little searching might find one that does exactly what you need. Working days vary from country to country...

  • RE: Need help

    Have you got a calendar table? That will make the calculation of working days much easier.

  • RE: Today's Random Word!

    Stuart Davies (2/10/2015)


    Ed Wagner (2/9/2015)


    SQLRNNR (2/9/2015)


    Sir Kneighf

    Criminal (had to look that one up)

    Smooth

    Plane

  • RE: Today's Random Word!

    Ed Wagner (2/9/2015)


    BWFC (2/9/2015)


    Bond

    James

    Gang

  • RE: Today's Random Word!

    Bond

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (2/5/2015)


    Oh, and let's not forget where it all starts.

    My cousin's daughter once said 'I know its a boys' job, but I want to be a scientist when I...

  • RE: Use only date part of datetime field for GROUP BY

    You're welcome.

  • RE: Use only date part of datetime field for GROUP BY

    Edvard Korsbæk (2/4/2015)


    Hi All!

    I have this table:

    [dbo].[Login_details](

    [login_data_id] [int] IDENTITY(1,1) NOT NULL,

    [login_no] [int] NULL,

    [logindate] [datetime] NULL,

    [logoutdate] [datetime] NULL,

    CONSTRAINT [PK_Login_details] PRIMARY KEY CLUSTERED

    (

    [login_data_id] ASC

    )

    This query:

    Select count(*) from dbo.Login_details group by...

  • RE: Quintessential Or Elegant

    Sqlraider (2/2/2015)


    Iwas Bornready (2/2/2015)


    Sometimes (always?) it just comes down to time and money. I can give it to you quick and dirty today or elegant tomorrow. If I go elegant...

  • RE: Today's Random Word!

    Lock

  • RE: Split Row into Multiple Rows

    bugg (1/30/2015)


    Mark Cowne (5/3/2012)


    Join to a numbers/tally table

    SELECT s.ORDER_NUMBER, s.PRODUCT_ID, 1 AS QTY, s.VALUE/s.QTY AS VALUE

    FROM @SPLITROW s

    INNER JOIN master.dbo.spt_values t ON t.type='P'

    AND...

  • RE: Replication Filters

    TomThomson (1/26/2015)


    Nice straightforward question.

    Half the people who have replied so far think they can use a column filter to select rows, which is a bit startling; and more than four...

  • RE: UK Post code Area

    You're welcome. I've done some tinkering with postcodes myself in the past so I recognised what you were trying to do 🙂

  • RE: UK Post code Area

    SELECT

    left(Postcode,patindex('%[0-9]%',postcode)-1)

    FROM YourTable

    where patindex('%[0-9]%',postcode) > 0

    order by 3

    That should do the trick for all the...

  • RE: UK Post code Area

    Have all your postcodes definitely got numbers in them? I know they should have but it might be worth checking.

Viewing 15 posts - 736 through 750 (of 1,243 total)