I’m trying to understand a historical stored procedure I need to fix.
I found this DRVTBL key word, and I couldn’t find out what it means???
(This is a sql2000 database)
SELECT ...
FROM (
...)
) DRVTBL
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.
DRVTBL is an alias for the subquery that precedes it.
When you use a subquery within a SELECT like this, you have to give it an alias. If you remove DRVTBL, you will get an error. It doesn’t then have to go on and be used anywhere else.