Hi I need a view which will join 4 tables together by doing this...
CREATE VIEW dbo.submittedApril
AS
SELECT *
FROM applicants INNER JOIN
applicantData ON applicants.ID = applicantData.ID
UNION ALL
SELECT *
FROM applicants_inactive INNER JOIN
appData_inactive ON applicants_inactive.ID = appData_inactive.ID
However when I try to create this as a view in Query analyser
I get this error message.......
Server: Msg 8156, Level 16, State 1, Procedure submittedApril, Line 4
The column 'ID' was specified multiple times for 'submittedApril'.
Please can anyone help....
Mayoor
CREATE VIEW dbo.submittedApril
AS
SELECT *
FROM applicants INNER JOIN
applicantData ON applicants.ID = applicantData.ID
UNION ALL
SELECT *
FROM applicants_inactive INNER JOIN
appData_inactive ON applicants_inactive.ID = appData_inactive.ID
However when I try to create this as a view in Query analyser
I get this error message.......
Server: Msg 8156, Level 16, State 1, Procedure submittedApril, Line 4
The column 'ID' was specified multiple times for 'submittedApril'.
Please can anyone help....
Mayoor