1
select distinct day 
from t1 
order by 1 desc limit 1,1 

should return the second latest date in t1, but this error is thrown:

ParseException: mismatched input ',' expecting {, ';'}

Paul White
  • 94,921
  • 30
  • 437
  • 687

0 Answers0