交叉表三
-------------------
SELECT *
FROM crosstab(
'select currency, purpose, currType, rate From exgRate',
'Select distinct currType from exgRate' )
AS t(
currency char(3),
purpose varchar(10),
"即期" numeric(18,6),
"現金" numeric(18,6)
) order by purpose, currency;
沒有留言:
張貼留言