对于Firebird中的unpivot命令是否类似? TKS提前... 我的表 Id | Name | Land | Water
-----|----------|--------|---------
1 | John | 300m | 100m
-----|----------|--------|---------
2 | Mark | 100m | 0m
-------------
我希望从该查询 select
count(*) as total_customers,
sum(last_year) as customers_in_last_year
sum(two_years) as customers_in_last_2_years
from
Customers
返回这个结果集转动一些数据: total_customers cu
您好,我正在处理审计数据,我在表中有以下数据。 colm1 colm2 colm3
f1 50 4/5/2017 3.38
f1 70 4/5/2017 3.40
f1 80 5/5/2017 3.40
f1 30 5/5/2017 5.40
我想显示时间和内容表中的 所需的输出 colm1 oldvalue newvalue date
f1 50 7