Link to home
Start Free TrialLog in
Avatar of r3nder
r3nderFlag for United States of America

asked on

improper syntax near UNION

I am getting improper syntax near 'UNION'
- I dont see it
SELECT 'TIE IN' as [Type], Inclination,VerticalDepth,CreatedOn, 'ACCEPTED' as [Status] 
FROM SS_TieIn 
WHERE JobID = 10299;
UNION ALL
Select 'SURVEY' as [Type],Inclination,SurveyDepth as 'Bit Depth',SurveyDateTime,'ACCEPTED' as [Status] 
FROM SS_Surveys 
WHERE JobID = 10299 and SurveyStatus = 1;

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of r3nder

ASKER

uuuhhhggg, thanks
Avatar of r3nder

ASKER

Thanks Qlemo