SQLite: Differences and Features | DP-203 Exam Prep

Differences Between SQLite and Commercial Relational Databases

Question

SQLite differs from commercial relational database systems in terms of features as it does not support a number of features supported by commercial relational database systems.

Which of the following statement(s) is/are true about SQLite?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

Correct Answer: D

SQLite puts some restrictions while creating the SQL statements.

SQLite utilizes dynamic typing for values.

It supports only LEFT OUTERJOIN, not RIGHT or FULL OUTERJOIN.

SQLite allows creating views but here views are read only.

Option A is incorrect.

SQLite utilizes dynamic typing for values rather than allotting a type to the columns.

Option B is incorrect.

SQLite supports only LEFT OUTERJOIN.

Option C is incorrect.

SQLite supports LEFT OUTERJOIN.

Option D is correct.

SQLite supports only LEFT OUTERJOIN, not RIGHT OUTERJOIN or FULL OUTERJOIN.

Option E is incorrect.

SQLite allows creating views but here views are read-only.

It does not allow executing INSERT, DELETE, or UPDATE statements on a view.

Reference:

To know more about SQL Transformation, please visit the below-given link:

Answer:

A. SQLite also assigns a type to the columns like most relational database systems.

Explanation: This statement is true. SQLite is a type of relational database management system that assigns a data type to each column in a table. The data types supported by SQLite are INTEGER, REAL, TEXT, BLOB, and NULL.

B. SQLite supports all - LEFT OUTERJOIN, RIGHT OUTERJOIN and FULL OUTERJOIN.

Explanation: This statement is false. SQLite supports only LEFT OUTERJOIN and not RIGHT OUTERJOIN or FULL OUTERJOIN. LEFT OUTERJOIN returns all the rows from the left table and matching rows from the right table, while RIGHT OUTERJOIN returns all the rows from the right table and matching rows from the left table. FULL OUTERJOIN returns all the rows from both tables, along with the non-matching rows as NULL values.

C. SQLite supports no type of OUTERJOIN.

Explanation: This statement is false. As mentioned above, SQLite supports only LEFT OUTERJOIN and not RIGHT OUTERJOIN or FULL OUTERJOIN.

D. SQLite supports only LEFT OUTERJOIN, not RIGHT OUTERJOIN or FULL OUTERJOIN.

Explanation: This statement is true. SQLite only supports LEFT OUTERJOIN, which returns all the rows from the left table and matching rows from the right table.

E. You can't create views in SQLite.

Explanation: This statement is false. Views can be created in SQLite. A view is a virtual table that is based on the result of a SQL query. Views can be used to simplify complex queries or to restrict access to sensitive data.

In summary, statement A and D are true, statement B and C are false, and statement E is false.