In a statement like this:
SELECT CUSTOMER_NAME, T.LOAN_NUMBER, S.AMOUNT
FROM BORROWER AS T, LOAN AS S
WHERE T.LOAN_NUMBER = S.LOAN_NUMBER
So the tuple variables here are T and S?
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.
They are useful for saving typing, but there are other reasons to use them:
Regarding the name, “tuple” comes from the idea that a row is a tuple of values, e.g.
(1, 'Fred', 1400). However I don’t know why it is called a variable, because it cannot be modified afterwards. I don’t think this is a particularly common term to describe this feature. The SQL Standards refer to them as “correlation names”. Looking at the major databases, all of them use another term instead: