Lesson 3 Part 3 Flashcards
(37 cards)
What is Data?
Data is information with a purpose, used in enterprise applications to provide insights and persistent information, including for marketing, usage statistics, and error reporting.
What is a database?
A database is a system of software and capabilities that allows for validating, storing, searching, filtering, aggregating, grouping, and administering data.
What are the two main categories of databases in enterprise applications?
SQL databases and NoSQL databases.
What is an SQL database?
An SQL database is a type of Relational Database Management System (RDBMS) that uses Structured Query Language (SQL) to manage data stored in tables.
What is the general syntax for creating a database in MySQL?
CREATE DATABASE database_name;
Example: CREATE DATABASE employee;
What is a NoSQL database?
A NoSQL database is not necessarily based on the relational model and uses various methods or domain-specific languages (DSL) for data management, employing different structures for storing data.
What does SQL stand for?
Structured Query Language.
What is the syntax to use a newly created schema in MySQL?
USE database_name;
Example: USE employee
What are the five sublanguages of SQL?
DDL (Data Definition Language)
DML (Data Manipulation Language)
DCL (Data Control Language)
TCL (Transaction Control Language)
DQL (Data Query Language)
What does DML stand for and what is its purpose?
Data Manipulation Language; it is used for inserting, updating, and deleting records.
What does DDL stand for and what is its purpose?
Data Definition Language; it defines the structure of the database.
What does DCL stand for and what is its purpose?
Data Control Language; it grants or revokes access permissions to database objects.
What does TCL stand for and what is its purpose?
Transaction Control Language; it defines boundaries for concurrent operations.
What does DQL stand for and what is its purpose?
Data Query Language; it is used to search, filter, group, and aggregate stored data.
Name some popular SQL implementations.
Oracle, MySQL, PostgreSQL, Microsoft SQL Server, MariaDB, SQLite.
Why is database consistency important?
It ensures accuracy, improves data retrieval, and optimizes database space by maintaining consistent data formats and preventing errors.
What is database inconsistency?
Database inconsistency occurs when updates to data are not properly reflected across all tables that use the data, resulting in conflicting or outdated information.
What is database consistency?
Database consistency ensures that all data points align with predefined rules and constraints, maintaining accuracy and adherence to the database’s rules.
What is an RDBMS?
A Relational Database Management System (RDBMS) is a type of database management system (DBMS) based on the relational model, which stores data in tables and enables various operations like creation, updating, and querying of relational databases.
Provide an example of database consistency.
A driver’s license number must follow a specific format, such as “P123456A.” Any entry not matching this format is considered inconsistent.
Provide an example of database inconsistency.
If a driver’s address is updated, but the old address remains in some tables while others have the new address, this is an example of database inconsistency.
Name three benefits of using an RDBMS.
- Enforced data integrity
- Support for large-scale concurrent data access
- Fault tolerance
Describe the role of the ‘Connection Handler’ in MySQL architecture.
It receives incoming client connections and creates new thread execution contexts to isolate client connections from each other.
What is the purpose of a ‘Constraint’ in an RDBMS?
A constraint is a restriction on the type or value that can be assigned to a column to ensure data integrity.