Connecting to databases with SQL
Relational databases such as SQL Server, Postgres, and Maria DB have been the lifeblood of businesses for over 50 years at the time of writing. This is due to their ability to store normalized data about various entities in an easily queryable manner, while ensuring that data follows a specific schema.
Recently, non-relational databases such as MongoDB, Apache HBase, Cassandra, Cosmos DB, and Couchbase have become popular with enterprises. Despite this, the fact remains that, in most organizations, if you need data, you probably need it from a relational database.
Polyglot Notebooks understands this and provides support to query relational databases, through a series of connectors for specific databases and a common connection architecture.
In this section, I’ll explore this by connecting to an Azure SQL database that I’ve set up for this chapter. Azure SQL is a variant of SQL Server, hosted on Microsoft Azure, but the concepts...