GithubHelp home page GithubHelp logo

kappa_sql_pg_solo_challenge's Introduction

#joins.

##relationships

one to one - for every parent object there is exactly one child object example a countrys only have one capitol

one to many - one parent - many children countrys have multiple citys. or authers have multiple books.

many to many - many parents - many children. see, twins, arnold swartzenager and danny devito. many authors collaborating on many movies.

one to many, foreign key - is an identifier and it usually correspoonds to a primary key in another table.

for example - employees department primary key names dept key ---------------------------> primary key dept key, as foriegn key is = to primary key on other table

foreign key constraints help us normalize our data.

cross join - takes the cross product of both tables cortesion product lots of info.. brings everything back for everyone.. every combination of every row. in both tables. BOOM

inner join - set of rows from both tables that match a specific join predicate. say, select * from employees inner join on department on employees.debtkey = departnet.primary_key.

left outer join - if you have null values in the table you are joining from. so u get all the rows from the the left table

right outer join - if you have null values in the table you are joining to. so you get all the rows from the right table.

full outer join - all null values all values from each table. null or otherwise.

kappa_sql_pg_solo_challenge's People

Contributors

rothermal avatar

Watchers

James Cloos 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.