Forum Replies Created

Viewing 3 posts - 31 through 33 (of 33 total)

  • RE: case with join

    If U'll Learn to play with Variables U'll learn lot more.

    DECLARE @Table NVARCHAR(128)

    SELECT @Table =

       CASE Condition

          WHEN 'Condition 1' THEN 'Table1'

          WHEN 'Condition 2' THEN 'Table2'

          ELSE 'Table3'

       END

    EXEC('SELECT...

  • RE: case with join

    Hi,

    U can give breath to you will. Simply make a Stored Procedure. I'm giving the smaple query as below...

    CREATE PROCEDURE mst_spJoinTableConditionally

    @Condition NVARCHAR(2000)

    AS

    DECLARE @Table NVARCHAR(200)

    SELECT @Table = CASE @Condition WHEN...

  • RE: index help

    Hi jmowery 

    If there is proper Indexing on working tables then it must improve the performance.

    There is Simple concept behind Indexing. Make...

Viewing 3 posts - 31 through 33 (of 33 total)