Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adding and removing only specified file in a table

Status
Not open for further replies.

Aleathiel

Technical User
May 13, 2005
21
CA
Hi all,

Here is my problem:

I have a table with 6 field that are: SO_NO, SO_STATUS, CUST_CODE, REQUEST SHIP DATE, SHIPPING INSTR, QTY ORDERED

I want to delete the entire row only for the SO_NO that are finished (this is taken with the SO_STATUS while "4" is not finished, "9" is finished) and only add the one that aren't already in the table, is there a way to do that?

Right now I only have a query that delete everything and add all the list of what is in status 4.

Any help would be greatly appreciated, thanks.

Myrdinn
 
To delete just those that are finished, ie. those that have SO_STATUS of 9:
Code:
DELETE * FROM YourTableNameHere WHERE SO_STATUS=9;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top