GithubHelp home page GithubHelp logo

exit-ticket-7_4's Introduction

Exit Ticket

Lesson 7.4 - Intro to SQL: Data Definition

Directions

Fork and clone this repo before completing the steps below.

  1. In players.sql, write the SQL that will create a table, players based on the table below. Be sure to write the statement that will create the table and the statement(s) that populate it with the five entries below.
ID Last Name First Name Position Jersey Number Weight (lb.) Height (in.) Date of Birth
1 Fisher Derek QB 2 210 74 January 2, 1999
2 Cunningham Reginald DE 55 240 75 April 3, 1998
3 Jackson Stephen WR 13 184 76 October 13, 1998
4 Colton Ryan K 81 238 74 December 12, 1998
5 Wright Alexander RB 23 190 70 March 13, 1999
6 Smalls Elliot OLB 33 215 69 February 23, 1999

Notes:

  • IDs are unique identifiers for each player.
  • Position and jersey number are not mandatory. Everything else is.
  • Position is always an abbreviation of either one, two, or three letters.

  1. Now, update players so that a player's position and jersey number are mandatory fields.

  2. In college, two players are allowed to play with the same jersey number. In the NFL, players must have unique jersey numbers. Update players such that jersey numbers must be unique.

  3. Jersey numbers must be greater than 0 and less than 100. Add a constraint to players to check for that.

  4. Sometimes, recruited players don't have a specified position. These players are generally categories as "Athletes". Set a default value for your position column so that if a player's position is not specified, it defaults to 'ATH'.

  5. Add the following rows to you table.

ID Last Name First Name Position Jersey Number Weight (lb.) Height (in.) Date of Birth
6 Jamison Zion ATH 12 285 80 October 25, 2000
7 Johnson Craig P 17 173 72 November 25, 1999

Submissions

Submit by opening a PR by 4:45PM on Monday, March 23.

exit-ticket-7_4's People

Contributors

rogbonna1 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.