click below
click below
Normal Size Small Size show me how
SQL
Structured Query Language
| Term | Definition |
|---|---|
| SQL | used to communicate with data stored in a relational database |
| primary key | column or groups of columns used to uniquely id a table |
| foreign key | column in one table refers to column in another table |
| normalization | design of database without composite columns, few repeats and logical dependencies |
| select | gets data from table |
| where | defines condition then returns specific value from table |
| insert | adds rows |
| joins | 2 tables with similar data in 1 column or more |
| types of joins | inner, right, left, full |
| union | combination of 2 defined statements with same data type |
| types of relationships | one to one, one to many, many to many |
| one to one | both tables in a row represents unique data |
| one to many | column has fk to another table and the one table doesn't refer to the many table |
| many to many | many records in one table relate to many records in another table |