Explain database normalisation and its types, then write a few basic SQL queries
Asked in the Round 4 stage, after the candidate named database systems as a favourite course. Explain the main normalization levels, then write a PostgreSQL query using the provided normalized order data.
Output
- One row per completed order with
order_id, customer_name, order_date, and total_order_value.
- Include completed orders without line items, showing a total of zero.
- Order by
total_order_value descending, then order_id ascending.