These are the tables I have to work with.
customer (cust_id, name, city, postcode)
order (order_id, cust_id, date)
orderline (order_id, video_id, quantity)
video (video_id, description, price, category_id)
category (category_id, description)
I need to:
Create a view named CustomerSummary which shows the customer name along with the total number of videos ordered and total order value for each customer.
orderis a reserved word. Don't use it as an identifier, even if it appears to work.