




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































transaction a group of queries that must be either completed or rejected as a whole. Execution of some, but not all, queries results in inconsistent or incorrect data. query processor
used by the storage manager to quickly locate data. transaction manager ensures transactions are properly executed. log a file containing a complete record of all inserts, updates, and deletes processed by the database. relational database stores data in tables, columns, and rows, similar to a spreadsheet. SQL includes statements that read and write data, create and delete tables, and administer the database system. big data
digital Today, data is mostly ______________, encoded as zeros and ones on electronic and magnetic media. database a collection of data in a structured format. In principle, can be stored on paper or even clay tablets. In practice, however, modern ones are invariably stored on computers. database system / database management system / DBMS software that reads and writes data in a database. ensure data is secure, internally consistent, and available at all times. These functions are challenging for large databases with many users, so data base systems are complex. database application software that helps business users interact with database systems. database administrator
creates a new table by specifying the table and column names. data type Each column is assigned a ______________ that indicates the format of column values and can be numeric, textual, or complex. database design a specification of database objects such as tables, columns, data types, and indexes. Also refers to the process used to develop the specification. analysis specifies database requirements without regard to a specific database system. ER diagrams depicts entities, relationships, and attributes.
logical design implements database requirements in a specific database system. specifies tables, columns, and keys. key a column used to identify individual rows of a table. table diagram depicts the logical design. schema The logical design, as specified in SQL and depicted in a table diagram. data independence The principle that physical design never affects query results. application programming interface / API
a text interface included in the MySQL Server download. allows developers to connect to the database server, perform administrative functions, and execute SQL statements. error code returned by MySQL Server with a description when an SQL statement is syntactically incorrect or the database cannot execute the statement. MySQL Workbench is installed with MySQL Server and allows developers to execute SQL commands using an editor. database model a conceptual framework for database systems, with three parts:
a database model based on a tabular data structure. The model was published in 1970 by E. F. Codd of IBM and released in commercial products around 1980. The data structure, operations, and rules are standardized in SQL, the universal query language of relational databases. set an unordered collection of elements enclosed in braces. tuple an ordered collection of elements enclosed in parentheses. Relational rules part of the relational model and govern data in every relational database. Business rules based on business policy and specific to a particular database.
retrieves data from the database. Data Manipulation Language manipulates data stored in a database. Data Control Language controls database user access. Data Transaction Language manages database transactions. database system instance a single executing copy of a database system. Personal computers usually run just one. Shared computers, such as computers used for cloud services, usually run multiple. CREATE DATABASE DatabaseName
creates a new database. DROP DATABASE DatabaseName deletes a database, including all tables in the database. USE DatabaseName selects a default database for use in subsequent SQL statements. SHOW DATABASES lists all databases in the database system instance. SHOW TABLES lists all tables in the default database. SHOW COLUMNS FROM TableName lists all columns in the TableName table of the default database.
empty table A table without row. DROP TABLE deletes a table, along with all the table's rows, from a database. ALTER TABLE adds, deletes, or modifies columns on an existing table. Integer data types that represent positive and negative integers. Decimal data types that represent numbers with fractional values. Character
data types that represent textual characters. Date and time data types that represent date, time, or both. Some include a time zone or specify a time interval. Binary data types that store data exactly as the data appears in memory or computer files, bit for bit. has two operands. Spatial data types that store geometric information, such as lines, polygons, and map coordinates. Document data types that contain textual data in a structured format such as XML or JSON.
compute logical values from logical operands. unary has one operand. expression a string of operators, operands, and parentheses that evaluates to a single value. Operands may be column names or fixed values. The value of an ______________ may be any data type. operator precedence Operators in an expression are evaluated in the order of operator precedence, shown in the table below. Operators of the same precedence are evaluated from left to right. Regardless of operator precedence, expressions enclosed in parentheses are evaluated before any operators outside the parentheses are applied. SELECT / FROM
selects rows from a table. The statement has a SELECT clause and a FROM clause. The FROM clause specifies the table from which rows are selected. The Select clause specifies one or more expressions, separated by commas, that determine what values are returned for each row. result table The SELECT statement returns a set of rows, called the ______________. LIMIT limits the number of rows returned by a SELECT statement. condition an expression that evaluates to a logical value. WHERE specifies a condition for selecting rows. A row is selected when the condition is TRUE for the row values. A row is omitted when the condition is either FALSE or NULL.