Kal
04-10-2007, 10:18 AM
Hi guys
i'm a little difficulty in updating one table, but using two where clauses from two different tables.
basically i have 4 tables, customers, packages, status and transactions.
a customer can have several packages, each package has a status, and each package has a transactions.
i already know the customer_id, the transaction table already has the customer_id, and package_id(s) allocated on insert.
i need to be able to update the transaction table where the customer_id is the one i already have and where the package status is 'Pending'.
i cant seem to work out how i get the package_status from the packages table and include it in the update query where clause.
any help would be great.
thanks in advance
i'm a little difficulty in updating one table, but using two where clauses from two different tables.
basically i have 4 tables, customers, packages, status and transactions.
a customer can have several packages, each package has a status, and each package has a transactions.
i already know the customer_id, the transaction table already has the customer_id, and package_id(s) allocated on insert.
i need to be able to update the transaction table where the customer_id is the one i already have and where the package status is 'Pending'.
i cant seem to work out how i get the package_status from the packages table and include it in the update query where clause.
any help would be great.
thanks in advance