# Write your MySQL query statement belowSELECT titleFROM ContentWHERE kids_content='Y' AND content_type='Movies'AND content_id in(SELECT distinct content_idFROM TVProgram tWHERE date_format(program_date,'%Y-%m')='2020-06')
# regexp后面接上正则表达式
SELECT user_id,name,mail
FROM Users
WHERE mail regexp '^[a-zA-Z]+[\\w./-]*@leetcode\\.com$'
# Write your MySQL query statement below
SELECT s.product_name,s.sale_date,count(s.sale_id) total
FROM
(SELECT sale_id,lower(trim(product_name)) product_name,substring(sale_date,1,7) sale_dateFROM Sales
)s
GROUP BY s.product_name,s.sale_date
ORDER BY s.product_name asc,sale_date asc
上一篇:51单片机LCD1602的使用
下一篇:C语言再学习第三章