create view 販売実績 as
SELECT
h.e_hanbai_date as 購入日時,
h.e_hanbai_id as 販売番号,
k.e_kokyaku_id as 顧客コード,
k.e_kokyaku_name as 顧客名,
s.e_shouhin_id as 商品コード,
s.e_shouhin_name as 商品名
FROM
e_hanbai_t as h natural join e_shouhin_t as s natural join e_kokyaku_t as k
ORDER BY
h.e_hanbai_date |