Recall & Review
beginner
What is the main difference in licensing between PostgreSQL and MySQL?
PostgreSQL uses the open-source PostgreSQL License, which is very permissive. MySQL uses the GPL license, which requires derived works to also be open source unless a commercial license is purchased.
Click to reveal answer
beginner
Which database is known for better support of advanced SQL features like window functions and common table expressions?
PostgreSQL is known for better support of advanced SQL features such as window functions, common table expressions (CTEs), and full compliance with SQL standards.
Click to reveal answer
intermediate
How do PostgreSQL and MySQL differ in terms of data types support?
PostgreSQL supports a wider range of data types including arrays, JSONB, and custom types. MySQL has more limited data types and less flexible JSON support.
Click to reveal answer
intermediate
Which database is generally preferred for complex analytical queries and why?
PostgreSQL is generally preferred for complex analytical queries because of its powerful query planner, support for advanced SQL features, and extensibility.
Click to reveal answer
advanced
What is a key difference in replication and clustering support between PostgreSQL and MySQL?
MySQL offers built-in replication and clustering options like Group Replication and InnoDB Cluster. PostgreSQL supports replication and built-in streaming replication, but often relies on third-party tools for clustering and high availability.
Click to reveal answer
Which database uses the PostgreSQL License?
✗ Incorrect
PostgreSQL uses the PostgreSQL License, which is a permissive open-source license.
Which database has better native support for JSONB data type?
✗ Incorrect
PostgreSQL supports JSONB, a binary JSON format that allows efficient querying and indexing.
Which database is known for better compliance with SQL standards?
✗ Incorrect
PostgreSQL is known for strong compliance with SQL standards and advanced SQL features.
Which database offers built-in clustering with Group Replication?
✗ Incorrect
MySQL offers Group Replication and InnoDB Cluster for built-in clustering.
Which database is generally preferred for complex analytical queries?
✗ Incorrect
PostgreSQL is preferred for complex analytical queries due to its advanced features and query planner.
Explain the key differences between PostgreSQL and MySQL in terms of licensing, features, and data type support.
Think about how open-source licenses affect usage and how features impact database capabilities.
You got /4 concepts.
Describe how replication and clustering differ between PostgreSQL and MySQL.
Consider what each database offers out of the box versus what requires extra tools.
You got /3 concepts.