Given customer (c_id, c_name) and product (p_id, p_name) tables, design an orders table and write a query to get product name and customer name of orders on the current date.
Asked in the Round 1 stage.
product_name and customer_name.order_id in ascending order.| Column | Type | Description |
|---|---|---|
| c_idPK | INTEGER | Unique customer identifier |
| c_name | VARCHAR(100) | Customer name |
| Column | Type | Description |
|---|---|---|
| p_idPK | INTEGER | Unique product identifier |
| p_name | VARCHAR(120) | Product name |
| Column | Type | Description |
|---|---|---|
| order_idPK | INTEGER | Unique order identifier |
| c_id | INTEGER | Referenced customer identifier |
| p_id | INTEGER | Referenced product identifier |
| order_date | DATE | Date on which the order was placed |