Lesson 3: Retrieving Data Result-Set Flashcards
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 (this tells you what rows of data you want pulled example FirstName LastName, City
FROM
A SQL keyword that is used in a query statement before the table name that identifies the table. Example Where Customer will pull all the info from the customers table
WHERE Clause
The WHERE clause is used to filter rows and only retrieve those that meet a specified condition. The specified conditon will use math operator symbols Example Where City = ‘Roswell’, Where amount > ‘100’
Column Names
The column names that were defined when the table was created. Example FirstName LastName
Filter Rows
Uses the WHERE clause to retrieve only the rows that meet a specified condition instead of all the data rows.
Limit Columns
A list of column names to retrieve in the SQL query instead of retrieving all the columns in a table.
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, but the majority of SQL query statements are standard, which means that, as you learn SQL in this course, it can be applied to other database systems.
Result-set
The data columns and rows retrieved when a SQL query is executed.
Example of SQL Syntax Structure
Select FirstName, LastName, Email
From Customers