#๐Ÿ”’ Databases

33 messages ยท Page 1 of 1 (latest)

lapis raven
#

Hello Im in need of help for a homework

zenith mothBOT
#

@lapis raven

Python help channel opened

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.

lapis raven
#

I have this database

tough drum
#

that's not a database, that's a csv

lapis raven
#

oh

tough drum
#

Also we're not going to answer your quiz for you. You're the one being tested, not us

lapis raven
#

it aint a quiz lmao

#

there a reason it a retake question

tough drum
#

then what are you asking?

lapis raven
#

im just a bit confused because i first chose surrogate key candidate and entity because wouldnt b_number be a unique identifier for identities?

tough drum
#

I'm actually not too sure ๐Ÿ˜ฆ

lapis raven
#

oh dang

dense coral
#

what's b_number

tough drum
#

the first column

dense coral
#

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

lament zephyr
#

Have you looked at the definition of an entity when it comes to a database?

dense coral
lament zephyr
lapis raven
#

I see

#

I understand it better

#

B number is a number system my school uses

#

so it is most likely a natural key

lapis raven
#

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?

zenith mothBOT
#
Python help channel closed

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.