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

Delete and Update SQL statement

$
0
0

I've been asked by the Accounting team to purge (e.g. delete) all vendor records that are not currently supplying any products you carry.

 There should be 3 of them that are removed from Vendors (but don't use SQL that hard-codes the Vendors by id- should be generic and work with any data in the table)

 

can someone help me write the SQL statement to accomplish this?


Viewing all articles
Browse latest Browse all 7129

Trending Articles



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