Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
YYYY 形式の年があり、FYYY 形式に変換したいと考えています。たとえば、2014 年は FY14、2009 年は FY09 などとなります。金額フィールドに SUM 集計関数を含むビューを作成しています。そのため、クエリには Group By 句も含まれています。
連結せずにそれを行うこともできます:
to_char(to_date(your_year, 'YYYY'), '"FY"YY')
考えられる回避策は次のとおりです。
'FY'||to_char(to_date(your_year, 'YYYY'), 'YY')
OR@Wernfiedが言うように、
OR
SQL フィドル