Last answered:

25 Oct 2023

Posted on:

16 Oct 2023

0

Error occured in my sql

Can anyone type the correct coding for this practice? I still can't execute it

1 answers ( 0 marked as helpful)
Instructor
Posted on:

25 Oct 2023

0

Hi King!
Thanks for reaching out.

Please, use the following code:

USE sales; 

CREATE TABLE sales (
    purchase_number INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
    date_of_purchase DATE NOT NULL,
    customer_id INT,
    item_code VARCHAR(10) NOT NULL
);


Hope this helps.
Best,
Tsvetelin

Submit an answer