Als ik onderstaande query in SQL (sql2005) draai krijgt ik deze foutmelding:
Msg 156, Level 15, State 1, Line 2
Incorrect syntax near the keyword 'WITH'.
Msg 156, Level 15, State 1, Line 9
Incorrect syntax near the keyword 'ORDER'.
enig idee wat ik hier fout doe? Ik heb ook is gegoogled http://www.google.nl/sear...a=lr%3D&aq=1&oq=tsql+with voordat ik dit bericht heb gezet op T-net
Msg 156, Level 15, State 1, Line 2
Incorrect syntax near the keyword 'WITH'.
Msg 156, Level 15, State 1, Line 9
Incorrect syntax near the keyword 'ORDER'.
code:
1
2
3
4
5
6
7
8
9
| WITH TEST(Praat_ID) AS ( SELECT Praat_ID FROM PraatMee WHERE Praat_ID < 20 ORDER BY 1 DESC ) SELECT * FROM TEST |
enig idee wat ik hier fout doe? Ik heb ook is gegoogled http://www.google.nl/sear...a=lr%3D&aq=1&oq=tsql+with voordat ik dit bericht heb gezet op T-net