Contact Us info@learnquest.com

??WelcomeName??
??WelcomeName??
photo

Thank you for your interest in LearnQuest.

Your request is being processed and LearnQuest or a LearnQuest-Authorized Training Provider will be in touch with you shortly.

photo

Thank you for your interest in Private Training.

We look forward to helping you develop the perfect training solution to help you meet your company's goals.

For immediate assistance, speak with one of our representatives using the chat module below. Otherwise, LearnQuest or a LearnQuest-Authorized Training Provider will be in touch with you shortly.

photo

Thank you for your interest in LearnQuest!

Now, you will be able to stay up-to-date on our latest course offerings, promotions, and training discounts. Watch your inbox for upcoming special offers.

title

Date: xxx

Location: xxx

Time: xxx

Price: xxx

Please take a moment to fill out this form. We will get back to you as soon as possible.

All fields marked with an asterisk (*) are mandatory.

DB2 SQL

Course content updated by LearnQuest
Price
2,295 USD
3 Days
DBDB-550
Classroom Training, Online Training
IBM Business Partner
Prices reflect a 22.5% discount for IBM employees.
Prices shown are the special AWS Partner Prices.
Prices reflect the Capgemini employee discount.
Prices reflect the UPS employee discount.
Prices reflect the ??democompanyname?? employee discount.
GSA Private/Onsite Price: ??gsa-private-price??
For GSA pricing, please go to GSA Advantage.

Special Offer

Save up to $500 on Cloud Training Courses

Get access to authorized cloud training and save hundreds for your team. Use promo code CLOUD10. Offer expires on February 18, 2022.

More Information ?

Class Schedule

Delivery Formats

Sort results

Filter Classes

Guaranteed to Run

Modality

Location

Language

Date

    Sorry, there are no public classes currently scheduled in your country.

    Please complete this form, and a Training Advisor will be in touch with you shortly to address your training needs.

View Global Schedule

Course Description

Overview

This DB2 SQL course is designed to provide students with a deeper knowledge and understanding of the DB2 SQL and how to write it. Students will learn the DB2 SQL starting at the most basic level and going to the most advanced level with many examples.
 

Objectives

Upon completion of the DB2 SQL course, students will be able to:
  • Identify and apply basic SQL functions
  • Understand the WHERE clause
  • Contrast Distinct vs. Group by
  • Recognize and apply functions, such as:
    • Aggregation, Join, Date, OLAP, View, Sub-query and Statistical Aggregate
  • Recognize and produce Temporary Tables
  • Define and distinguish Strings
  • Interrogate the Data
  • Set Operators
  • Demonstrate knowledge of the Data Manipulation Language (DML)

Audience

  • Anyone who has a desire to learn DB2 SQL from beginners to an advanced audience.

Prerequisites

    • None

Topics

  • The Basics of SQL
    • Introduction
    • Finding Your Current Schema
    • Setting Your Default SCHEMA
    • SELECT * (All Columns) in a Table
    • SELECT Specific Columns in a Table
    • Place your Commas in front for better Debugging Capabilities
    • Sort the Data with the ORDER BY Keyword
    • ORDER BY
    • NULL Values sort First in Ascending Mode (Default)
    • 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
    • Comments
    • Formatting Number Examples
    • Formatting Date Example
  • The WHERE Clause
    • The WHERE Clause limits Returning Rows
    • Double Quoted Aliases are for Reserved Words and Spaces
    • Character Data needs Single Quotes in the WHERE Clause
    • Comparisons against a Null Value
    • Use IS NULL or IS NOT NULL when dealing with NULLs
    • Using Greater Than or Equal To (>=)
    • AND in the WHERE Clause
    • Troubleshooting AND
    • OR in the WHERE Clause
    • Troubleshooting Or
    • Troubleshooting Character Data
    • Using Different Columns in an AND Statement
    • What is the Order of Precedence?
    • Using Parentheses to change the Order of Precedence
    • Using an IN List in place of OR
    • The IN List is an Excellent Technique
    • IN List vs. OR brings the same Results
    • The IN List Can Use Character Data
    • Using a NOT IN List
    • Null Values in a NOT IN List Bring Back No Rows
    • A Technique for Handling Nulls with a NOT IN List
    • BETWEEN is Inclusive
    • NOT BETWEEN is Also Inclusive
    • LIKE command
    • Numbers are Right Justified and Character Data is Left
    • An Example of Data with Left and Right Justification
    • A Visual of CHARACTER Data vs. VARCHAR Data
    • Use the TRIM command to remove spaces on CHAR Data
    • Escape Character in the LIKE Command changes Wildcards
    • Escape Characters Turn off Wildcards in the LIKE Command
    • The Distinct Command
    • Distinct vs. GROUP BY
    • The FETCH Clause
  • Aggregation
    • The 3 Rules of Aggregation
    • There are Five Aggregates
    • Troubleshooting Aggregates
    • GROUP BY delivers one row per Group
    • GROUP BY Dept_No Works GROUP BY 1 Fails
    • Limiting Rows and Improving Performance with WHERE
    • WHERE Clause in Aggregation limits unneeded Calculations
    • Keyword HAVING tests Aggregates after they are totaled
    • Keyword HAVING is like an Extra WHERE Clause for Totals
    • Keyword HAVING tests Aggregates after they are totaled
    • Getting the Average Values per Column
    • Average Values per Column for all Columns in a Table
    • GROUP BY
  • Join Functions
    • A Two-Table Join Using Traditional Syntax
    • A two-table join using Non-ANSI Syntax with Table Alias
    • You Can Fully Qualify All Columns
    • A two-table join using ANSI Syntax
    • Both Queries have the same Results and Performance
    • LEFT OUTER JOIN
    • RIGHT OUTER JOIN
    • FULL OUTER JOIN
    • Which Tables are the Left and which Tables are Right?
    • INNER JOIN with Additional AND Clause
    • ANSI INNER JOIN with Additional AND and WHERE Clause
    • OUTER JOIN with Additional WHERE and AND Clause
    • Evaluation Order for Outer Queries
    • The DREADED Product Join
    • The Horrifying Cartesian product join
    • The ANSI Cartesian Join will ERROR
    • The CROSS JOIN
    • The Self Join
    • The Self Join with ANSI Syntax
    • How would you join these two tables?
    • An Associative Table is a Bridge that Joins Two Tables
    • The Nexus Query Chameleon Writes the SQL for Users
  • Using Nexus for DB2
    • Nexus is Available on the Cloud
    • Nexus Queries Every Major System
    • How to Use Nexus
    • Why is Nexus Special?
      • Visualization and Automatic SQL
      • Cross-System Joins
      • The Amazing Hub System
      • Save Answer Sets as Tables
      • Automated Data Movement
      • Nexus makes the Servers Talk Directly
    • The Garden of Analysis:
      • Grouping Sets Tab
      • Grouping Sets Answer Sets
      • Join Tab
      • Charts/Graphs Tab
      • Dynamic Charts Tab
      • Dashboard Tab
    • Getting to the Super Join Builder
    • The Super Join Builder is the First Entry in the Menu
    • The Super Join Builder Shows Tables Visually
    • Using the Add Join Button
    • What to Do When No Tables are Joinable?
    • Drag a Joinable Object into the Super Join Builder
    • You will see the Add Custom Join Window
    • Defining the Join Columns
    • Your Tables Will Appear Together
    • Select the Columns You Want on the Report
    • Check out the SQL Tab to See the SQL that has been built
    • SQL Tab
    • Hit Execute to get the Report inside the Super Join Builder
    • The Report is delivered inside the Super Join Builder
    • Let's Join Two Tables Again
    • The Tabs of the Super Join Builder:
      • Philosophy – One Query
      • Objects Tab
      • Columns Tab
      • Sorting Tab
      • Joins Tab
      • SQL Tab
      • Metadata Tab
      • Analytics Tab
      • OLAP Screen
    • Getting a Simple CSUM in the Analytics Tab – OLAP
    • Getting a Simple CSUM – The SQL Automatically Generated
    • The Answer Set of the CSUM
    • Getting all of the OLAP functions in the Analytics Tab
    • A Five Table Join Using the Menu
    • The First Table is placed in the Super Join Builder
    • Using the Add Join Cascading Menu
    • All Five Tables Are In the Super Join Builder
    • A Five Table Join Two Steps (Cube)
    • Choose Cube with Columns from the Left Top of the Table
    • All Tables are Cubed (Joined Together Instantly)
    • Choose Cube and then Choose Your Columns
    • Create Cube - Tables Are Joined Without Columns Selected
    • Create Cube – Select the Columns You Want on the Report
    • How to join DB2, Oracle and SQL Server Tables
    • The DB2 Table is now in the Super Join Builder
    • Drag the Joining Oracle Table to the Super Join Builder
    • Defining the Join Columns
    • Choose the Columns You Want on Your Report
    • Let's Add a SQL Server Table to our DB2 and Oracle Join
    • Defining the Join Columns
    • All Three Tables are now in the Super Join Builder
    • Change the Hub and Run the Join on Oracle
    • Change the Hub and Run the Join on SQL Server
    • Simply Amazing - Change the Hub to the Garden of Analysis
    • Have the Answer Set Saved Automatically to Any System
    • Saving the Answer Set to an Oracle or SQL Server System
    • Saving the Answer Set to a DB2 System
    • Saving the Answer Set to a Teradata System
  • Date Functions
    • Getting the System Date
    • Extracting From a Timestamp
    • The EXTRACT Command
    • Using the EXTRACT Command to Extract Month, Day, Year
    • Extracting From a Date Column
    • Extracting the Date and Time from the Timestamp
    • Formatting Date Standards
    • Adding and Subtracting Days from a Date
    • Adding Years, Months, Days, Hours and Seconds
    • Using the Add_Months Command
    • Adding Years to a Date
    • Add Five Years to a Date
    • Converting Character Data to a Date or Time
    • Timestamp DAYOFWEEK, DAYNAME and MONTHNAME
    • Finding Orders That Happened on a Friday
    • NEXT_DAY Command Finds a Future Day of the Week
    • Finding the Last Day of a Month
    • Finding the Last Day of the Previous Month
    • Getting the First Day of the Month
    • Finding the Number of Days between Two Dates
    • Resetting the Microseconds Back to Zero
    • Turning Date and Time into Characters
    • Converting Character Data to a Timestamp
    • Finding Differences between Timestamps
    • Differences between Timestamps Fractions of a Second
    • Find Differences between Timestamp Seconds and Minutes
    • Find Differences between Timestamp Hours and Days
    • Find Differences between Timestamp Weeks and Months
    • Find Differences between Timestamp Quarters and Years
    • Formatting Dates
    • Formatting Timestamp Example
  • OLAP Functions
    • The Row_Number Command
    • Using a Derived Table and Row_Number
    • Ordered Analytics OVER
    • RANK and DENSE RANK
    • RANK Defaults to Ascending Order
    • Getting RANK to Sort in DESC Order
    • RANK OVER and PARTITION BY
    • Finding Gaps between Dates
    • CSUM
    • The ANSI CSUM – Getting a Sequential Number
    • Reset with a PARTITION BY Statement
    • PARTITION BY only Resets a Single OLAP not ALL of them
    • CURRENT ROW AND UNBOUNDED FOLLOWING
    • Different Windowing Options
    • Moving Sum has a Moving Window
    • How ANSI Moving SUM Handles the Sort
    • Moving SUM every 3-rows Vs a Continuous Average
    • PARTITION BY Resets an ANSI OLAP
    • The Moving Window is Current Row and Preceding
    • Moving Average
    • PARTITION BY Resets an ANSI OLAP
    • Moving Difference
    • COUNT OVER
    • The MAX OVER Command
    • MAX OVER with PARTITION BY Reset
    • The MIN OVER Command
    • Finding a Value of a Column in the Next Row with MIN
    • The CSUM for Each Product_Id and the Next Start Date
    • FIRST_VALUE
    • LAST_VALUE
    • LEAD
    • LAG
    • SUM (SUM (n))
  • Temporary Tables
    • There are two types of Temporary Tables
    • CREATING A Derived Table
    • Creating Multiple Derived Tables in the WITH Command
    • Creating Multiple Derived Tables in the WITH Command
    • The Same Derived Query shown Three Different Ways
    • Most Derived Tables Are Used To Join To Other Tables
    • The Three Components of a Derived Table
    • Visualize This Derived Table
    • Our Join Example with A Different Column Aliasing Style
    • Column Aliasing Can Default For Normal Columns
    • Our Join Example With the WITH Syntax
    • Quiz - Answer the Questions
    • Answer to Quiz - Answer the Questions
    • Clever Tricks on Aliasing Columns in a Derived Table
    • An Example of Two Derived Tables in a Single Query
    • Example of Two Derived Tables in a Single WITH Statement
    • WITH RECURSIVE Derived Table:
      • Hierarchy
      • Query
      • Definition
      • Seeding
      • Looping
      • Slow Motion
      • Definition
    • Creating and Populating a Global Temporary Table
    • Global Temporary Table Definitions Persist
    • ON COMMIT DELETE ROWS Example
    • Creating and Populating a Global Temporary Table
    • Creating a Global Temporary Table Using a CTAS
    • A Global Temp Table That Populates Some of the Rows
    • A Temporary Table with Some of the Columns
  • Sub-query Functions
    • An IN List is much like a Subquery
    • An IN List Never has Duplicates – Just like a Subquery
    • The Subquery
    • The Three Steps of How a Basic Subquery Works
    • These are Equivalent Queries
    • The Final Answer Set from the Subquery
    • The Basics of a Correlated Subquery
    • The Top Query always runs first in a Correlated Subquery
    • Correlated Subquery Example vs. a Join with a Derived Table
    • How the Double Parameter Subquery Works
    • More on how the Double Parameter Subquery Works
    • How to handle a NOT IN with potential NULL Values
    • IN is equivalent to =ANY
    • Using a Correlated Exists
    • How a Correlated Exists matches up
    • The Correlated NOT Exists
  • Strings
    • The LENGTH Command
    • The TRIM Command
    • The SUBSTRING Command
    • How SUBSTRING Works with NO ENDING POSITION
    • Concatenation
    • Concatenation and SUBSTRING
    • Four Concatenations Together
    • UPPER and LOWER Commands
    • LPAD and RPAD
    • SOUNDEX
  • Interrogating the Data
    • Using the LOWER Command
    • Using the UPPER Command
    • Non-Letters are Unaffected by UPPER and LOWER
    • The COALESCE Command
    • COALESCE is Equivalent to This CASE Statement
    • CAST (Convert and Store)
    • Using an ELSE in the Case Statement
    • Using an ELSE as a Safety Net
    • Rules for a Valued Case Statement
    • Rules for a Searched Case Statement
    • Valued Case Vs. A Searched Case
    • The CASE Challenge
    • The CASE Challenge Answer
    • Combining Searched Case and Valued Case
    • A Trick for getting a Horizontal Case
    • Nested Case
    • Put a CASE in the ORDER BY
  • View Functions
    • The Fundamentals of Views
    • Creating a Simple View to Restrict Sensitive Columns
    • You SELECT From a View
    • Creating a Simple View to Restrict Rows
    • A View Provides Security for Columns and Rows
    • Basic Rules for Views
    • How to Modify a View
    • An Exception to the ORDER BY Rule inside a View
    • Views Are Sometimes CREATED for Formatting
    • Creating a View to Join Tables Together
    • How to Alias Columns in a View CREATE
    • The Standard Way Most Aliasing is done
    • What Happens When Both Aliasing Options Are Present
    • Resolving Aliasing Problems in a View CREATE
    • Answer to Resolving Aliasing Problems in a View CREATE
    • Creating a View with a Local Check
    • Aggregates on View Aggregates
    • Altering a Table after a View Has Been Created
    • A View that Errors after an ALTER
  • Set Operators Functions
    • Rules of Set Operators
    • INTERSECT Explained Logically
    • UNION Explained Logically
    • UNION ALL Explained Logically
    • EXCEPT Explained Logically
    • Minus Explained Logically
    • An Equal Amount of Columns in both SELECT List
    • Columns in the SELECT list should be from the same Domain
    • The Top Query handles all Aliases
    • The Bottom Query does the ORDER BY
    • Great Trick: Place your Set Operator in a Derived Table
    • UNION Vs UNION ALL
    • A Great Example of how MINUS works
    • USING Multiple SET Operators in a Single Request
    • Changing the Order of Precedence with Parentheses
    • Using UNION ALL for speed in Merging Data Sets
  • Table Create and Data Types
    • The Basics of Creating a Table
    • Creating a Table with NOT NULL Constraints
    • Creating a Table with a UNIQUE Constraint
    • Creating a Unique Index
    • Creating a Clustered Index
    • Creating a Partitioned Table
    • Declaring a Global Temporary Table
    • Creating a Table
    • Defining Primary Keys
    • Creating a Table with an Identity Column that is Unique
    • Creating a Table with an Identity Column that is Non-Unique
    • Creating a Sequence
    • Altering a Table to Add a Column
    • Altering a Table to Drop a Column
    • Renaming a Table
    • Dropping a Table
    • Creating a Table Using a CTAS or a LIKE
    • Creating a Table Using a CTAS Join
    • Data Types
  • Data Manipulation Language (DML)
    • INSERT Syntax # 1-2
    • INSERT/SELECT Command
    • INSERT/SELECT example using All Columns (*)
    • INSERT/SELECT example with Less Columns
    • Two UPDATE Examples
    • Subquery UPDATE Command Syntax
    • Example of Subquery UPDATE Command
    • The DELETE Command Basic Syntax
  • Statistical Aggregate Functions
    • Numeric Manipulation Functions
    • The Stats Table
    • The VARIANCE Function
    • The CORR Function
    • The REGR_INTERCEPT Function
    • The REGR_SLOPE Function
    • The REGR_AVGX Function
    • The REGR_AVGY Function
    • The REGR_COUNT Function
    • The REGR_R2 Function
    • The REGR_SXX Function
    • The REGR_SXY Function
    • The REGR_SYY Function
    • DB2 SQL

      DBDB-340P
      • Duration: 3 Days
      • Delivery Format: Classroom Training, Online Training
      • Price: 1,755.00 USD
    • DB2 SQL Workshop

      CE121G
      • Duration: 16 Hours
      • Delivery Format: Classroom Training, Online Training
      • Price: 1,630.00 USD
    2020 Top 20 Training Industry Company - IT Training

    Need Help?

    Call us toll free at 877-206-0106 or e-mail us at info@learnquest.com

    Personalized Solutions

    Need a personalized solution for your training? Contact us, and one of our advisors will help you find the best solution to your training needs.

    Contact us

    Need Help?

    Do you have a question about the courses, instruction, or materials covered? Do you need help finding which course is best for you?

    Talk to us

    Self-Paced Training Info

    Learn at your own pace with anytime, anywhere training

    • Same in-demand topics as instructor-led public and private classes.
    • Standalone learning or supplemental reinforcement.
    • e-Learning content varies by course and technology.
    • View the Self-Paced version of this outline and what is included in the SPVC course.
    • Learn more about e-Learning

    Course Added To Shopping Cart

    bla

    bla

    bla

    bla

    bla

    bla

    Self-Paced Training Terms & Conditions

    ??spvc-wbt-warning??
    ??group-training-form-area??
    ??how-can-we-help-you-area??
    ??personalized-form-area??
    ??request-quote-area??

    Sorry, there are no classes that meet your criteria.

    Please contact us to schedule a class.
    Nothing yet
    here's the message from the cart

    To view the cart, you can click "View Cart" on the right side of the heading on each page
    Add to cart clicker.

    Purchase Information

    ??elearning-coursenumber?? ??coursename??
    View Cart

    Need more Information?

    Speak with our training specialists to continue your learning journey.

     

    Delivery Formats

    Close

    By submitting this form, I agree to LearnQuest's Terms and Conditions

    heres the new schedule
    This website uses third-party profiling cookies to provide services in line with the preferences you reveal while browsing the Website. By continuing to browse this Website, you consent to the use of these cookies. If you wish to object such processing, please read the instructions described in our Privacy Policy.
    Your use of this LearnQuest site affirms your consent to our use of session and persistent cookies to track how you use our website.