Unit 4 Module 4 - SQL and Databses Flashcards
What do you call an organized collection of information or data?
A Database
What do you call a structed database containing tables that are related to eachother?
Relational Database
What do you call a column where every row has a unique entry?
Primary Key
What do you call a table that is a primary key in another table?
Foreign Key
What is a programming language used to create, interect with, and request information from a database?
SQL (Structured Query Language)
What do you call a request for data from a database table or a combination of tables?
Query
What do you call a record of events that occur within an organizations system?
Log
What is the command to access SQL from Linux?
sqlite3
What 3 ways do Linux and SQL filter data differently?
Structure, Joining Tables, Best uses
Structure - SQL offers more structure and tidyness rather than Linux
Joining Tables - SQL allows analysts to join multiple tables together when returning data, Linux does not.
Best uses - Sometimes looking for certain files that aren’t text SQL can’t format it.
In SQL, what command indicates which columns to return?
SELECT
In SQL, what command indicates which table to query?
FROM
In SQL, what command sorts a specified keyword in a column?
ORDER BY
Ex) ORDER BY city;
In SQL, what command sorts a specified keyword in a column by descending order?
DESC
Ex) ORDER BY city DESC;
What will this SQL command do to the columns?
SELECT customerid, city, country
FROM customers
ORDER BY country, city;
SQL then sorts the output by country, and for rows with the same country, it sorts them based on city.
What do you call selecting data that matches a certain condition?
Filtering