Im going to create a store procedure to update the customer status under customer table.My assumptinos is if the "amount" field of salesorders(this is the different table) over $1000,we will name him as "good" customer in the "type" field,and the default one is "normal".The problem is the "type" field is in the customer table and the "amount" field is in the salesorder table!how can i create a store procedure in the customer table by using the "amount" in the salesorders table?Its urgent!Can someone help me?thankx alot!