MySQL Chapter 2, 3 and 4

MySQL Chapter 2, 3 and 4

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

IN

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (68)

Section 1

(50 cards)

IN

Front

A phrase to test whether an expression is equal to a value in a list of expressions

Back

table alias

Front

An alternative table name assigned in the FROM clause

Back

OR

Front

Search must satisfy at least one of the conditions

Back

are not

Front

Masks are/are not case-sensitive

Back

aliases

Front

When you code a self-join, you must use ? for the tables and you must qualify each column name with the ?

Back

database service or engine

Front

Other names for database server

Back

BETWEEN

Front

Can use this phrase to test whether an expression falls within a range of values

Back

offset

Front

If you code both arguments in the LIMIT clause, the first parameter is the ?, which specifies the first row to return

Back

LIKE

Front

An older operator that lets you search for simple string patterns

Back

AND

Front

Both conditions must satisfy both of the conditions

Back

database objects

Front

Includes tables, views, stored procedures and functions

Back

order of precedence

Front

Unless parentheses are used, the operations in an expression takes place from left to right in ?

Back

AND, OR

Front

A join condition can include two or more conditions connected by ? or ? operators

Back

columns

Front

The ORDER BY clause can use numbers to specify the ? to use for sorting

Back

LIMIT

Front

If you include this clause, you limit the result to a specified number of rows

Back

expression

Front

A combination of column names and operators that evaluate to a single value

Back

ROUND

Front

A function that operates on numbers

Back

mask

Front

Another name for a string pattern

Back

nested sort

Front

When you sort by more than one column

Back

NOT

Front

Operator to test for a value that's not in a list of expressions

Back

SELECT *

Front

Used to retrieve all of the columns from a table

Back

self-join

Front

A join that joins a table with itself

Back

regular expressions

Front

Another name for complex string patterns

Back

ALL

Front

A keyword that causes all rows matching the search condition to be included in the result set

Back

DISTINCTROW

Front

A synonym for DISTINCT

Back

compound conditions

Front

Consist of two or more conditions

Back

AS

Front

Keyword used to specify an alias for a column

Back

%

Front

When using the DATE_FORMAT function to specify the format of a date, you use ? to identify a format code

Back

semicolon

Front

When you code a script that contains more than one statement, you must code a ? at the end of each statement

Back

null value

Front

Represents a value that's unknown, unavailable or not applicable

Back

WHERE

Front

The clause used to filter the rows in the base table so that only those rows that match the search condition are included in the result set

Back

ORDER BY

Front

If you include the ? clause, the rows in the result set are sorted in the specified sequence

Back

automatically

Front

MySQL ? converts the data for comparisons

Back

", '

Front

To include spaces or special characters in an alias, enclose the alias in ? or ?

Back

REGEXP

Front

A newer operator that allows you to create regular expressions to search for virtually any string pattern

Back

Boolean expressions

Front

The search condition of a WHERE clause consists of one or more ? ? that result in a true, false, or null value

Back

DATE_FORMAT

Front

Displays date/time data in different formats

Back

DISTINCT

Front

This keyword prevents duplicate rows from being included in the result set

Back

ad hoc relationships

Front

Relationships not defined in the database

Back

qualified column name

Front

The table name, followed by a period, followed by the column name

Back

immediately after

Front

To use the DISTINCT or ALL keyword, code it ? the SELECT keyword

Back

are not

Front

Character comparisons in MySQL databases are/are not case-sensitive

Back

schema

Front

The other name for a database

Back

FROM

Front

You specify the base table in the ? clause in a SELECT statement

Back

column alias

Front

A substitute name given to a column in the result set

Back

SQL script

Front

A file that stores one or more SQL statements is known as a __________________________________________.

Back

', "

Front

To code a literal value for a string, enclose one or more characters within ? or ?

Back

ASC, DESC

Front

In an ORDER BY clause, you can sort each column in either ? or ? sequence

Back

CONCAT

Front

Function used to concatenate two or more string columns or literal values

Back

snippets

Front

Contain the syntax for many common SQL statements. You can also create your own and save them for later use

Back

Section 2

(18 cards)

first

Front

Null values appear ? in the sort sequence, even if you're using DESC

Back

natural join

Front

A join where you don't need to specify the column used to join the two tables

Back

implicit syntax

Front

Coding a join condition in the WHERE clause instead of in the FROM clause

Back

UNION

Front

MySQL doesn't provide language keywords for full outer joins, but you can simulate a full outer join by using the ? keyword to combine the result sets from a left outer join and a right outer join

Back

USING

Front

You can use the ? keyword to simplify the syntax for joining tables

Back

left outer join

Front

The result set includes all the rows from the first, or left, table

Back

UNION, SELECT

Front

To code a union, you use the ? keyword to connect two or more ? statements

Back

union

Front

Combines data from two or more tables, combining rows from two or more result sets

Back

argument

Front

Another name for a parameter

Back

outer join

Front

Retrieves all rows that satisfy the join condition, plus unmatched rows in one or both tables.

Back

equijoin

Front

A join operator that links tables based on an equality condition that compares specified columns of the tables.

Back

cross join

Front

Joins each row from the first table with each row from the second

Back

right outer join

Front

The result set includes all the rows from the second, or right, table

Back

NATURAL

Front

Keyword used to create a natural join that joins two tables based on all columns in the two tables that have the same name

Back

null values, special characters, numbers, letters

Front

Default sequence for an ascending sort

Back

full outer join

Front

When the result set includes all the rows from both tables

Back

explicit syntax

Front

Uses "ON" or "USING" keywords to perform joins instead of using complicated "WHERE" clauses

Back

can

Front

You can/can not combine inner and outer joins within a single SELECt statement

Back