The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 2 Days Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
IS 633 Assignment 1
Due 6/23
Â
Please submit SQL statements as text file. You do not need to show screen shot. Make sure you have tested your SQL statements in Oracle.
Â
Problem 1. Please create the following tables with appropriate primary keys & foreign keys. [20 points]
Â
The database stores information about First Lego League (A robotic competition organized by Lego).
Â
The list of tables:
Â
Â
Problem 2. Insert at least three rows of data to each table. Make sure you keep the primary key and foreign key constraints. [20 points]
Â
Problem 3. Please write ONE SQL statement for each of the following tasks using tables created in Problem 1. You can ONLY use conditions listed in the task description. For example, you CANNOT manually look up the tid of electrons in task 3. Â [60 points, 10 points each]
Â
Task 1: Return the total number of teams
Task 2: Return the name of the team coached by Susan.
Task 3: Return the names of members in the team electrons.
Â
Task 4: Return the names competition the team 'electrons' has participated and the team's ranking in each such competition
Â
Task 5: Return the number of teams participated in each competition along with the name and date of the competition.
Â
Task 6: Return the name of the team that has at least 4 members.
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly