Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)

  • RE: Query logic help please

    Hi, there was a mistake.

    HAVING COUNT(T.Id) = @NoOfIds => HAVING COUNT(T2.Id) = @NoOfIds

  • RE: Query logic help please

    Hi

    If t2 has large volume of data, there would be performance issue on your approach. My approach is below.

    USE tempdb;

    GO

    DECLARE @t TABLE (Id INT);

    INSERT INTO @t

    VALUES(108)

    , (102)

    , (103)

    , (101);

    IF OBJECT_ID('tempdb..#t2')...

Viewing 2 posts - 1 through 2 (of 2 total)