あなたはsys_calendar.calendar
select calendar_date
,day_of_calendar - 32872 as day_key
,month_of_calendar - 1080 as month_key
,quarter_of_calendar - 360 as quarter_key
,year_of_calendar - 1989 as year_key
from sys_calendar.calendar
-- where calendar_date between date '2015-09-25' and date '2015-10-05'
-- order by calendar_date
+---------------+---------+-----------+-------------+----------+
| calendar_date | day_key | month_key | quarter_key | year_key |
+---------------+---------+-----------+-------------+----------+
| 2015-09-25 | 9,399 | 309 | 103 | 26 |
| 2015-09-26 | 9,400 | 309 | 103 | 26 |
| 2015-09-27 | 9,401 | 309 | 103 | 26 |
| 2015-09-28 | 9,402 | 309 | 103 | 26 |
| 2015-09-29 | 9,403 | 309 | 103 | 26 |
| 2015-09-30 | 9,404 | 309 | 103 | 26 |
| 2015-10-01 | 9,405 | 310 | 104 | 26 |
| 2015-10-02 | 9,406 | 310 | 104 | 26 |
| 2015-10-03 | 9,407 | 310 | 104 | 26 |
| 2015-10-04 | 9,408 | 310 | 104 | 26 |
| 2015-10-05 | 9,409 | 310 | 104 | 26 |
+---------------+---------+-----------+-------------+----------+
を持っているとき、私は間違っている、正確にどのようなこのためのポイントが表示されませんか?ランクをスキップしたり、何か他のことを心配していますか? – Andrew