I have this code working:
SELECT sv.FieldValue, s.SubmissionId
FROM SUBMISSION_VALUES sv, SUBMISSIONS s
WHERE s.SubmissionId = sv.SubmissionId AND s.FormId=2 AND sv.FieldName='First'
1. what do the letters sv and s mean after the table names?
2. I need to retrieve another value from the table SUBMISSION_VALUES. Specifically I need the FieldValue WHERE FieldName='Last'.
How do I add this to my SQL select statement?
SELECT sv.FieldValue, s.SubmissionId
FROM SUBMISSION_VALUES sv, SUBMISSIONS s
WHERE s.SubmissionId = sv.SubmissionId AND s.FormId=2 AND sv.FieldName='First'
1. what do the letters sv and s mean after the table names?
2. I need to retrieve another value from the table SUBMISSION_VALUES. Specifically I need the FieldValue WHERE FieldName='Last'.
How do I add this to my SQL select statement?