|
|
@@ -5,39 +5,29 @@ drop table if exists web_returns;
|
|
|
|
|
|
create table web_returns
|
|
|
(
|
|
|
- ws_sold_time_sk bigint
|
|
|
-, ws_ship_date_sk bigint
|
|
|
-, ws_item_sk bigint
|
|
|
-, ws_bill_customer_sk bigint
|
|
|
-, ws_bill_cdemo_sk bigint
|
|
|
-, ws_bill_hdemo_sk bigint
|
|
|
-, ws_bill_addr_sk bigint
|
|
|
-, ws_ship_customer_sk bigint
|
|
|
-, ws_ship_cdemo_sk bigint
|
|
|
-, ws_ship_hdemo_sk bigint
|
|
|
-, ws_ship_addr_sk bigint
|
|
|
-, ws_web_page_sk bigint
|
|
|
-, ws_web_site_sk bigint
|
|
|
-, ws_ship_mode_sk bigint
|
|
|
-, ws_warehouse_sk bigint
|
|
|
-, ws_promo_sk bigint
|
|
|
-, ws_order_number bigint
|
|
|
-, ws_quantity int
|
|
|
-, ws_wholesale_cost decimal(7,2)
|
|
|
-, ws_list_price decimal(7,2)
|
|
|
-, ws_sales_price decimal(7,2)
|
|
|
-, ws_ext_discount_amt decimal(7,2)
|
|
|
-, ws_ext_sales_price decimal(7,2)
|
|
|
-, ws_ext_wholesale_cost decimal(7,2)
|
|
|
-, ws_ext_list_price decimal(7,2)
|
|
|
-, ws_ext_tax decimal(7,2)
|
|
|
-, ws_coupon_amt decimal(7,2)
|
|
|
-, ws_ext_ship_cost decimal(7,2)
|
|
|
-, ws_net_paid decimal(7,2)
|
|
|
-, ws_net_paid_inc_tax decimal(7,2)
|
|
|
-, ws_net_paid_inc_ship decimal(7,2)
|
|
|
-, ws_net_paid_inc_ship_tax decimal(7,2)
|
|
|
-, ws_net_profit decimal(7,2)
|
|
|
+ wr_returned_time_sk bigint
|
|
|
+, wr_item_sk bigint
|
|
|
+, wr_refunded_customer_sk bigint
|
|
|
+, wr_refunded_cdemo_sk bigint
|
|
|
+, wr_refunded_hdemo_sk bigint
|
|
|
+, wr_refunded_addr_sk bigint
|
|
|
+, wr_returning_customer_sk bigint
|
|
|
+, wr_returning_cdemo_sk bigint
|
|
|
+, wr_returning_hdemo_sk bigint
|
|
|
+, wr_returning_addr_sk bigint
|
|
|
+, wr_web_page_sk bigint
|
|
|
+, wr_reason_sk bigint
|
|
|
+, wr_order_number bigint
|
|
|
+, wr_return_quantity int
|
|
|
+, wr_return_amt decimal(7,2)
|
|
|
+, wr_return_tax decimal(7,2)
|
|
|
+, wr_return_amt_inc_tax decimal(7,2)
|
|
|
+, wr_fee decimal(7,2)
|
|
|
+, wr_return_ship_cost decimal(7,2)
|
|
|
+, wr_refunded_cash decimal(7,2)
|
|
|
+, wr_reversed_charge decimal(7,2)
|
|
|
+, wr_account_credit decimal(7,2)
|
|
|
+, wr_net_loss decimal(7,2)
|
|
|
)
|
|
|
partitioned by (wr_returned_date_sk bigint)
|
|
|
stored as ${FILE};
|