Advertisement
bsm

CREATE TABLE SALES

bsm
Jun 19th, 2019
1,074
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CREATE TABLE sales AS
  2. SELECT
  3.     order_id,
  4.     item_id,
  5.     product_id,
  6.     quantity,
  7.     unit_price,
  8.     status,
  9.     order_date,
  10.     salesman_id
  11. FROM
  12.     orders
  13. INNER JOIN order_items
  14.         USING(order_id);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement