标签:and ora cas view lse str image else 语法
完整日期:TO_DATE(‘2009-4-28 00:00:00‘, ‘yyyy-mm-dd hh24:mi:ss‘);
to_date(‘2008/09/20‘,‘yyyy/mm/dd‘)
创建视图语句 CREATE VIEW ViewPractice5_1
AS
select语句
SQL语句:
SELECT
sum(case WHEN sale_price<1000 THEN 1 ELSE 0 end) AS low_price,
sum(case WHEN sale_price BETWEEN 1001 AND 3000 THEN 1 ELSE 0 end) AS mid_price,
sum(case WHEN sale_price>3001 THEN 1 ELSE 0 end) AS high_price
FROM PRODUCT;
标签:and ora cas view lse str image else 语法
原文地址:https://www.cnblogs.com/Thelightone/p/12121463.html