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

Updating using a case statement that uses 2 sets of joins (updating the same column for both sets)

$
0
0

Hello,

In one sql statement, I'm trying to do an update based using 2 different set of joins.  For an example, if the account number=abc123, I would find those records with 1 set of joins.  For all other accounts, the records would be found using a different set of joins.  However, in both cases the update is the same.  How would I achieve this? 


AS


Viewing all articles
Browse latest Browse all 7129

Trending Articles



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