Giter Site home page Giter Site logo

opencv13 / practice-sql-with-sqlite-and-jupyter-notebook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from royalosyin/practice-sql-with-sqlite-and-jupyter-notebook

0.0 0.0 0.0 10.78 MB

Practice basic SQL syntax with Jupyter notebook. SQL is particularly useful in handling structured data where there are relations between different entities/variables of the data. SQL is a very important tool for data scientists to have in their repertoire.

License: MIT License

Jupyter Notebook 100.00%

practice-sql-with-sqlite-and-jupyter-notebook's Introduction

Practice-SQL-with-SQLite-and-Jupyter-Notebook

Practice basic SQL syntax with Jupyter notebook. SQL is particularly useful in handling structured data where there are relations between different entities/variables of the data. SQL is a very important tool for data scientists to have in their repertoire.

In this tutorial, we will practice

  1. How to create/connect a SQLite database
  2. How to create a table from scratch/from an existing table
  3. How to drop a table
  4. How to insert data into/update a table
  5. How to retrieve data
  6. How to do maths across table columns
  7. How to aggregate data
  8. How to join tables
  9. How to create/drop views to simplify queries
  10. How to deal with NULLs
  11. How to convert query results into Pandas's DataFrame
  12. How to rollback and commit a transaction (this one used the sqlite3 package as ipython_sql does not support transactions).
  13. (Bonus)How to access a SQLite database directly with Pandas
  14. Dealing with date and time.

It is worth noting that this tutorial mainly focuses on how to retrieve data from a database, instead of database management. That is also why we slected SQLite rather than more complicated Databases such as MySQL or PostgreSQL, etc.

Moreover, this SQLite tutorial would not cover everything about SQLite. Some important features are left to be explored by users such as triger and tansaction, primary or foreigh index, etc.

The most efficient way to master SQL is to keep practicing through extensive hands-on practices. Hope that you could start using SQLite effectively and comfortably.

practice-sql-with-sqlite-and-jupyter-notebook's People

Contributors

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