I have this query:
EDITED
The problem is that after executing the query I’m getting this error:
Incorrect syntax near the keyword ‘union’.
I am missing somthing?
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.
If you take a look at the documentation at:
you’ll see that you can’t use ORDER BY in the first query.
Remember that: