Database Flashcards
What is a database?
A database is an organized collection of structured information, or data, typically stored electronically in a computer system. A database is usually controlled by a database management system (DBMS). Together, the data and the DBMS, along with the applications that are associated with them, are referred to as a database system, often shortened to just database.
What are different types of databases?
There are many different types of databases. The best database for a specific organization depends on how the organization intends to use the data. Examples of different database types include Relational databases, Distributed databases, Data warehouses, NoSQP databases, and OLTP databases.
What is a Relational database?
Relational databases are a type of database in which items are organized as a set of tables with columns and rows. Relational database technology provides the most efficient and flexible way to access structured information.
What is a Distributed database?
A distributed database consists of two or more files located in different sites. The database may be stored on multiple computers, located in the same physical location, or scattered over different networks.
What is a Data warehouse?
A data warehouse is a central repository for data. It is a type of database specifically designed for fast query and analysis.
What is a NoSQL database?
A NoSQL, or non relational database, allows unstructured and semistructured data to be stored and manipulated (in contrast to a relational database, which defines how all data inserted into the database must be composed).
What is a OLTP database?
An OLTP databse is a speedy, analytic database designed for large numbers of transactions performed by multiple users.
What is a Database Management System?
A Database Management System is the software that interacts with the users, application programs, and the database. It helps makes data management more efficient and effective, provides end users better access to more and better-managed data, promotes an integrated view of the organization’s operations, and reduces the probability of inconsistent data.
What is SQL?
SQL stands for Structured Query Language. It is the language we used to communicate with the Database System.
What are the categories that SQL functions fit into?
SQL functions fit into two broad categories. Data definition language, (DDL), which includes commands to create Database objects such as tables, indexes, and views. The other category, Data manipulation language (DML), includes commends to insert, update, delete, and retrieve data within the database tables.
What does the CREATE SCHEMA AUTHORIZATION do?
It creates a database schema.
What does the CREATE TABLE command do?
It creates a new table in the user’s database schema.
What does the NOT NULL command do?
Constraint that ensures that a column will not have null values.
UNIQUE
Constraint that ensures that a column will not have duplicate values.
What does the PRIMARY KEY command do?
Defines a primary key for a table.
What does the FOREIGN KEY command do?
It defines a foreign key for a table.
What does the DEFAULT command do?
It defines a default value for a column (when no value is given).