Course description
Writing SQL Queries
SQL is the cornerstone of all relational database operations. In this hands-on course, you learn to exploit the full potential of the SELECT statement to write robust queries using the best query method for your application, test your queries, and avoid common errors and pitfalls. It also teaches alternative solutions to given problems, enabling you to choose the most efficient solution in each situation.
The course describes the ANSI/ISO SQL standard, but also identifies deviations from the standard in the two most widely used database products, Oracle and Microsoft SQL Server.
Do you work at this company and want to update this page?
Is there out-of-date information about your company or courses published here? Fill out this form to get in touch with us.
Who should attend?
This is an introductory- level course appropriate for those who are developing applications using relational databases, or who are using SQL to extract and analyze data from databases and need to use the full power of SQL queries. Attendees are required to have a basic understanding of SQL.
Training content
Introduction and Overview
- SQL fundamentals
- Why SQL can be both easy and difficult
- Recommendations for thorough testing
Retrieving data with SELECT
- Expressions
- Literals
- Handling NULLs properly
Executing queries
- Analyzing query plans
- Enhancing query performance
- Retrieving partly results with FETCH and OFFSET
- Selecting the best alternatives
- Avoiding errors and pitfalls
- Querying Multiple Tables
Implementing various types of joins
- Inner joins
- Cross joins
- Left, right and full outer joins
- Equijoins vs. theta joins
- The performance implications of joins
- Adding filter conditions to outer joins
Writing self joins
- Joining a table to itself
- Chaining self joins
- Solving time-interval problems
Combining queries with set operators
- UNION
- UNION ALL
- INTERSECT
- EXCEPT
- Aggregate Functions
Summarizing data with aggregate functions
- COUNT
- SUM
- AVG
- MIN
- MAX
- Managing NULLs
- identifying duplicates
Grouping data
- GROUP B
- Applying conditions with HAVING
- Calculating moving averages
- Building crosstab reports
Extending group queries
- Nesting grouped aggregates
- Joins and grouping
- Introducing subtotals with CUBE and ROLLUP
- Performing Extensive Analysis with Analytic Functions
The OVER clause
- Specifying the ordering before applying the function
- Splitting the result set into logical partitions
- Calculating ranks
- RANK and DENSE_RANK
- ROW_NUMBER with ordered sets
- Calculating percentiles
Extending the use of aggregates
- Partitioning in multiple levels
- Computing running totals
- Comparing row and aggregate values
- Top-N queries
- Defining sliding window boundaries
Building Subqueries
Self-contained subqueries
- Subqueries in conditions and column expressions
- Creating multilevel subqueries
- Avoiding problems when subqueries return NULLs
- Handling multirow subquery results
- Finding gaps in number series
Correlated subqueries
- Accessing values from the outer query
- EXISTS vs. IN
- Identifying duplicates
- Avoiding accidental correlation
Common table expressions
- Reusable subqueries
- Recursive subqueries
- Traversing hierarchies
- Breaking Down Complex Queries
- Overcoming SQL limitations
- Reducing complexity and improving performance
Costs
- Price: $1,795.00
- Discounted Price: $1,166.75
Quick stats about Trivera Technologies LLC?
Over 25 years of technology training expertise.
Robust portfolio of over 1,000 leading edge technology courses.
Guaranteed to run courses and flexible learning options.
Contact this provider
Trivera Technologies
Trivera Technologies is a IT education services & courseware firm that offers a range of wide professional technical education services including: end to end IT training development and delivery, skills-based mentoring programs,new hire training and re-skilling services, courseware licensing and...