I'm stuck on a problem on my MySql homework. The question is:
My thought is to update the quantity each time the database sees that (for example) customer number 1004 makes an order. BUT, how and where do I store this new variable without adding it to the database? I just want to display it.
The row names I'm dealing with are custid (customerID, an integer) and quant (quantity ordered, an integer)
Thanks
Quote:
How many books has each customer ordered? List the customer number and the total number of books (a calculated field) ordered by the total number of books in descending order.
My thought is to update the quantity each time the database sees that (for example) customer number 1004 makes an order. BUT, how and where do I store this new variable without adding it to the database? I just want to display it.
The row names I'm dealing with are custid (customerID, an integer) and quant (quantity ordered, an integer)
Thanks





