Viewing post 1 (of 1 total)
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...
February 27, 2012 at 7:53 am
#1452079