#๐ Databases
33 messages ยท Page 1 of 1 (latest)
@lapis raven
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
that's not a database, that's a csv
oh
Also we're not going to answer your quiz for you. You're the one being tested, not us
then what are you asking?
im just a bit confused because i first chose surrogate key candidate and entity because wouldnt b_number be a unique identifier for identities?
I'm actually not too sure ๐ฆ
oh dang
what's b_number
the first column
I know lol
but where does the data come from
how is it generated
A natural key is a key that is derived from the data itself, such as a customer ID, a product code, or a date. A surrogate key is a key that is generated artificially, such as a sequential number, a GUID, or a hash.
If it's some value that's not generated in the DB, I'd pick natural
Have you looked at the definition of an entity when it comes to a database?
Being a unique identifier is what allows it to be a key, but you need to decide whether it's natural or surrogate
this link is better, talks directly about a database, but same idea as the IBM link https://www.gleek.io/blog/database-entity
I see
I understand it better
B number is a number system my school uses
so it is most likely a natural key
one quick question
i just realized it now but
since the B number always 8 characters char(8) would def be the best option right?
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.