Link to home
Start Free TrialLog in
Avatar of funkkube
funkkubeFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Anyone tell me what is wrong with this?

Hi
I have a strored procedure which part of it is as below..
It keeps syaing incorrect syntax...
ANyone tell me what is wrong?

      insert into  Details  (FIeld naems etcc)
                      SELECT     FIeld Names etc
                  FROM Another_Details left outer join users on aother_details.officer_id = users.attendant_id
                                        Where ID = @KeyID and Registration_No >''
                  WHERE     (Users.Account_Disabled = '0')

Obviously field names is jst a summary of the fileds in the table..
its the WHERE     (Users.Account_Disabled = '0') bit which has caused the problem...
Cheers
Mat
Avatar of momi_sabag
momi_sabag
Flag of United States of America image

did you try
WHERE     (Users.Account_Disabled = 0)
?
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg 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 funkkube

ASKER

super thanks!