Skip to content

Instantly share code, notes, and snippets.

@gabidavila
Created October 15, 2016 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabidavila/77f4f441ad163c0df38b8eaaff7e7703 to your computer and use it in GitHub Desktop.
Save gabidavila/77f4f441ad163c0df38b8eaaff7e7703 to your computer and use it in GitHub Desktop.
SELECT
`id`,
`order_id`,
`product_id`,
`product_price`,
`quantity`,
`product_price` * `quantity` AS total_item_price
FROM `orders_items`
LIMIT 5;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment