By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
(No column name) |
---|
Microsoft SQL Server 2019 (RTM-CU3) (KB4538853) - 15.0.4023.6 (X64) Mar 4 2020 00:59:26 Copyright (C) 2019 Microsoft Corporation Express Edition (64-bit) on Windows Server 2019 Standard 10.0 <X64> (Build 17763: ) (Hypervisor) |
3 rows affected
10 rows affected
id_val | ver | caracter | lg | id_val | ver | caracter |
---|---|---|---|---|---|---|
1 | abc | 3 | x | 1 | abc | 3 |
1 | abc | 2 | y | 1 | abc | 2 |
2 | def | 5 | y | 2 | def | 5 |
2 | def | 9 | z | 2 | def | 9 |
id_val | ver | caracter |
---|---|---|
1 | abc | abc |
1 | abc | 3 |
1 | abc | x |
1 | abc | 2 |
1 | abc | y |
2 | def | def |
2 | def | 5 |
2 | def | y |
2 | def | 9 |
2 | def | z |
8 rows affected
id_val | ver | caracter |
---|---|---|
1 | abc | abc |
1 | abc | 3x |
1 | abc | 2y |
2 | def | def |
2 | def | 5y |
2 | def | 9z |