Last answered:

24 Aug 2022

Posted on:

17 Aug 2022

2

why you add a not null in the sales table besides primary key

why you add a not null in the sales table besides primary key, you can just use primary key because it doesn't accept not null values.

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

24 Aug 2022

1

Hi Houda!
Thanks for reaching out.

Your observation is not incorrect! The column is indeed a primary key in this table.
We have not created it as such for now because we are doing that in the upcoming lectures. As you may check the syllabus, we have not yet covered the concept of primary keys so we didn't want to write something that is not yet being thought.

Hope this helps.
Best,
Tsvetelin

Posted on:

24 Aug 2022

0

Ok, I get it.
Thanks.

Submit an answer