SQL 69

Register for the Party (SQL for Beginners #3)

You received an invitation to an amazing party. Now you need to write an insert statement to add yourself to the table of participants. participants table schema name (string) age (integer) attending (boolean) NOTES: Since alcohol will be served, you can only attend if you are 21 or older You can't attend if the attending column returns anything but true NOTE: Your solution should use pure SQL. ..

On the Canadian Border (SQL for Beginners #2)

You are a border guard sitting on the Canadian border. You were given a list of travelers who have arrived at your gate today. You know that American, Mexican, and Canadian citizens don't need visas, so they can just continue their trips. You don't need to check their passports for visas! You only need to check the passports of citizens of all other countries! Select names, and countries of orig..

Grasshopper - Terminal game move function

Terminal game move function In this game, the hero moves from left to right. The player rolls the dice and moves the number of spaces indicated by the dice two times. In SQL, you will be given a table moves with columns position and roll. Return a table which uses the current position of the hero and the roll (1-6) and returns the new position in a column res. Example: move(3, 6) should equal 15..