create table 購入履歴 as
select 1 as 人物ID,to_date('2007/1/1','fmyyyy/mm/dd') as 購入日,300 as 購入金額 from dual
union select 1,to_date('2007/1/2','fmyyyy/mm/dd'), 400 from dual
union select 1,to_date('2007/1/4','fmyyyy/mm/dd'), 400 from dual
union select 1,to_date('2007/1/5','fmyyyy/mm/dd'), 600 from dual
union select 1,to_date('2007/1/6','fmyyyy/mm/dd'), 600 from dual
union select 2,to_date('2007/1/1','fmyyyy/mm/dd'), 600 from dual
union select 2,to_date('2007/1/2','fmyyyy/mm/dd'), 300 from dual
union select 3,to_date('2007/1/2','fmyyyy/mm/dd'),2500 from dual
union select 4,to_date('2007/1/2','fmyyyy/mm/dd'),1500 from dual
union select 4,to_date('2007/1/6','fmyyyy/mm/dd'),1500 from dual
union select 5,to_date('2007/1/6','fmyyyy/mm/dd'),1500 from dual
union select 5,to_date('2007/1/8','fmyyyy/mm/dd'),1500 from dual
union select 6,to_date('2007/1/1','fmyyyy/mm/dd'), 500 from dual
union select 6,to_date('2007/1/8','fmyyyy/mm/dd'),1000 from dual
union select 6,to_date('2007/1/9','fmyyyy/mm/dd'),1200 from dual;