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

update query

$
0
0

Hi All,

I have data as below in table1 <summarytable> need to write select to get table 2 and then a select to get table 3 as below

the column Meets if any of the values is Y for same mid then update all the records to Y for same mid as shown in table 2

table 3 is simple summing up





Neil


Viewing all articles
Browse latest Browse all 4729


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