SQL Lite Interview Questions
SQL Lite Interview Questions
com/
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1) Explain what is SQLite?
The standard SQLite commands interact with relational databases are similar to SQL. They are
• SELECT
• CREATE
• INSERT
• UPDATE
• DROP
• DELETE
The transaction is referred as a unit of work that is performed against a database. It is the
propagation of one or more changes to the database. Properties of transactions are determined
by ACID.
SQL SQLite
7) Mention what are the SQLite storage classes? SQLite storage classes include
Boolean values in SQLite are stored as integers 0 (false) and 1 (true). SQLite does not have a
separate Boolean storage class.
The SQLITE group by clause is used in collaboration with the SELECT statement to arrange
identical data into groups.
To create a database in SQLite- command “sqlite3” is used. The basic syntax to create a database
is $sqlite3 DatabaseName.db.
The .dump command is used to make an SQLite database dump, remember once you use the
dump command all your data will be dumped forever and cannot be retrieved.
12) Explain how can you delete or add columns from an existing table in SQLite?
There is a very limited support for alter ( add or delete ) table. In case if you want to delete or
add columns from an existing table in SQLite you have to first save the existing data to a
temporary table, drop the old table or column, create the new table and then copy the data back
in from the temporary table.
SQLite does not have any specific length for VARCHAR. For instance, you can declare a VARCHAR
(10) and SQLite will store a 500 million character string there. It will keep all 500 characters
intact.
14) Mention when to use SQLite and when not to use SQLite?
• Embedded applications: Does not require expansion like mobile applications or games
• Disk assess replacement: Application that require to write or read files to disk directly
• Testing: When testing business application logic
• Multi-user applications: Where multiple client needs to access and use same database
• Applications requiring high write volumes: It enables you to use only one single write
operation to take place at any given time
https://www.guru99.com/
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
15) Explain how to recover deleted data from my SQLite database?
To recover the information you can use your backup copy of your database file, but if you do not
have a backup copy, then recovery is impossible. SQLite uses SQLITE SECURE DELETE option
which overwrites all deleted content with zeroes.
The SQLITE_SCHEMA error is returned when a prepared SQL statement is not valid and cannot be
executed. Such type occurs only when using the sqlite3 prepare() and sqlite3 step() interfaces to
run SQL.
17) Mention what is the Export Control Classification Number (EECN) for SQLite?
The core public domain SQLite source code is not described by any ECCN. Hence, the ECCN should
be reported as EAR99. But if you are adding new code or linking SQLite with the application, then
it might change the EECN number.
In SQLite, a view is actually a composition of a table in the form of pre-defined SQLite Query. A
view can consist of all rows of a table or selected rows from one or more tables.
SQLite indexes are special lookup tables that the database search engine use to speed up data
retrieval. In simple words, it is a pointer to data in a table.
Project
Test Management Business Analyst Ethical Hacking PMP
Management
Software
Jenkins Agile Testing RPA JUnit
Engineering