It is time for us to get 'graphical' and this challenge is to draw a graph using TSQL.
Seq Data
----------- -----------
1 2
2 3
3 4
4 4
5 5
6 4
7 3
8 4
9 4
10 4
11 3
12 2
13 2
14 3
15 3
16 4
17 4
18 5
Here is how your graph should look like.
5|
4| _/\ __ _/
3| / \/ \ _/
2|/ \_/
1|
0|
Seq Data
----------- -----------
1 2
2 3
3 4
4 4
5 5
6 4
7 3
8 4
9 4
10 4
11 3
12 2
13 2
14 3
15 3
16 4
17 4
18 5
Here is how your graph should look like.
5|
4| _/\ __ _/
3| / \/ \ _/
2|/ \_/
1|
0|