Section 1

Preview this deck

Aggregate Functions

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

7 years ago

Date created

Mar 1, 2020

Cards (73)

Section 1

(50 cards)

Aggregate Functions

Front

Built-in functions used to summarize data such as finding the average or sum of a column of values

Back

As

Front

Keyword used to rename a column in a result set

Back

DCL (Data Control Language)

Front

A part of SQL that is used to manage permissions to objects in a database.

Back

Foreign Key

Front

A field in a table that references the primary key in another table.

Back

From

Front

Keyword used to designate which table to query

Back

Keywords

Front

Words that have reserved

Back

Or

Front

Keyword used to combine filtering criteria in which at least one of the criteria must evaluate to true in order for the record to be included in the result set

Back

Select

Front

Keyword used to designate which columns to be returned in a query

Back

GUID

Front

Globally Unique Identifier, a 32 char hexadecimal string with over 1.2 septillion unique values

Back

DBMS (Database Management System)

Front

Software used to store and organize data in a logical and easily retrievable manner.

Back

Is Not Null

Front

Keywords used to select rows where the specified column does not contain a null value

Back

Like

Front

Keyword used to perform a "fuzzy" search and gives us the ability to use wildcards in our search criteria

Back

<> OR

Front

!= Not equal to... <> is ANSI SQL while != is SQL Server specific

Back

Distinct

Front

Keyword used to return only unique values in a result set

Back

SQL (Structured Query Language)

Front

A general language used to interact with relational databases.

Back

Null

Front

An unknown value (null is not 0 nor is null an empty string- null does NOT equal null)

Back

Group By

Front

Keyword used to indicate a column or set of columns in which to bundle values together (and must be used when combining aggregate and non-aggregate values in a select clause)

Back

Statement

Front

A set of SQL clauses that make up a single command set.

Back

Order By

Front

Keyword used to designate the sort order of a result set

Back

Row

Front

a record of related data in a database.

Back

Count()

Front

Built-in aggregate function used to return the total number of values in a column (will ignore null values)

Back

Combination Key

Front

A key made up of two or more non-unique fields that when combined are unique identifier for that row.

Back

Sum()

Front

Built in aggregate function used to calculate the total value of a column in a result set

Back

Primary Key

Front

A unique identifier for a row

Back

Normalization

Front

The process of following a standard set of rules to separate data into logical related groups.

Back

Min()

Front

Built-in aggregate functions used to find the smallest column value in a result set

Back

Count(*)

Front

Built in aggregate function used to return the total number of records in a table (will NOT ignore null values in columns)

Back

Having

Front

Keyword used to filter the results returned based on a group

Back

Between

Front

Keyword used to find values that fall inside a designated range

Back

Where

Front

Keyword used to filter the results returned in an SQL statement

Back

Avg()

Front

Built-in aggregate function used to calculate the average column value in a result set

Back

Coalesce

Front

Built in function used to convert a null value to some other specified value in the result set.

Back

And

Front

Keyword used to combine filtering criteria in which both of the criteria must evaluate to true in order for the record to be included in the result set

Back

*

Front

Identifier used to indicate that all columns should be returned in the result set

Back

NullIf

Front

Built in function used to convert a specified value to a null in the result set.

Back

One-to-Many

Front

The most common relationship type where one record in a table relates to many records in another table.

Back

= <

Front

> <= => Just like in math... equal, less than, greater then, less than or equal to, greater than or equal to

Back

DML (Data Manipulation Language)

Front

A part of SQL that is used query, insert, update and remove data from a database.

Back

Identifiers

Front

Words used to reference database objects such as tables, columns, etc

Back

Clause

Front

A portion of an SQL that begins with a keyword.

Back

TCL (Transaction Control Language)

Front

A part of SQL that is used to manage different transactions occurring within a database.

Back

Column

Front

A set of data having all the same datatypes in a table spanning all rows (records).

Back

Is Null

Front

Keywords used to select rows where the specified column contains a null value

Back

Table

Front

A container in a database made up of columns and rows to hold data.

Back

SQL Server Management Studio

Front

The IDE used to interact with Microsoft's commercial database management system SQL Server.

Back

One-to-One

Front

One record in a table relates to only one record in another table.

Back

In

Front

Keyword used to indicate a specified set of values to be compared against

Back

Max()

Front

Built-in aggregate function used to find the largest column value in a result set

Back

Derived Column

Front

A column that is created as a result of an arithmetic calculation or the use of a function.

Back

DDL (Data Definition Language)

Front

A part of SQL that is used to create and modify objects of a database such as tables, views, functions and stored procedures.

Back

Section 2

(23 cards)

Table Alias

Front

A "nickname" for a table that can be used instead of spelling out the entire table name.

Back

XML

Front

A technology to store information using a tag based syntax (similar to HTML) in a flat (text) file.

Back

Except

Front

Keyword used to return values from the first table that are not present in the second table.

Back

Subquery

Front

A query that is nested inside another query (that could run independently of the outer query).

Back

Intersect

Front

Keyword used to return all records that are common to two or more result sets.

Back

Left Outer Join

Front

Retrieves all rows from the left table and any related rows from the right table.

Back

Subset Table

Front

Filtered and/or combined table(s).

Back

JSON

Front

A technology that uses JavaScript object syntax to store data in name : value pairs in a flat (text) file.

Back

Self Join

Front

The process of linking a table to itself using table aliases. Useful in finding duplicate values in a single table.

Back

Many-to-Many

Front

When many records in one table can relate to multiple records in another table which requires a linking table.

Back

Full Outer Join

Front

Retrieves all rows from 2 tables and associates any related records.

Back

Top

Front

Keyword used to return the first set number or percentage of rows in a result set.

Back

Stored Procedure

Front

A saved query that can be executed to return a scalar variable or a result set and is able to take parameters.

Back

Linking Table

Front

Contains two ID values and optionally additional information.

Back

Right Outer Join

Front

Retrieves all rows from the right table and any related rows from the left table.

Back

Union

Front

Keyword used to join two or more result sets that have the same number and data type of all columns.

Back

View

Front

A saved query that can be called and used like a data table which returns a data set but cannot take parameters.

Back

Schema

Front

An overall view that represents the tables and relationships of an entire database.

Back

Cross Join

Front

Returns all possible combinations of all rows (also known as a Cartesian Product).

Back

Lookup Table

Front

An ID & single value.

Back

Inner Join

Front

Retrieves only related rows from 2 tables.

Back

Correlated Subquery

Front

A query that is nested inside another query and is dependent on information from the outer query in order to execute.

Back

Data Table

Front

Structured container to hold information.

Back