
Learn to work with SQL databases like MySQL and SQLite and NoSQL databases like MongoDB using Python, and build and manage databases from basics to professional applications.
Identify the two prerequisites: Python basics - variables, data types, conditionals, loops, functions, classes, modules, and packages - and the Jupiter notebook setup, with Anaconda as a download option.
Explore SQLite, a lightweight, serverless, transactional relational database integrated with your application, enabling direct file-based reads and writes in Python with no installation.
Install MySQL locally using the installer and launcher, set up the server with MySQL Workbench and MySQL Shell, and install Python MySQL connector via pip to test import and connection.
Create and modify tables by defining a primary key with auto increment in column id, and alter existing tables to add a primary key for unique record identification.
Learn to insert many records into a students table using the execute mini statement, by passing a list of values and committing changes, then display the inserted records.
Connect to the new data database, create a cursor, and execute a select statement to retrieve data from the students table; fetch the first record with fetchone and print result.
Filter records from the students table by using a select statement with a where clause, execute it with a cursor, fetch results, and print matching records in Python.
Explore wildcard characters in MySQL to filter records with the like operator, using % and _ to match patterns in the name column.
Use the update statement to modify existing records in a table, then commit changes and print the result; protect against SQL injection by using placeholders with execute.
Explore sqlite3 in Python to connect to a sqlite database or create one with no installation. Import the library and execute SQL statements directly in a lightweight setup.
Use the daytime function from the skylight library in Python to obtain the current date and time via a select statement, then execute and fetch one to print the result.
learn to create and manage a sqlite3 database in python by connecting to a data testing database, creating a clients table, inserting records, committing, closing, and fetching results.
Drop the clients table in the data testing database using the drop table statement. Use if exists to avoid errors, then commit and close the connection.
Create a sqlite3 program in Python that drops and recreates a clients table, uses with statement, inserts multiple records, and selects and prints rows where number > 7.
Use the find method to limit and select documents in the new students collection, then apply advanced query modifiers and order results in ascending or descending order.
Apply a query to delete first matching document with delete_one, or delete_many with an empty query to delete all matches in new students collection, and print the deleted count.
Learn how to drop a MongoDB collection, and update documents with update_one and update_many using the set operator, illustrated on the new students collection.
Hello and welcome to the Databases with Python: MySQL, SQLite & MongoDB with Python Course.
Using and manipulating databases is one of the most important and powerful skills that every developer should master well, because it is in great demand in the market constantly and with high salaries.
So, if you want to be a professional developer, engineer or data scientist, it is very important to be familiar with dealing with databases of all kinds.
In this course, you will learn how to use different types of databases with the Python programming language, from beginning to professionalism. You will master the use of SQL through MySQL and SQLite, and Also NoSQL through MongoDB.
You'll learn:
Build and Manipulate Databases with Python
Master SQL programming
Installing and using the MySQL tools
Using MySQL with Python
Create, insert, update, filter and delete records, tables and databases in SQL
Apply the SQL Commands in Python without installing programs
Using SQLite with Python
Master NoSQL programming
Installing and using the MongoDB tools
Practicing MongoDB with Python
Create, insert, update, filter and delete documents and collections in NoSQL
Get the instructor QA support
and more.
A database is a structured collection of data. It may be anything from a simple shopping list to a picture gallery or a place to hold the vast amounts of information in a corporate network.
What is MySQL?
MySQL is a relational database management system (RDBMS) developed by Oracle that is based on structured query language (SQL).
MySQL is open source, flexible, high performance, secure, and easy to use.
What is SQLite?
SQLite is a software library that provides a relational database management system. The lite in SQLite means lightweight in terms of setup, database administration, and required resources.
SQLite has the following noticeable features: self-contained, serverless, zero-configuration, transactional.
What is MongoDB?
MongoDB is an open-source NoSQL database management program used for large sets of distributed data.
Organizations can use Mongo DB for its ad-hoc queries, indexing, load balancing, aggregation, server-side execution and other features.
Hi, my name is Ahmed Ibrahim. I’m a software engineer and Data Science Professional, and I’ll be the instructor for this course.
If you have any questions during this course, please don’t hesitate to ask me questions, and I’ll answer you as soon as possible.
So, we have a lot to cover in this unique course.
Let’s get started