May 12, 2008 at 9:02 pm
Hi All:
I have an error message that i cannot figure out, it is Msg 102, Level 15, State 1, Line 9
Incorrect syntax near 'Workers'. I am attempting to increase the salary for Sales Workers by 5%. I have been working on this query for over twelve hours and I feel like throwing a brick (sponge of course) at my computer. Any help is greatly appreciated.:D
My code is as follows:
USE Kudler
SELECT *
FROM Employee, JobTitle
SELECT e.Salary, e.EEO1Classification
WHERE e.EEO1Classification = (SELECT Sales Workers
FROM Employee.e
WHERE e.EEO1Classification = Sales Workers)
ORDER by Salary
FROM Employee.e
UPDATE Employee
SET Salary = Salary & 1.05
GO
May 12, 2008 at 10:06 pm
Hi:
I figured it out. My correct code as follows:
USE Kudler
SELECT *
FROM Employee, JobTitle
SELECT Salary, Employee.EEO1Classification
FROM Employee
WHERE EEO1Classification = 'Office/Clerical';
UPDATE Employee
SET Salary = Salary * 1.05
GO
Thanks,
Jen
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply