By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
(No column name) |
---|
Microsoft SQL Server 2012 (SP4) (KB4018073) - 11.0.7001.0 (X64) Aug 15 2017 10:23:29 Copyright (c) Microsoft Corporation Express Edition (64-bit) on Windows NT 6.3 <X64> (Build 9600: ) (Hypervisor) |
14 rows affected
ID | Price |
---|---|
1 | 10 |
2 | 9 |
3 | 11 |
4 | 8 |
5 | 9 |
6 | 11 |
7 | 12 |
8 | 7 |
9 | 13 |
10 | 15 |
11 | 16 |
12 | 21 |
13 | 18 |
14 | 20 |
id | price | order |
---|---|---|
1 | 10 | 1 |
2 | 9 | 1 |
3 | 11 | 2 |
4 | 8 | 1 |
5 | 9 | 2 |
6 | 11 | 3 |
7 | 12 | 4 |
8 | 7 | 1 |
9 | 13 | 2 |
10 | 15 | 3 |
11 | 16 | 4 |
12 | 21 | 5 |
13 | 18 | 1 |
14 | 20 | 2 |