Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: Pivot/Unpivot

    declare @columnname as varchar(50)

    declare @query as varchar(5000)

    -- pick the column name (i.e) 'ASK'

    select top 1 @columnname = [description] from qry1 where symbol = 'KOT'

    -- get the ASK value from tab1

    set...

Viewing post 1 (of 1 total)