SELECT Email FROM mailing_list ORDER BY JoinDate SQL Error: There is no field named JoinDate in the resulting FROM table. Ok? What engine is this using? That's valid SQL in my universe. In PostgreSQL 12: mulmen@shell> psql psql (12.1) Type "help" for help. mulmen=# CREATE TABLE foo ( bar INT, baz INT ); CREATE TABLE mulmen=# INSERT INTO foo VALUES (1, 10), (2, 20); INSERT 0 2 mulmen=# SELECT bar FROM foo ORDER BY baz…
Show HN: SQL Police Department – Learn SQL while solving crimes
81–90 of 91 posts
Re: Show HN: SQL Police Department – Learn SQL while solving crimes
#82Re: Show HN: SQL Police Department – Learn SQL while solving crimes
#83SELECT Email FROM mailing_list ORDER BY JoinDate SQL Error: There is no field named JoinDate in the resulting FROM table. Ok? What engine is this using? That's valid SQL in my universe. In PostgreSQL 12: mulmen@shell> psql psql (12.1) Type "help" for help. mulmen=# CREATE TABLE foo ( bar INT, baz INT ); CREATE TABLE mulmen=# INSERT INTO foo VALUES (1, 10), (2, 20); INSERT 0 2 mulmen=# SELECT bar FROM foo ORDER BY baz…
Syntax is fine, it's complaining because you didn't include `JoinDate` column in your query.
Re: Show HN: SQL Police Department – Learn SQL while solving crimes
#84Earlier quoted context omitted.
It's kinda risky in my opinion. I just checked a few of the addresses (mostly the one's without any numbers at the end), some of them do actually belong to real people.
What's the risk? Your email address isn't exactly a secret...
Also, in a rather grim coincidence, one of the emails I googled belonged to a person who had died in a car crash few years ago.
Re: Show HN: SQL Police Department – Learn SQL while solving crimes
#85Re: Show HN: SQL Police Department – Learn SQL while solving crimes
#86SELECT Email FROM mailing_list ORDER BY JoinDate SQL Error: There is no field named JoinDate in the resulting FROM table. Ok? What engine is this using? That's valid SQL in my universe. In PostgreSQL 12: mulmen@shell> psql psql (12.1) Type "help" for help. mulmen=# CREATE TABLE foo ( bar INT, baz INT ); CREATE TABLE mulmen=# INSERT INTO foo VALUES (1, 10), (2, 20); INSERT 0 2 mulmen=# SELECT bar FROM foo ORDER BY baz…
Re: Show HN: SQL Police Department – Learn SQL while solving crimes
#87Is this for total beginners or does it also cover advanced features like window functions as well? If not, is there a similar tool for learning advanced SQL features?
The site is interactive, but you can also download the dataset and do the exercises on your own database, if you so desire.
Re: Show HN: SQL Police Department – Learn SQL while solving crimes
#88Re: Show HN: SQL Police Department – Learn SQL while solving crimes
#89I checked the network tab in firefox 75 on fedora and the post was instantaneous, about 40 ms to reply (120 if included TLS negotiation). However there is after that an animation that takes a long time and plays a sound.
Re: Show HN: SQL Police Department – Learn SQL while solving crimes
#90It's great! I would buy a licence but I don't know how many cases do you have altogether?
Currently the first rank is 11 cases, and the second rank is 20 additional cases. The second rank covers WHERE with numbers, strings, dates and timestamps, IN, BETWEEN, AND and OR. Check out the guide tab in the game - it covers everything supported so far. Once you finish that, you go into practice mode where you're randomly asked the same kind of cases like the previous ones. I plan on adding support for GROUP BY,…