Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are Common Table Expression's (CTE) available in SQL Server 2000

I recently found the following article:

http://www.tsqltutorials.com/with-common-table-expressions.php

The article doesn't list which version of SQL server this became available in. Does this work in SQL Server 2000 and if not what is the earliest version that it is usable in?

Update: I did try a quick test and the test doesn't work. I'm asking that it doesn't work in SS2000 to ensure it isn't me or my setup.

like image 676
Frank V Avatar asked Jun 08 '09 17:06

Frank V


1 Answers

Common table expressions were introduced in SQL Server 2005.

http://www.simple-talk.com/sql/sql-server-2005/sql-server-2005-common-table-expressions/

like image 150
Aaron Alton Avatar answered Oct 21 '22 04:10

Aaron Alton