Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Where statement error

Author  Topic 

shan1430
Yak Posting Veteran

86 Posts

Posted - 2008-04-06 : 20:45:48
Insert Into Weekly(TesterID)
Select TesterID
FROM ALD where TesterID = 'CMT32' , 'CMT31' , 'CMT02','CMT33','CMT04','CMT36','CMT37','CMT38','CMT03','CMT05','CMT42','CMT34','CMT41','CMT40','CMT29','CMT30','CMT01','CMT39','CMT35'

Im receiving the following error while trying to execute the given query. Advice please.

Msg 102, Level 15, State 1, Line 3
Incorrect syntax near ','.


singularity
Posting Yak Master

153 Posts

Posted - 2008-04-06 : 21:16:02
Insert Into Weekly(TesterID)
Select TesterID
FROM ALD where TesterID IN ('CMT32' , 'CMT31' , 'CMT02','CMT33','CMT04','CMT36','CMT37','CMT38','CMT03','CMT05','CMT42','CMT34','CMT41','CMT40','CMT29','CMT30','CMT01','CMT39','CMT35')
Go to Top of Page

shan1430
Yak Posting Veteran

86 Posts

Posted - 2008-04-06 : 22:41:04
Thank you. It helps..
Go to Top of Page
   

- Advertisement -