Coder Social home page Coder Social logo

celestial-bodies-database's Introduction

Celestial-Bodies-Database

A database of celestial bodies using PostgreSQL.

  • You should create a database named universe

  • Be sure to connect to your database with \c universe. Then, you should add tables named galaxy, star, planet, and moon

  • Each table should have a primary key

  • Each primary key should automatically increment

  • Each table should have a name column

  • You should use the INT data type for at least two columns that are not a primary or foreign key

  • You should use the NUMERIC data type at least once

  • You should use the TEXT data type at least once

  • You should use the BOOLEAN data type on at least two columns

  • Each "star" should have a foreign key that references one of the rows in galaxy

  • Each "planet" should have a foreign key that references one of the rows in star

  • Each "moon" should have a foreign key that references one of the rows in planet

  • Your database should have at least five tables

  • Each table should have at least three rows

  • The galaxy and star tables should each have at least six rows

  • The planet table should have at least 12 rows

  • The moon table should have at least 20 rows

  • Each table should have at least three columns

  • The galaxy, star, planet, and moon tables should each have at least five columns

  • At least two columns per table should not accept NULL values

  • At least one column from each table should be required to be UNIQUE

  • All columns named name should be of type VARCHAR

  • Each primary key column should follow the naming convention table_name_id. For example, the moon table should have a primary key column named moon_id

  • Each primary key column should follow the naming convention table_name_id. For example, the moon table should have a primary key column named moon_id

  • Each foreign key column should have the same name as the column it is referencing

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.