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

  Lessons and conceptual ideas presented

From the lessons and conceptual ideas presented in this course, determine the single most impactful or interesting lesson / concept you have learned. Provide a rationale for your response.

  Relationship between accuracy and overall error rate

What is the difference between the total predicted negative and the total actually negative?

  Explain problems with gathering information requirements

One of the potential problems with gathering information requirements by observing potential system users is that people may change their behavior when observed.

  What are the inputs for a bottom-up software project plan

What are the inputs for a bottom-up software project plan? What precautions are taken while creating a project plan to tackle different risks? What kinds of project plans are devised for iterative models of software development?

  Convert a gui server to server core

convert a GUI server to Server Core

  What is a communications protocol

What is a communications protocol? What is the relationship between communications protocols and IT infrastructure? What is a network topology? List and define at least three examples of network topologies.

  Develop a program to play lottery

Suppose you want to develop a program to play lottery. The program randomly generates a Lottery of a two-digit number, prompts the user to enter a two-digit number, and determines whether the user wins according to the following rule.

  What run-time data structures are needed in java

What run-time data structures are needed in Java to implement the mark phase of a mark-sweep garbage collector in which all accessible ("live") heap objects are marked?

  Write a function named celsius

Where F is the Fahrenheit temperature and c is the Celsius temperature. write a function named Celsius  that accepts a Fahrenheit temperature as an argument. The function should return the temperature, converted to Celsius. Demonstrate the function b..

  Changes in income and the prices of other goods

Explain the various ways in which changes in income and the prices of other goods affect the elasticity of demand for a particular good.

  Implementation of the functions

But what about the class definitions -- the actual implementation of the functions. Where and how can you implement the functions of a class? Examples?

  Research how media providers use cloud services

Please write a short paper on ONE of the investigation topics listed below. Your paper should be between one and two pages in length (single-spaced, Times New Roman, 12 point font) not counting the references. Please list all sources used for your in..

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