A SQL problem# Database - 数据库
c*k
1 楼
I have a problem in creating a SQL statement. Can anyone help me?
Suppose I have a table as below:
id min max
1 7 11
2 9 12
3 14 18
4 10 13
I would like to merge the min and max and finally get this:
min max
7 13
14 18
How can I create a SQL statement to get that? Is it possible? Thanks in
advance!
Suppose I have a table as below:
id min max
1 7 11
2 9 12
3 14 18
4 10 13
I would like to merge the min and max and finally get this:
min max
7 13
14 18
How can I create a SQL statement to get that? Is it possible? Thanks in
advance!