Information about first lego league

Assignment Help Basic Computer Science
Reference no: EM131548527

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.

The database stores information about First Lego League (A robotic competition organized by Lego).

The list of tables:

  • Team table with 5 columns: tid (team ID), tname (team name), coach (coach name), cphone (coach phone), state (team state).
  • Team_member table with 4 columns: mid (team member id), tid (team id), mname (member name), mage (member age).
  • Competition table with 5 columns: cid (competition id), cname (name of the competition), state (state), location (location of competition), cdate (date of competition)
  • Team_competition table with 3 columns: tid (team id), cid (competition id), ranking (ranking of the team in the competition, the top few teams will enter competition in the next level).

Problem 2. Insert at least three rows of data to each table. Make sure you keep the primary key and foreign key constraints.

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.

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.

Reference no: EM131548527

Questions Cloud

Application to calculate ticket prices : TicketsRUs needs an application to calculate ticket prices. There are three ticket prices:
What type of mental health agency would you start : P.S my mental health agency serves people with autoimmune diseases, my focusis Multiple Sclerosis, my services would offer resources to help combat.
Legal aspects of information technology : This week, you examined the legal aspects of information technology in regards to intellectual property, copyrights, and illegal software.
Develop communication strategies : Identify the target group for your research and provide an overview of their location in the workplace.
Information about first lego league : 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.
Analyze how a cultural product constructs gender : To demonstrate knowledge of the ways in which gender is socially constructed and maintained through culture, and to illustrate mastery of the core concepts.
How much did the company spend on new property plant : how much did the company spend on new property plant, and equipment during 2014?
Describe the design principle used to create the art : Describe the design principle used to create the art. What is the focal point? How is unity or harmony achieved (color, proximity, rhythm, repetition)? Explain
Given particular set of project cash flows : Given a particular set of project cash flows, which one of the following statements must be correct?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd