表格结构
id | name | date_usa | date_jpn | date_uk
---+------+----------+----------+--------
1 | a | 01/2015 | 12/2014 | 04/2015
2 | b | 05/2015 | 05/2015 | 05/2015
3 | c | 08/2016 | 09/2017 | 09/2017
我希望它列出:
earliest release dates:
a: 12/2014
b: 05/2015
c: 08/2016
我怎样才能做到这一点?
答案 0 :(得分:1)
select name, least(date_usa, date_jpn, date_uk)
from your_table