Closed
Description
Introduce distinct and subquery:
-- distinct
select distinct state from employee;
select count(distinct(b)) from t2;
-- alias
select a as c1 from t1 order by c1 desc limit 1;
select t.a from t1 t where t.b > 1 order by t.a desc limit 1;
-- subquery
select t.* from (select * from t1 where a > 1) t where t.b > 7;
select a, (select max(b) from t1) max_b from t1;
- distinct
- alias
- subquery
- bugfix
- refactor
Metadata
Metadata
Assignees
Labels
No labels