RE: Query

RE: Query

 

  

Opps I knew it had to be something easy.
Thanks!

-----Original Message-----
From: Mitchem, Jim [mailto:[Email Address Removed] August 27, 2003 12:05 PM
To: LazyDBA.com Discussion
Subject: RE: Query


exists not exsits ??????

-----Original Message-----
From: Rob Haughian [mailto:rob.[Email Address Removed]
Sent: Wednesday, August 27, 2003 1:58 PM
To: LazyDBA.com Discussion
Subject: Query


Does anybody see whats wrong with this query?
The errors are the following:

Server: Msg 156, Level 15, State 1, Line 2
Incorrect syntax near the keyword 'select'.
Server: Msg 170, Level 15, State 1, Line 3
Line 3: Incorrect syntax near ')'.

update sem_production set val_use = 'D' where exsits
(select * from sem_production P where P.[Date] > '2002_10'
and P.well_id = sem_production.well_id and P.[date] =
sem_production.[date])



Rob Haughian
Saskatchewan Assessment Management Agency (SAMA)
200 - 2201 - 11th Avenue
Regina, SK, S4P 0J8



---------------------------------------------------------------------
TO REPLY TO EVERBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
To unsubscribe, e-mail: mssqldba-[Email Address Removed] additional commands, e-mail: mssqldba-[Email Address Removed]MS Sql Server LazyDBA home page