Finals Reviewer pt1 Flashcards
Includes commands to create database objects such as tables, indexes, and views, as well as commands to define access rights to those database
Data Definition Language
is a group of database objects such as tables and indexes that are related to each other
Schema
is a collection of related data held in a table format within a database
Table
Constraint wherein a column or columns are used to establish and enforce a link between the data in two tables
Foreign key
Constraint that ensures that no duplicate values are entered in specific columns that do not participate in a primary key
Unique
SQL command used to remove an object such as an index, column or even a table from a database permanently
DROP
command is used to list the contents of a table
SELECT
A special operator that we use if we want to check whether an attribute value is within a range
BETWEEN
is a function that returns the current system date for MySQL
NOW()
A special operator that we use to check whether a subquery returns any rows
EXISTS
A special operator that we use to check whether an attribute value matches any value within a value list
IN
A special operator that we use to check whether an attribute value matches a given string
LIKE
A like special operator used in MySQL that means any single character NOT within a range or a set
[^]
All changes in the table structure are made by using table command
ALTER TABLE
MySQL uses the column command to change a column attribute
ALTER
this type of subquery can be used anywhere a table is expected, such as when using the “FROM” clause
Computed Columns
An SQL Server function that produces a date by adding a specified number to a specified part of date
DATEADD
A MySQL function that returns the time between two dates
DATEDIFF
An SQL Server function that returns the specified part of the date requested
DATEPART
A MySQL function that is used to return a single part of a date/time, such as year, month, day, hour, minutes, etc.
EXTRACT()