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

Same id with different values in other columns.

$
0
0

Delete first three records and last two records as same day two diff location ids should not map to same ID,ID_SEQ and EID combination. 

ID  |ID_SEQ |TRANS_DT     |EID    |LOCATION_ID
123 |1      |  10/10/2109 |hello  | W123
123 |1      |  10/10/2019 |hello  | A123
123 |1      |  10/10/2019 |hello  | A123 

123 |1| 10/11/2019 | hello  | A123

124 | 1     | 11/10/2019 |mgs | A231

124 | 1     | 11/10/2019 | mgs | A231

124 |2     | 11/10/2019  | mgs | A231

345 |3      |  11/10/2019 |rgs    | A123
345 |3      |  11/10/2019 |rgs    | W123


Viewing all articles
Browse latest Browse all 7129

Trending Articles



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