Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. select product.product_id, category.category_id, product.name, category.description
  2. from product , category
  3. inner JOIN category_prodcut ON category.category_id = category_prodcut.category_id
  4. inner JOIN category_prodcut ON product.product_id = category_prodcut.product_id;
  5.  
  6. select product_id from product;
  7.  
  8. select p.product_id, c.category_id, p.name, c.description
  9. from category_product cp join
  10. product p
  11. on p.product_id = cp.product_id join
  12. category c
  13. on c.category_id = cp.category_id;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement