markdown syntax errors

This commit is contained in:
Imbus 2024-05-04 13:32:53 +02:00
parent d9dc63ae25
commit bd4257e790

View file

@ -2,7 +2,7 @@
> Krusty Kookies is a bakery which specializes in cookies, and they need a database to keep track of their production and deliveries. > Krusty Kookies is a bakery which specializes in cookies, and they need a database to keep track of their production and deliveries.
### Base tables ## Base tables
Unsuprisingly, we will need a cookie table. Unsuprisingly, we will need a cookie table.
@ -90,13 +90,6 @@ This suggests that we may need to relate pallets to customers via a truck entity
Again, the truck as an entity is irrelevant and we only need a table to keep track of what pallet was delivered to what customer along with a date. Again, the truck as an entity is irrelevant and we only need a table to keep track of what pallet was delivered to what customer along with a date.
```sql ```sql
CREATE TABLE deliveries (
delivery_id INT PRIMARY KEY,
pallet_id INT NOT NULL,
customer_name VARCHAR(50) NOT NULL,
delivery_date DATE NOT NULL DEFAULT CURRENT_DATE CHECK (delivery_date >= CURRENT_DATE),
FOREIGN KEY (pallet_id) REFERENCES pallets(pallet_id)
);
``` ```
> Orders must be registered in the database, and, for production planning purposes, the company must be able to see all orders which are to be delivered during a specific time period. > Orders must be registered in the database, and, for production planning purposes, the company must be able to see all orders which are to be delivered during a specific time period.
@ -124,8 +117,12 @@ This should all be possible with a simple join query.
> Blocked products are of special interest. The company needs to find out **which products are blocked**, and also which pallets contain a certain blocked product. > Blocked products are of special interest. The company needs to find out **which products are blocked**, and also which pallets contain a certain blocked product.
As well as:
> Finally, they must be able to check **which pallets have been delivered** to a given customer, and the date and time of delivery. > Finally, they must be able to check **which pallets have been delivered** to a given customer, and the date and time of delivery.
And:
> Orders must be registered in the database, and, for production planning purposes, the company must be able to see all orders which are to be **delivered during a specific time period**. > Orders must be registered in the database, and, for production planning purposes, the company must be able to see all orders which are to be **delivered during a specific time period**.
These are all trivial queries. These are all trivial queries.