sqlite - SQL conditionally select different aggergates -
Assuming I have a table I return SQL query T , which has one attribute,
A , an integer
MAX (T) + 1 if
T is a 5 and
maximum (t) + 2 If not it?
select MAX (A) + case when (choose from one (in 5)) Then some T as 1 ELSE 2 END with max_plus_
Comments
Post a Comment