InLearning - Essential SQL Flashcards
CRUD
Create, Read, Update, Delete
SQL
Structured Query Language
DSL
Domain Specific Language
GPL
General Purpose Language
RDBMS
Relational Data Base Management System
RDSMS
Relational Data Stream Management System
DSMS
Data Stream Management System
an SQL statement is terminated with a
;
ASCII
American Standard Code for Information Exchange
single quotes are for
alias identifier
How do you pick columns?
SELECT
How do select rows?
WHERE
What is dynamic memory?
Dynamic memory allocation is when an executing program requests that the operating system give it a block of main memory. The program then uses this memory for some purpose. Usually the purpose is to add a node to a data structure.
SID
Security Identifier
ANSI
American National Standards Institute
ISO
Interational Organization for Standardization
SQL was developed at ___ by ___.
IBM, Chamberlain & Boyce
Who did the relational model?
Tedd Codd
SEQUEL
Structured English Query Language
What was Oracle’s first name?
Relational Software Inc,
A table has rows and columns, where rows represent ___ and columns represent the ___.
A table has rows and columns, where rows represent records and columns represent the attributes.
Tuple
Tuple − A single row of a table, which contains a single record for that relation is called a tuple.
In mathematics, a tuple is a finite ordered list (sequence) of elements. Mathematicians usually write tuples by listing the elements within parentheses “ {\displaystyle ({\text{ }})} (\text{ })” and separated by commas; for example, {\displaystyle (2,7,4,1,7)} (2, 7, 4, 1, 7) denotes a 5-tuple.
Schema
The term “schema” refers to the organization of data as a blueprint of how the database is constructed (divided into database tables in the case of relational databases).
A representation of a plan or theory in the form of an outline or model.
ALTER TABLE Statement is used to ___, ___, or ___ ___ in an existing table.
The ALTER TABLE statement is used to add, delete, or modify columns in an existing table.
The ALTER TABLE statement is also used to add and drop various constraints on an existing table.
How do you create rows of data
INSERT INTO test (a,b) VALUES (10,’a’);
How do you create an ID Column?
INTEGER PRIMARY KEY
What is a Boolean data type?
This has three values: TRUE, FALSE, and UNKNOWN. Expressions that return aBoolean data type are known as Boolean expressions. Unlike other SQL Server data types, a Boolean data type cannot be specified as the data type of a table column or variable, and cannot be returned in a result set.
BOOLEAN
This has three values: TRUE, FALSE, and UNKNOWN. Expressions that return a Boolean data type are known as Boolean expressions. Unlike other SQL Server data types, a Boolean data type cannot be specified as the data type of a table column or variable, and cannot be returned in a result set.
What is the wild card?
% at beginnning or end
How to use underscore.
before a letter _a (means second letter is a)
WHERE clause allows you to get just the ___ you need
rows
DISTINCT
to find distinct values
four kinds of JOIN
Inner, Outer, Left, Right
Alias Identifier syntax
SELECT * FROM table_name [AS] alias_name
A table alias is also called a ___.
A table alias is also called a correlation name.
What is a CLAUSE?
???
junction table
???
LENGTH
SUBSTR
unpack data from a column
TRIM
how to view source
CTRL+U
INSERT INTO
The INSERT INTO statement is used to insert new records in a table.
UPPER and LOWER funtions
make capital or lower case
use of operator “=”