Home
Explore
Exams
Login
Get started
Home
CMSC 127 LEC 6
CMSC 127 LEC 6
0.0
(0)
Rate it
Studied by 9 people
Call Kai
Learn
Practice Test
Spaced Repetition
Match
Flashcards
Knowt Play
Card Sorting
1/82
There's no tags or description
Looks like no tags are added yet.
83 Terms
View all (83)
Star these 83
1
New cards
2
New cards
3
New cards
4
New cards
5
New cards
SQL
Structured Query Language
6
New cards
SEQUEL
Structured English Query Language
7
New cards
MySQL
An open-source relational database management system
8
New cards
Relation
A table in a relational database
9
New cards
Attribute
A column in a table that represents a property of an entity
10
New cards
Tuple
A row in a table representing a single record
11
New cards
Schema
The logical structure or organization of a database
12
New cards
Data Definition Language
used to define and modify database structures
13
New cards
Data Manipulation Language
used to retrieve and manipulate data
14
New cards
Transaction Control Language
used to manage database transactions
15
New cards
Data Control Language
used to manage database access permissions
16
New cards
Embedded SQL
SQL statements written within a general-purpose programming language
17
New cards
Dynamic SQL
SQL statements constructed and processed during runtime
18
New cards
CREATE SCHEMA AUTHORIZATION
Creates a database schema
19
New cards
CREATE TABLE
Creates a new table in the database schema
20
New cards
NOT NULL
Ensures that a column cannot contain NULL values
21
New cards
UNIQUE
Ensures that a column does not contain duplicate values
22
New cards
PRIMARY KEY
Defines a column or group of columns that uniquely identifies each row
23
New cards
FOREIGN KEY
Defines a column that references a key in another table
24
New cards
DEFAULT
Defines a default value for a column when no value is provided
25
New cards
CHECK
Validates data in an attribute using a condition
26
New cards
CREATE INDEX
Creates an index for a table
27
New cards
CREATE VIEW
Creates a dynamic subset of rows and columns from one or more tables
28
New cards
ALTER TABLE
Modifies a table definition by adding modifying or deleting attributes or constraints
29
New cards
CREATE TABLE AS
Creates a new table based on the result of a query
30
New cards
DROP TABLE
Permanently deletes a table and its data
31
New cards
DROP INDEX
Permanently deletes an index
32
New cards
DROP VIEW
Permanently deletes a view
33
New cards
SELECT
Retrieves attributes from rows in one or more tables or views
34
New cards
FROM
Specifies the tables from which data should be retrieved
35
New cards
WHERE
Restricts selected rows based on a condition
36
New cards
GROUP BY
Groups selected rows based on one or more attributes
37
New cards
HAVING
Restricts grouped rows based on a condition
38
New cards
ORDER BY
Arranges selected rows based on one or more attributes
39
New cards
INSERT
Adds one or more rows to a table
40
New cards
UPDATE
Modifies attribute values in one or more table rows
41
New cards
DELETE
Deletes one or more rows from a table
42
New cards
Comparison Operators
Operators used to compare values in conditional expressions
43
New cards
AND
Requires all specified conditions to be true
44
New cards
OR
Requires at least one specified condition to be true
45
New cards
NOT
Reverses the result of a condition
46
New cards
BETWEEN
Checks whether an attribute value falls within a specified range
47
New cards
IN
Checks whether an attribute value matches any value in a specified list
48
New cards
LIKE
Checks whether an attribute value matches a specified string pattern
49
New cards
IS NULL
Checks whether an attribute contains a NULL value
50
New cards
EXISTS
Checks whether a subquery returns one or more rows
51
New cards
DISTINCT
Removes duplicate values from query results
52
New cards
Aggregate Functions
Functions that perform calculations on a group of values and return a summary
53
New cards
COUNT
Counts the number of non-NULL values in a column or all rows when using COUNT(*)
54
New cards
MIN
Returns the minimum value in a column
55
New cards
MAX
Returns the maximum value in a column
56
New cards
SUM
Returns the total of values in a column
57
New cards
AVG
Returns the average of values in a column
58
New cards
COMMIT
Permanently saves changes made during a transaction
59
New cards
ROLLBACK
Restores data to its original state before uncommitted changes
60
New cards
GRANT
Gives a user permission to perform an action or access a database object
61
New cards
REVOKE
Removes a previously granted permission from a user
62
New cards
INT
Data type used to store integer values
63
New cards
INTEGER
Another name for the INT data type
64
New cards
SMALLINT
Data type used to store smaller integer values
65
New cards
DOUBLE
Data type used to store approximate floating-point numbers
66
New cards
NUMERIC
Data type used to store exact numeric values
67
New cards
DECIMAL
Data type used to store exact numeric values with a specified precision and scale
68
New cards
CHAR
Fixed-length character data type
69
New cards
VARCHAR
Variable-length character data type
70
New cards
DATE
Data type used to store date values
71
New cards
SHOW DATABASES
Displays the databases available in MySQL
72
New cards
CREATE DATABASE
Creates a new database
73
New cards
USE
Selects a database to work with
74
New cards
SHOW TABLES
Displays the tables in the currently selected database
75
New cards
DESCRIBE
Displays the structure and attributes of a table
76
New cards
ASC
Sorts query results in ascending order
77
New cards
DESC
Sorts query results in descending order
78
New cards
Cartesian Product
Combines every row of one table with every row of another table
79
New cards
JOIN
Combines rows from two or more tables based on a related column or condition
80
New cards
Natural Join
Automatically joins tables using columns with identical names
81
New cards
JOIN USING
Joins tables using explicitly specified common column names
82
New cards
JOIN ON
Joins tables using a specified matching condition
83
New cards
Equijoin
A join that uses equality as its matching condition