Forum Replies Created

Viewing 6 posts - 226 through 231 (of 231 total)

  • RE: Need Help with TRIM

    Sorry, how would this code actually be written.

    I am a complete novice when it comes to T-SQL, as this is not my code.

    Many Thanks

  • RE: Subquery returned more than 1 value

    Thanks for your reply Lyn.

    I have checked the dats and they all look correct to me.

    I have run the query in Query Analyser and the results are pulled back successfully....

  • RE: Subquery returned more than 1 value

    Hi Guys I have managed to work out what the issue was - it was with the followinf sub query -

    (SELECT DISTINCT LSH.[SUB-STATUS]

    FROM [IH_IH-LOCATION-STAT-HIST] LSH

    WHERE LSH.[PLACE-REF] = dbo.[IH_IH-LOCATION-STAT-HIST].[PLACE-REF]

    AND...

  • RE: Subquery returned more than 1 value

    Still not working I'm afraid -

    I have changed the Sub Queries from

    (SELECT CASE WHEN CONVERT(MONEY, PC.[NET-AMT]) IS NULL THEN 0.00

    ELSE CONVERT(MONEY, PC.[NET-AMT]) END

    FROM dbo.[IH_IH-PLACE-CHG] PC

    WHERE PC.[PLACE-REF] =...

  • RE: Subquery returned more than 1 value

    Thanks guys - I will tackle the problem as suggested.

    Appreciate the swift response. I'll let you know how I get on.

  • RE: Subquery returned more than 1 value

    Sorry for my ignorrance but do you mean queries such as -

    (SELECT CASE WHEN CONVERT(MONEY, PC.[NET-AMT]) IS NULL THEN 0.00

    ELSE CONVERT(MONEY, PC.[NET-AMT]) END

    FROM dbo.[IH_IH-PLACE-CHG] PC

    WHERE PC.[PLACE-REF] = dbo.[IH_IH-PLACE-CHG].[PLACE-REF]

    AND PC.[ACCOUNT-CODE]...

Viewing 6 posts - 226 through 231 (of 231 total)