sqlite - SQL conditionally select different aggergates -


Assuming I have a table T , which has one attribute, A , an integer

I return SQL query 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

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -