-- DBMS: bigquery
CREATE TABLE `data-to-insights.ecommerce.rev_transactions`
(
  fullVisitorId STRING,
  channelGrouping STRING,
  hits_time INT64,
  geoNetwork_country STRING,
  geoNetwork_city STRING,
  totals_totalTransactionRevenue INT64,
  totals_transactions INT64,
  totals_timeOnSite INT64,
  totals_pageviews INT64,
  date STRING,
  visitId INT64,
  hits_type STRING,
  hits_product_productRefundAmount INT64,
  hits_product_productQuantity INT64,
  hits_product_productPrice INT64,
  hits_product_productRevenue INT64,
  hits_product_productSKU STRING,
  hits_product_v2ProductName STRING,
  hits_product_v2ProductCategory STRING,
  hits_product_productVariant STRING,
  hits_item_currencyCode STRING,
  hits_item_itemQuantity INT64,
  hits_item_itemRevenue INT64,
  hits_transaction_transactionRevenue INT64,
  hits_transaction_transactionId STRING,
  hits_page_pageTitle STRING,
  hits_page_searchKeyword STRING,
  hits_page_pagePathLevel1 STRING
);

INSERT INTO `data-to-insights.ecommerce.rev_transactions` (fullVisitorId, channelGrouping, hits_time, geoNetwork_country, geoNetwork_city, totals_totalTransactionRevenue, totals_transactions, totals_timeOnSite, totals_pageviews, date, visitId, hits_type, hits_product_productRefundAmount, hits_product_productQuantity, hits_product_productPrice, hits_product_productRevenue, hits_product_productSKU, hits_product_v2ProductName, hits_product_v2ProductCategory, hits_product_productVariant, hits_item_currencyCode, hits_item_itemQuantity, hits_item_itemRevenue, hits_transaction_transactionRevenue, hits_transaction_transactionId, hits_page_pageTitle, hits_page_searchKeyword, hits_page_pagePathLevel1) VALUES ('7851878234225373633', 'Organic Search', 1819831, 'Peru', 'La Victoria', 42000000, 1, 1834, 40, '20160807', 1470617094, 'PAGE', NULL, 2, 3500000, 7800000, 'GGOEGHGC019799', 'Google Sunglasses', '(not set)', ' BLUE', 'USD', NULL, NULL, 42000000, 'ORD20160807983', 'Checkout Confirmation', NULL, '/ordercompleted.html'), ('7851878234225373633', 'Organic Search', 1819831, 'Peru', 'La Victoria', 42000000, 1, 1834, 40, '20160807', 1470617094, 'PAGE', NULL, 5, 1500000, 8300000, 'GGOEGODR017799', 'Recycled Mouse Pad', '(not set)', 'Single Option Only', 'USD', NULL, NULL, 42000000, 'ORD20160807983', 'Checkout Confirmation', NULL, '/ordercompleted.html'), ('7851878234225373633', 'Organic Search', 1819831, 'Peru', 'La Victoria', 42000000, 1, 1834, 40, '20160807', 1470617094, 'PAGE', NULL, 2, 3500000, 7800000, 'GGOEGHGH019699', 'Google Sunglasses', '(not set)', ' GREEN', 'USD', NULL, NULL, 42000000, 'ORD20160807983', 'Checkout Confirmation', NULL, '/ordercompleted.html'), ('7851878234225373633', 'Organic Search', 1819831, 'Peru', 'La Victoria', 42000000, 1, 1834, 40, '20160807', 1470617094, 'PAGE', NULL, 2, 1500000, 3800000, 'GGOEGFKA022299', 'Keyboard DOT Sticker', '(not set)', 'Single Option Only', 'USD', NULL, NULL, 42000000, 'ORD20160807983', 'Checkout Confirmation', NULL, '/ordercompleted.html'), ('7851878234225373633', 'Organic Search', 1819831, 'Peru', 'La Victoria', 42000000, 1, 1834, 40, '20160807', 1470617094, 'PAGE', NULL, 2, 3500000, 7800000, 'GGOEGHGR019499', 'Google Sunglasses', '(not set)', ' RED', 'USD', NULL, NULL, 42000000, 'ORD20160807983', 'Checkout Confirmation', NULL, '/ordercompleted.html');