click below
click below
Normal Size Small Size show me how
INFO MANAHEMENT 8
Structured Query Language
| Question | Answer |
|---|---|
| standard language used to communicate with databases | SQL |
| SQL ALLOWS USERS TO (ADMC) | ACCESS DEFINE MANIPULATE CONTROL |
| SQL Commands | DDL, DML, DQL |
| Uniquely identifies record | PRIMARY KEY |
| Links tables | FOREIGN KEY |
| Prevents empty values | NOT NULL |
| Prevents duplicate values | UNIQUE |
| Sets default values | DEFAULT |
| what kind of data a column can store | Datatypes |
| Commands are used to define and manage database structures | Data Definition Command |
| Commands Usage in DDL | CREATE, ALTER, DROP, TRUNCATE (CADT) |
| commands are used to work with the data inside tables | Data Manipulation Commands |
| Commands Usage in DML | INSERT UPDATE DELETE SELECT (IUDS) |
| the most commonly used SQL command. | SELECT Queries |
| Commands used in Select Queries | SELECT ORDER DISTINCT LIMIT GROUP BY HAVING WHERE |
| To retrieve or create a statement by filtering data of a column. Used with () | Aggregate Functions |
| Returns the number of rows in a set. | COUNT |
| Returns the total sum of a numerical column. | SUM |
| Returns the average value of a numerical column. | AVG |
| Returns the smallest value within the selected column | MIN |
| Returns the largest value within the selected column. | MAX |
| A named rule applied to a table to enforce data integrity. | CONSTRAINT |
| Specifies the parent table and column that the foreign key depends on. | REFERENCES |
| Automatically deletes dependent records when the referenced primary key is deleted | ON DELETE CASCADE |
| Prevents duplicate records based on a combination of columns | UNIQUE |