Explore relational database schemas with SQLAlchemy

Posted on Wed 16 August 2023 in Databases

One ways to learn about the structure of an existing database is to use the SQLAlchemy inspection module. It provides a simple interface to read database schema information via a Python API.


Continue reading

Create a PostgreSQL database in a Docker container

Posted on Tue 01 August 2023 in Databases

For the purpose of local testing, create a Docker container that runs the Chinook sample database on a PostgreSQL database server.


Continue reading

Create a SQL Server database in a Docker container

Posted on Tue 18 July 2023 in Databases

Create a Microsoft SQL Server on your local PC using Docker and load the AdventureWorks sample database so you can use it for experiments and other learning activities.


Continue reading

SQLAlchemy queries: The minimum you need to know

Posted on Sun 02 July 2023 in Databases

The minimum you need to know about using SQLAlchemy to build powerful SQL queries that you can use with the Pandas read_sql_query() function.


Continue reading

Python, pandas, and databases

Posted on Thu 15 June 2023 in Databases

Use the Pandas data analysis framework to read data from an SQL database. In this post, I show you how to use two methods: you can read entire database tables and process them exclusively in Pandas, or you can use SQL queries to pre-process only selected database data to reduce the memory used by Pandas when analyzing the data.


Continue reading

Use Python to read data from a database

Posted on Fri 02 June 2023 in Databases

Leverage Python and the pyodbc library to efficiently read data from an SQL database


Continue reading

Explore SQL database schemas with Python

Posted on Thu 18 May 2023 in Databases

Write Python programs that model a SQL database schema and read data from it, using the pyodbc driver


Continue reading

Create a sample database on Azure cloud

Posted on Wed 03 May 2023 in Databases

For the purpose of practicing data analytics programming, create your own personal database server on Microsoft's Azure cloud, populate it with sample data, and run the server on Azure's free service tier


Continue reading