Code Monkey home page Code Monkey logo

database-design-sauna's Introduction

Database Design for Sauna Heating World Championship

  • Requirements Gathering
  • Entity-Relationship Model
  • Relational Database Model
  • Final Coding phase of the database
  • Testin Database

List of all commands run, and their descriptions

  1. Inclusion‌ ‌of‌ ‌the‌ ‌winner‌ ‌in‌ ‌the‌ ‌Events‌ ‌entity‌ ‌type‌ ‌based‌ ‌on‌ ‌the‌ ‌maximum‌ ‌total‌‌ points‌ ‌found‌ ‌in‌ ‌the‌ ‌points‌ ‌entity‌ ‌type.‌ ‌

    • Based on the maximum points in the Points entity type, the 'Winner' is added to the Events entity type
  2. Addition‌ ‌of‌ ‌a‌ ‌new‌ ‌hotel‌ ‌in‌ ‌the‌ ‌accommodation‌ ‌entity‌ ‌type‌ ‌if‌ ‌the‌ ‌number‌ ‌of‌‌ vacant‌ ‌rooms‌ ‌>=‌ ‌20‌ ‌

    • If the Bookings in the Accomodation2 crosses 20, then the vacancy in Hotels is set to 0
  3. Deletion‌ ‌of‌ ‌the‌ ‌athlete‌ ‌from‌ ‌the‌ ‌participant’s‌ ‌list‌ ‌if‌ ‌the‌ ‌penalty‌ ‌points‌ ‌>=‌ ‌100,‌‌ from‌ ‌the‌ ‌points‌ ‌entity‌ ‌type.‌ ‌

    • If the Pentaly_points in the Points entity type is more than 100, then that corresponding player is removed everywhere.
  4. Update‌ ‌the‌ ‌date‌ ‌of‌ ‌an‌ ‌event‌ ‌if‌ ‌the‌ ‌number‌ ‌of‌ ‌participants‌ ‌registered‌ ‌for‌ ‌a‌‌ given‌ ‌event‌ ‌is‌ ‌less‌ ‌than‌ ‌50‌ ‌in‌ ‌the‌ ‌events‌ ‌entity‌ ‌type.‌ ‌

    • If less than 50 people have signed up for the Event, then the Event_date is changed
  5. Ask‌ ‌and‌ ‌update‌ ‌the‌ ‌age‌ ‌of‌ ‌the‌ ‌participant‌ ‌whenever‌ ‌a‌ ‌new‌ ‌entity‌ ‌is‌ ‌being‌‌ added‌ ‌to‌ ‌the‌ ‌events.

    • The Age of the participants is updated based on the current date
  6. Select‌ ‌200‌ ‌tuples‌ ‌in‌ ‌the‌ ‌events,‌ ‌in‌ ‌which‌ ‌the‌ ‌particpant’s‌ ‌points‌ ‌in‌ ‌the‌ ‌points‌‌ entity‌ ‌type‌ ‌is‌ ‌maximum.‌ ‌

    • The 200 maximum point getters are listed out from the Points entity type
  7. List‌ ‌all‌ ‌the‌ ‌participants‌ ‌in‌ ‌a‌ ‌given‌ ‌race‌ ‌event‌ ‌based‌ ‌on‌ ‌the‌ ‌gender‌ ‌category‌ ‌in‌‌ the‌ ‌participants‌ ‌entity‌ ‌type.‌ ‌

    • The user is asked for a gender category, and all the players of that gender are listed out from the Participants entity type.
  8. Display‌ ‌the‌ ‌names‌ ‌of‌ ‌all‌ ‌the‌ ‌participants‌ ‌based‌ ‌on‌ ‌their‌ ‌country‌ ‌name.‌ ‌

    • The user is asked for a country name, and all the players from that country are listed out from the Participants entity type.
  9. Count‌ ‌and‌ ‌nominate‌ ‌all‌ ‌the‌ ‌participants‌ ‌for‌ ‌the‌ ‌next‌ ‌event‌ ‌whose‌ ‌height‌ ‌is‌ ‌in‌‌ the‌ ‌range‌ ‌of‌ ‌140‌ ‌-‌ ‌160‌ ‌cm.‌ ‌

    • All the participants with height in the range 140-160 cm are nominated.
  10. Search‌ ‌for‌ ‌any‌ ‌Australian‌ ‌male‌ ‌participant‌ ‌whose‌ ‌height‌ ‌is‌ ‌150‌ ‌cm.

    • Australian male participant whose height is 150cm is searched
  11. Quit

    • Ends the program

database-design-Sauna

database-design-Sauna

database-design-Sauna

database-design-sauna's People

Contributors

karthikprasanna avatar vinay-sridhar avatar

Watchers

 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.