Unit 4c Flashcards
Provides ability to define, alter, and remove object definitions from database
Data Definition
Refers to modification of database data
Data Manipulation
Command based way to ask a database a question
Database Query
Each command or SQL statement begins with keyword such as INSERT or SELECT
SQL Query Syntax
Primary purpose to retrieve information from database
SELECT Command
Function works on all rows not filtered out by query
GROUP BY
Clause specifies conditions for groups similar to way WHERE clause specifies conditions for rows
HAVING
Clause allows sorting on names of columns
ORDER BY
Counts rows in a column
COUNT ( )
Returns largest value in column
MAX ( )
Returns the smallest value within column
MIN ( )
Accumulates all the values within column
SUM ( )
Returns average of set of values
AVG ( )
Provides capability of forming sub-groups of query
SELECT using GROUP BY
Provides ability to pull data from two or more tables
SELECT using Table Joins