dbTalk Databases Forums  

=> Update Query

microsoft.public.sqlserver.mseq microsoft.public.sqlserver.mseq


Discuss => Update Query in the microsoft.public.sqlserver.mseq forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Eric
 
Posts: n/a

Default => Update Query - 07-31-2003 , 08:42 AM







It's hard to say without details of the tables and
datatypes.

Are the columns that are being compared of the same
datatype?
Is 'A*' meant to be a wild character condition?
If so theh this should be:
WHERE [Deliveries Made].RDC LIKE 'A%'
Is the Dateformat set to dd/mm/yyyy ?

HTH,
Eric

Quote:
-----Original Message-----
Hello,

Is there anything obviously wrong with this UPDATE
query. I receive the errmsg: Syntax Error (missing
operator). Not sure, any ideas?

UPDATE AsdaOrders
SET AsdaOrders.Run = [Deliveries Made].Wave
FROM AsdaOrders INNER JOIN [Deliveries Made] ON
(AsdaOrders.RDC = [Deliveries Made].RDC) AND
(AsdaOrders.DelDate = [Deliveries Made].[Del Date])
WHERE [Deliveries Made].RDC = 'A*'
AND [Deliveries Made].[Del Date] BETWEEN '11/07/2003'
AND '12/07/2003'
.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.