0
0
MySQLquery~20 mins

MySQL vs PostgreSQL vs SQLite - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Database Master: MySQL vs PostgreSQL vs SQLite
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Differences in Transaction Support
Which database among MySQL, PostgreSQL, and SQLite fully supports ACID-compliant transactions with rollback and commit features?
AOnly MySQL supports full ACID-compliant transactions.
BPostgreSQL and SQLite support full ACID-compliant transactions, but MySQL does not.
CPostgreSQL fully supports ACID-compliant transactions; MySQL supports them depending on the storage engine; SQLite supports them but with some limitations.
DNone of these databases support ACID-compliant transactions.
Attempts:
2 left
💡 Hint
Think about how each database handles transactions and storage engines.
query_result
intermediate
1:30remaining
Query Result Differences in LIMIT Syntax
Given the following SQL query, which database will produce a syntax error when executed as is?

SELECT * FROM users LIMIT 5 OFFSET 10;
APostgreSQL will produce a syntax error.
BMySQL will produce a syntax error.
CSQLite will produce a syntax error.
DNone of the databases will produce a syntax error.
Attempts:
2 left
💡 Hint
Check how LIMIT and OFFSET are supported in each database.
📝 Syntax
advanced
2:00remaining
JSON Data Type Support
Which of the following CREATE TABLE statements will cause a syntax error in MySQL but not in PostgreSQL or SQLite?
MySQL
CREATE TABLE data_store (id INT PRIMARY KEY, info JSON);
AMySQL versions before 5.7 do not support JSON data type natively, causing a syntax error.
BPostgreSQL supports JSON data type natively, so no syntax error occurs.
CSQLite supports JSON data type natively, so no syntax error occurs.
DMySQL supports JSON data type natively, so no syntax error occurs.
Attempts:
2 left
💡 Hint
Consider the version and native JSON support of each database.
optimization
advanced
2:30remaining
Indexing Performance Differences
Which statement best describes the indexing capabilities and performance differences among MySQL, PostgreSQL, and SQLite?
AMySQL and PostgreSQL both support advanced indexing like B-tree and GiST, while SQLite only supports basic indexing.
BPostgreSQL supports advanced indexing methods like GiST and GIN, MySQL supports only B-tree indexes, and SQLite supports only basic indexes.
CSQLite supports more advanced indexing than MySQL and PostgreSQL.
DAll three databases support the same indexing methods with no performance differences.
Attempts:
2 left
💡 Hint
Think about the types of indexes each database supports and their use cases.
🔧 Debug
expert
3:00remaining
Diagnosing Concurrency Issues
A developer reports that concurrent writes sometimes cause database locks and slow performance. Which database is most likely to handle high concurrency with minimal locking issues out of MySQL, PostgreSQL, and SQLite?
APostgreSQL, because it uses Multi-Version Concurrency Control (MVCC) to minimize locking.
BMySQL with MyISAM engine, because it supports row-level locking.
CSQLite, because it uses file-level locking which is efficient for concurrency.
DMySQL with MyISAM engine, because it supports MVCC like PostgreSQL.
Attempts:
2 left
💡 Hint
Consider how each database manages concurrent transactions and locking.