Answers for "case select oracle"

SQL
1

oracle case

SELECT product_id, product_type_id,
  CASE product_type_id
    WHEN 1 THEN 'Book'
    WHEN 2 THEN 'Video'
    WHEN 3 THEN 'DVD'
    WHEN 4 THEN 'CD'
    ELSE 'Magazine'
  END
FROM products;
Posted by: Guest on June-12-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language