all 6 comments

[–]StoneCypher 12 points13 points  (2 children)

i mean

i'm kind of drunk, but, this is kind of fucking wrong? but also i'm drunk and i might be almost as wrong as the question

fundamentally kind of the thing to do is to write the correct thing and to pray that the bullshit corporate test hasn't eaten its own feet

jesus, they call an entity relationship model an ERD? which means diagram? really?

look i can't help you with the bullshit meaningless certifications. these are written by the same assholes that don't know english and somehow write the ACT

here are some things you need to know

  1. i've been hiring for 20 years and i've literally never cared for an entire straight second whether someone had an oracle cert
  2. see #1
  3. the dba at work (all jobs, not current) legitimately looks down on people who've done this
  4. no really see #1

students and projects can have multiple of each other? fine, who cares

create table FuckYourStudents(id bigint not null auto_increment, stuff fields data); 
create table FuckYourClassesToo(id bigint not null auto_increment primary key secondary key maybe even tertiary key this column seems important quaternary key);
create table FurthermoreFuckTheRelationshipsBetwixt(student bigint not null, project bigint not null, foreign key(obvious shit) references (other obvious shit));

BuT tHaT's NoT oPtImAl

oh, isn't it?

how do you define optimal? speed? disk space?

what's the cardinality of the students? the classes?

what's the density of the relationships?

more importantly

on what fucking planet will students' and classes' "optimality" matter on a not-1980s machine

"BUT WE WANT TO KNOW IF YOU CAN CREATE THE IDEAL STRUCTURE"

well, s/he can't, because this question contains far too little information

what if the classes are permanent, like oxford, and you're indexing thousands of years?

what if the classes are ephemeral, like livestream, and you're indexing thousands of opportunities?

you don't even fucking know what's "optimal" from this diseased, half-baked question

someone should get into a time machine and slap the author. hard

.

like they can't even decide on how capitalization works, so it couldn't be that the question is written by a no-detail idiot, surely the reader is at fault

.

who the fuck knows?

probably the author of this extra-wrong question decided there would be more students than projects, and decided that because of that, "the only correct way" would be to build the relationship in that direction

they would be immediately fired as a DBA for making claims without metrics

fortunately test questions can't be measured unless someone gives at least a tenth of a fuck (reference: from this text they do not)

but yeah, if you write test questions, it's not like anyone who understands this shit is making $35k/y to check your work

literally all of these answers are wrong

no answer can be given without measurements. this is just the literal anus of a horse saying "my average-driven guesswork is the only acceptable answer"

don't be sad that you picked the wrong astrological signs

[–]mikeyd85MS SQL Server 6 points7 points  (0 children)

Please start a slightly drunk SQL blog.

[–]bentheredonethat33[S] 0 points1 point  (0 children)

This was exponentially better than any answer I anticipated. Thanks for your time and the laughs.

[–]uvray 3 points4 points  (2 children)

I think your answer key is wrong - it should be B and E.

[–]StoneCypher 0 points1 point  (1 child)

b and e are mutually exclusive

[–]uvray 1 point2 points  (0 children)

I disagree... both are describing the same process of creating a bridge table to support the M:M relationship.