Introduction to SQL Flashcards
Data
raw facts that need to be processed to become meaningful and useful
Database Management System
Software that handles storage, retrieval and updating of data
Database
Collection of related data that is organized so that it can be easily accessed, managed, and updated
Data Integrity
Assurance of the accuracy and consistency of data
Information
Data that has been processed and has meaning and context
Relational database
Data that is stored in a table with rows and columns
Column
One data item that is a field in the table
Field
The data in the column of a table
Foreign Key
A key that is used to connect two tables
Primary Key
Column or columns that uniquely identify each row in a table
Null
Field with no value
Record
Row in a database table
Relationship
Link or connection that is created between tables
Row
One record in a table
Table
Collection of data about one person, place or thing
Data redundancy
Data that is duplicated in the database
Relational Database Management System (RDMS)
Database Management System designed specifically for relational databases
Structured Query Language
Standard database management language
Query
Request for information from the database
SQL Server Management Studio (SSMS)
The integrated environment used to manage the SQL infrastructure
Relational Database Management System (RDMS)
A database management system designed specifically for relational databases
New Query button
Opens a new query window for a SQL query
Execute Button
to run the SQL query
Object Explorer
In SSMS, the window where the list of databases and other objects are located
Query Editor Window
In the SSMS, where the SQL query commands are written and executed
SQL Script File
A file that contains SQL code that can be copied into the SSMS Query Editor window and executed
Comments
Comments in code are ignored by the computer. They are information for the programmer
The asterisk *
A wildcard that means ALL
For Example: SELECT * FROM Customers means to select all of the rows in the Customers table
SQL Servers primary purpose is to _________ used by other applications
store and retrieve data
SSMS is used to _____, ______,
and ______ the database.
Query, design, and manage
SQL Server Express is the _____ version of SQL Server
free
To make use of a practice database, you need to define _____ and _____
Tables and data
What are scripts?
Pre-written SQL code that has been saved as a text file
A table will be made up of several _______ and _______
Columns and Rows
Keywords
A word that is considered a reserved SQL word that is used in a database operation
SELECT
A SQL keyword that is used in a query statement to retrieve data rows from database tables
FROM
A SQL keyword that used before the table name to identify the table
WHERE Clause
the WHERE clause is used to filter rows and only select data that meets the condition
Column Names
names of the columns that were defined when the table was created
Filter Rows
uses the WHERE clause to retrieve only the rows that meet the conditions
Limit Columns
A list of column names to retrieve in the SQL query instead of retrieving all of the columns
Execute
Running a query statement to retrieve a result-set
SQL Syntax
SQL syntax refers to the rules and guidelines that must be followed as SQL queries are written. The punctuation, spaces, mathematical operators, and special characters have a special meaning when used inside of SQL query statements. Different database systems will use different syntax rules.
Result-set
The columns and rows of data retrieved by running a SQL query
ORDER BY
the SQL clause used to sort the data in ascending or descending order