Forum Replies Created

Viewing 15 posts - 1 through 15 (of 89 total)

  • RE: Change Excel formula to Case Statement

    parulprabu (10/3/2013)


    By mistaken two times posted the same.

    Thanks for the CTE, I'll give that a go πŸ™‚

  • RE: Change Excel formula to Case Statement

    Koen Verbeeck (10/3/2013)


    You'll probably need a cursor to update your values, because to calculate the OneStopOrNot column for one row, you need the calculated result of OneStopOrNot column of the...

  • RE: Change Excel formula to Case Statement

    Koen Verbeeck (10/3/2013)


    Which version of SQL Server?

    2008R2

  • RE: Change Excel formula to Case Statement

    Koen Verbeeck (10/3/2013)


    To get some decent answers, it might help if you post table DDLs, sample data and desired output.

    Attached is a sample data set from excel, that I'm creating...

  • RE: Change Excel formula to Case Statement

    Koen Verbeeck (10/3/2013)


    J39L4753 (10/3/2013)


    Sorry forgot to add that A8, A9 E8, E9, L8 are cell rows within Excel

    Column A = PersonID

    Column E = DateOfAppt

    Column L = is the column that...

  • RE: Change Excel formula to Case Statement

    Sorry forgot to add that A8, A9 E8, E9, L8 are cell rows within Excel

    Column A = PersonID

    Column E = DateOfAppt

    Column L = is the column that I will use...

  • RE: Insert Into Using StoredProc

    Thats it πŸ˜€

    Brilliant thanks for the help

  • RE: How to use WHEN EXISTS inside a CASE Statement

    Gazareth (5/8/2012)


    Yes, just do:

    SELECT CASE WHEN EXISTS(subquery) THEN...

    There are some situations you can't use it (e.g. in a group by clause IIRC), but SQL should tell you quite clearly in...

  • RE: MERGE INTO

    I need to be able to Insert or Update the fields depending on what the source table has done.

  • RE: MERGE INTO

    The MERGE has been working very well now, which is great πŸ™‚

    One thing I do have a question on is this

    I get this error below

    Msg 8672, Level 16, State 1,...

  • RE: MERGE INTO

    SQL Kiwi (1/9/2012)


    The ON clause is used to specify conditions to determine if source and target rows join or not. In your case, it seems the ON clause should...

  • RE: SQL Agent Jobs

    jez.lisle (1/9/2012)


    John Mitchell-245523 (1/9/2012)


    I would guess this is caused by a difference in the local settings for each user - you and the user that connections to the linked server...

  • RE: SQL Agent Jobs

    Dev (1/9/2012)


    I understood you don’t have access to another server except read / execute. But my question is still unanswered. Can someone verify that the job runs successfully...

  • RE: SQL Agent Jobs

    Dev (1/9/2012)


    Any reasons for executing a job on Linked Server? Does the job work per expectations on Local Server (where it is created)?

    Yes, because the Linked Server has...

  • RE: SQL Agent Jobs

    John Mitchell-245523 (1/9/2012)


    I would guess this is caused by a difference in the local settings for each user - you and the user that connections to the linked server are...

Viewing 15 posts - 1 through 15 (of 89 total)