Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Help with sql query

$
0
0

I need help on figuring out on how to set a multiplier value from within the query below.  This value is set depending on 2 fields from 2 columns Specie and Thickness.   Thanks You

SELECT [RecordID], [DryerNum], [Start_DateTime], [End_DateTime],
CASE Shift
  WHEN '1' THEN 'Day'
  WHEN '2' THEN 'SWG'
  ELSE 'GYD'
END As Shift,
CASE Specie
  WHEN '0' THEN 'Fir'
  WHEN '1' THEN 'Larch'
  WHEN '2' THEN 'Pine'
  ELSE 'Spruce'
END As Specie,
CASE Thickness
  WHEN '0' THEN '118'
  WHEN '1' THEN '150'
  ELSE '185'
END As Thickness,
CASE Sort
  WHEN '0' THEN 'H'
  WHEN '1' THEN 'LS'
  WHEN '2' THEN 'S'
  WHEN '3' THEN 'Mixed'
  ELSE 'Redry-1'
END As Sort
FROM [DryerRunData] where [DryerNum] = '1' ORDER BY [RecordID] DESC


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>