Line Items Need Orders
Design the order_lines table for order line items. It needs id as the primary key, required order_id referencing orders(id), and required qty; the database must not allow a line item for a missing order.
Endast CREATE/ALTER/DROP — ingen avslutande SELECT behövs.
Logga in för att se historik över inskick
Logga inLogga in för att använda AI-mentorn
Logga inInget startschema
Den här uppgiften börjar utan tabeller — du skapar dem med CREATE TABLE.