select max(qtd)
from (select count(int_re_usu) as qtd from tb_questionario_voar_resposta)
Why this query dont work?
I want to retrieve the max value from all count
it says incorrect syntax near’)’
Any ideias?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need an alias on a derived table:
But as Vincent pointed out, that just returns one row, and I think you are missing a group by. You can really just do: