Groups | Blog | Home
all groups > sql server data mining > december 2004 >

sql server data mining : syntax?



ae
12/14/2004 10:01:04 AM
Can someone show me how to get the proper syntax working on this? It doesn't
update correctly, and I'm thinking it the Commision updates to PaymentAmount,
but it's real erractic and can't troubleshoot. TIA

UPDATE [Revenue Processing]
SET [Revenue Processing].[Commission] = [PAYMENTAMOUNT]-[Commission]
Adam Machanic
12/14/2004 1:30:08 PM
Can you post DDL and sample data to reproduce whatever problem you're
having? That syntax is valid.

http://www.aspfaq.com/etiquette.asp?id=5006

--
Adam Machanic
SQL Server MVP
http://www.sqljunkies.com/weblog/amachanic
--


[quoted text, click to view]

ae
12/14/2004 2:11:03 PM
I can't.

It's in Microsoft Access, and I tried everything I can think of and what it
does it updates it to the field at the end of the equal such as the field
quantity becomes quantity and not discount

i.e.

update table store
set quantity = quantity - discount

here it sets it to quanity and does not follow up with the subtraction.
sometimes it works and sometimes it doesn't. anybody?

[quoted text, click to view]
ae
12/14/2004 2:15:02 PM
Also, I ensured that the fields are formatted the same (they are), in
currency. and it works fine, but up to a point it stops responding, it's
like it doesn't want to do the rest of them, so i have to keep coming back
and updating, but of course that throws everything out of sync. it's only
like 7000 records.
[quoted text, click to view]
ae
12/14/2004 2:25:02 PM
7000
i counted them, do you think access is limited?

[quoted text, click to view]
ae
12/14/2004 2:49:02 PM
Adam,

Taking out the [] from the fields corrected it. What a pain that was.

[quoted text, click to view]
Adam Machanic
12/14/2004 5:16:51 PM
How many rows does this return:


SELECT *
FROM [table store]
WHERE discount = 0


--
Adam Machanic
SQL Server MVP
http://www.sqljunkies.com/weblog/amachanic
--


[quoted text, click to view]

AddThis Social Bookmark Button