Leetcode Note: MySQL - Recyclable and Low Fat Products

Recyclable and Low Fat Products - LeetCode
https://leetcode.com/problems/recyclable-and-low-fat-products/

  • Go 言語で取り組んだメモ

回答

SQL 1 liner solution (This is a FB DE interview question) - Recyclable and Low Fat Products - LeetCode
https://leetcode.com/problems/recyclable-and-low-fat-products/solutions/1062936/sql-1-liner-solution-this-is-a-fb-de-interview-question/

SELECT product_id FROM Products WHERE low_fats = 'Y' AND recyclable = 'Y' ORDER BY 1 ASC