Summary

  1. A Database Management System (DBMS) is specialized software crafted to handle extensive datasets efficiently and systematically.
  2. SQL, which stands for Structured Query Language, serves as a standardized language primarily employed for interacting with Database Management Systems (DBMS).
  3. SQLite is a C library that offers a compact, disk-based database solution, eliminating the need for a separate server process.
  4. A database consists of one or more tables, each of which holds a collection of related data. These tables organize data into rows and columns.
  5. A primary key is a column or set of columns that uniquely identifies each row in a table. The primary key constraint ensures that the values in this column (or columns) are unique and not null.
  6. SQLite database follows a standard procedure as follows:
    • Establish a connection with the database.
    • Retrieve a cursor for the database.
    • Execute operations on the database.
    • Apply changes to the database.
    • Terminate the connection to the database.
  7. To create a table in an SQLite database, utilize the SQL command CREATE TABLE.
  8. To delete a table in an SQLite database, utilize the SQL command DROP TABLE.
  9. The SELECT statement is employed to fetch specific rows from a table.
  10. The WHERE clause, when utilized with the SELECT statement, enables the specification of search criteria.
  11. within the WHERE clause, relational operators such as >, <, >=, <=, ==, =, !=, and <> are employed, alongside logical operators like AND, OR, and NOT.
  12. The LIKE operator facilitates searching for substrings. The % symbol functions as a wildcard for multiple characters.
  13. This SELECT statement with ORDER BY clause will fetch all rows from the table. The sorting will be in ascending order based on the column.
  14. The AVG function computes the average value within a specified column.
  15. The SUM function calculates the total sum of values within a column.
  16. The MIN and MAX functions ascertain the minimum and maximum values present in a column.
  17. The COUNT function is utilized to determine the total number of rows in a table.
  18. The UPDATE statement modifies the contents of an existing row within a table.
  19. The DELETE statement removes one or more rows from a table.
  20. Combining two or more columns to form a composite key is possible.
  21. In relational databases, columns in one table often relate to columns in other tables through associations. Relational database design aims to minimize redundant data.
  22. A foreign key (FK) is a column within one table that refers to the primary key in another table.