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

Case Statement

$
0
0

Hi,

How would I write the following logic please out please? This is the SQL code from Access but not sure how to convert it into the correct syntax.

If([R Band]="Bespoke",[B Mentions],
If([R Band]="Unlimited",[B Mentions],
Val(If([R Band]<>"Bespoke",
Replace([R Band],"k",""),0))*1000)) as Mentions


Viewing all articles
Browse latest Browse all 7129

Trending Articles



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