Giter Site home page Giter Site logo

working-with-sql7's Introduction

working-with-SQL7

My queriw=es answered the following questions.

Suppose you are a data analyst at REBU, a ridesharing platform. For a project, you were given three tables: trips - trips information riders - users data cars - autonomous cars

1 What are the column names?

  1. What’s the primary key of trips? What’s the primary key of riders? What’s the primary key of cars?

  2. Try out a simple cross join between riders and cars. Is the result useful?

  3. Suppose we want to create a Trip Log with the trips and its users. Find the columns to join between trips and riders and combine the two tables using a LEFT JOIN. Let trips be the left table.

5.Suppose we want to create a link between the trips and the cars used during those trips. Find the columns to join on and combine the trips and cars table using an INNER JOIN.

  1. The new riders data are in! There are three new users this month. Stack the riders table on top of the new table named riders2.

  2. What is the average cost for a trip?

  3. REBU is looking to do an email campaign for all the irregular users. Find all the riders who have used REBU less than 500 times!

  4. Calculate the number of cars that are active.

  5. It’s safety recall time for cars that have been on the road for a while. Write a query that finds the two cars that have the highest trips_completed.

working-with-sql7's People

Contributors

motunrayokoyejo 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.