Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

update sales_category column

$
0
0

sman         Jan                 Feb             Mar              Apr              May            Jun         sales_category

Dileep10000.0020000.00     30000.000.00            0.00        0.00             NULL
Hani         5000.0010000.00     15000.0020000.00    25000.000.00             NULL
Hari        1000.002000.00       3000.004000.00    5000.006000.00     NULL
Somesh10000.0014000.00       21000.0028000.00      0.00         0.00             NULL
Vikky6000.00 5000.00        4000.003000.00     2000.001000.00     NULL
Vini        6000.0012000.00       18000.0021000.00     24000.0030000.00     NULL

 actually i want to update sales_categoty column whoose values (jan,feb,mar,apr,may,jun)<>0 then 'best employee'

else 'good employee'

can u please help me out


Viewing all articles
Browse latest Browse all 7129

Trending Articles



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