8000 relationships unclear in case 2 · Issue #23 · hristo2612/SQLNoir · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

relationships unclear in case 2 #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
DeclanGS opened this issue Feb 18, 2025 · 2 comments
Open

relationships unclear in case 2 #23

DeclanGS opened this issue Feb 18, 2025 · 2 comments

Comments

@DeclanGS
Copy link

Hi- love this, excellent fun- but beat my head against case 2 for a bit because I misunderstood how hotel_checkins and surveillance_records were linked. The obvious interpretation (to me at least) is that you would JOIN surveillance_records ON hotel_checkin_id = hotel_checkins.id —that is, that the entries in the surveillance records table associated with a given checkin_id would be observations about that checkin and the behavior of the person who checked in then.

I guess actually you're supposed to join on the person_id, and the hotel_checkin_id for a given surveillance record is...something else? The checkin id for the person who made the observation maybe? It's not at all clear to me. But, I had to brute force the case and then backsolve to figure out what had even gone wrong, because trying to join on the checkin id doesn't pull up anything relevant.

@WebF0x
Copy link
WebF0x commented Feb 27, 2025

I think you mean case 3

@WebF0x
Copy link
WebF0x commented Feb 27, 2025

We also found the column names ambiguous.
Is it the person being surveilled? The person doing the surveillance? Surveillance about a specific person checking in? Etc

May I suggest a "documentation" page that further defines the columns in the schema?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0