Making it happen
Derived tables
Writing something like SELECT name FROM (SELECT * FROM Products) may look correct in SQL, however SQL Server throws an Incorrect syntax near ‘)’ that’s not user-friendly at all (Oracle though accepts this syntax). You can get it working in SQL Server also by naming the derived table i.e. change to the following: SELECT name FROM (SELECT * FROM Products) AS Products2.
| Print article | This entry was posted by andrei on March 20, 2008 at 6:08 pm, and is filed under Uncategorized. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |

about 3 years ago
first specify somthing then ask for comment