Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
37 Cards in this Set
- Front
- Back
What is a database? |
–Data that is being collected for record-keeping & analysis –Managed by a database management system (DBMS)
|
|
What does DBMS stand for? |
Data Base Management System |
|
What are some common examples of a database? |
|
|
Why are databases so important? |
–Amount of electronically available data is exploding –Cost of storage is continuously dropping
NOTE: Moore’s law: every 18 months, speed of processor doubles, price goes down by half |
|
Who owns the largest databases? |
NOTE:
|
|
What is DBMS? |
Database Management System –Collection of programs that allows users to create a new database and specify structure –Gives users the ability to query and modify the data efficiently –Keeps the data secure from accidents or unauthorized use
–Controls the access to the data for many users at once
|
|
Who created the modern DBMS and in what year? |
Ted Codd invented the relational data model and the concept of abstraction in the early 1970's |
|
Who invented SQL? |
A team from IBM NOTE: This became the defacto standard for query languages based on the relational data model. |
|
What is SQL? |
Structured Query Language (SQL) It is a computer language designed to get information from data that is stored a relational database. |
|
What does SQL describe? |
The information you want. |
|
What is the most successful declarative language? |
SQL |
|
What is a declarative language |
This is where the programmer specifies what needs to be done rather than how to do it. |
|
What is DDL? |
Data Definition Language –A DDL Statement is used to create structures in a database –Create table of employees
|
|
What is DML? |
Data Manipulation Language Command to retrieve actual data (aka queries) |
|
What is a host language? |
General-purpose programming language which lets users embed DML commands EXAMPLE
|
|
How is information presented in a relational DB? |
Information is presented as sets of tables |
|
What is the format of Select Clause? |
SELECT columnnames FROM tablenames WHERE somecondition ORDERBY somecolumn |
|
How do I select all items from a table? |
* |
|
How do I output only one of each item in a column? |
Select distinct ColumnName The word distinct is the word that will sort out duplicates |
|
How do you rename a colum,or give it an alias? |
Select ColumnName as NewNameHere as means to rename something |
|
What commands can be used in a where clause to define the output of the table? |
|
|
In a where clause, what does the statement "and" mean? |
The statement A and B is true only when both A and B are True |
|
In a where clause, what does the statement "or" mean? |
The statement A or B is true when either A or B is true |
|
In a where clause, what does the statement "not" mean? |
The staement not A is true when A is false |
|
Can you use multiple where statements? |
Yes EXAMPLE SELECTemployee_idfrom l_employeesWHEREdept_code= ‘SHP’ AND credit_limit> 15.00 |
|
What do commas do in SQL? |
Commas Separate items in of a list. NOTE: A list cannot end in a comma |
|
Can you use commas , or dollar $ signs when entering numbers? |
No |
|
What are single quotes ' in SQL? |
These should be used to surround text strings and dates. NOTE: Do Not use quotes around numbers |
|
What is a semicolon ; in SQL? |
This marks the end of an SQL statement |
|
What is a double dash -- in SQL? |
A comment line NOTE: You can add information that will make it easier for others to understand your formula |
|
How do you write an apostrophy ' in SQL? |
'' place two apostrophy's next to each other EXAMPLE SELECT* FROM l_suppliersWHERE supplier_name= ‘JIM PARKER’’S SHOP’ |
|
What is a period in SQL? |
A period is used between a schma name, table name, and column name EXAMPLE SELECT.l_employees.first_nameFROM l_employeesm |
|
What is a double bar in SQL || |
This is a concatenation operator |
|
What is a concatenation operator? |
These can combine two or more characters or binary strings, column names into one expression EXAMPLE SELECTlast_name|| ‘,’ || first_name AS full_nameFROM l_employees ~ In this example we are combining the first and last name into one column for display |
|
What is a wildcard? |
This is represented by % or _ |
|
What is the % in SQL? |
This is a wildcard used to represent any number of characters to all, helps define a search criteria EXAMPLE If I wanted to find all the words that had abc listed somewhere in them I would use the % sign |
|
What is the _ in SQL? |
This is a wildcard used to represent exactly one character.
EXAMPLE I need to find all the states that begin with the letter A, I would use _ symbol |