Skip to content

Instantly share code, notes, and snippets.

@deanjamesss
Last active June 26, 2020 02:52
Show Gist options
  • Select an option

  • Save deanjamesss/6a16dcbbf82387f014e8ff6057a755f2 to your computer and use it in GitHub Desktop.

Select an option

Save deanjamesss/6a16dcbbf82387f014e8ff6057a755f2 to your computer and use it in GitHub Desktop.
Select-From-Where
select p.item_name as product_title,
p.cost as cost_price,
p.units as unit_count,
p.cost * p.units as inventory_cost
from product p
where p.type in ('storage', 'cables')
and p.item_name like '%USB%'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment