Lessons With Tera-Tom Teradata Video Series
Lessons With Tera-Tom Teradata Video Series
Introduction
SELECT * (All Columns) in a Table
SELECT Specific Columns in a Table
Using the Best Form for Writing SQL
Commas in the Front or in the Back?
Place your Commas in front for better Debugging Capabilities
Sort the Data with the ORDER BY Keyword
ORDER BY Defaults to Ascending
Use the Name or the Number in your ORDER BY Statement
Two Examples of ORDER BY using Different Techniques
Changing the ORDER BY to Descending Order
NULL Values sort First in Ascending Mode (Default)
NULL Values sort Last in Descending Mode (DESC)
Major Sort vs. Minor Sorts
Multiple Sort Keys using Names vs. Numbers
Sorts are Alphabetical, NOT Logical
Using A CASE Statement to Sort Logically
How to ALIAS a Column Name
A Missing Comma can by Mistake become an Alias
The Title Command and Literal Data
Comments using Double Dashes are Single Line Comments
Comments for Multi-Lines
Comments for Multi-Lines as Double Dashes per Line
A Great Technique for Comments to Look for SQL Errors
BETWEEN is Inclusive
BETWEEN Works for Character Data
LIKE uses Wildcards Percent % and Underscore _
LIKE command Underscore is Wildcard for one Character
LIKE ALL means ALL conditions must be Met
LIKE ANY means ANY of the Conditions can be Met