Click here to Skip to main content
15,886,633 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have table :

ItemCode          Qty            Harga
AAA               10             100.000
AAA               10             150.000
AAA               10             200.000


Plesa help me to make this table :

ItemCode          Qty            Harga
AAA               10             100.000
AAA                0             150.000
AAA                0             200.000



Thanks you....

[edit]Code block added - OriginalGriff[/edit]
Posted
Updated 4-Apr-13 22:12pm
v2
Comments
Aarti Meswania 5-Apr-13 3:18am    
you want to add result in new table or
change in existing one?

1 solution

Try:
C#
UPDATE MyTable SET Qty=0 WHERE ItemCode='AAA' AND Harga!=100
 
Share this answer
 
Comments
Maciej Los 5-Apr-13 4:16am    
+5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900