Advanced SQL Programming
Advanced SQL Programming
Day-1 SQL Server - Architectural Components System Databases and Their Uses System Tables and their importance System Stored Procedures Joins equijoins & natural joins, self joins & co-relation names, outer joins How joins work and how are they processed Determining which table columns to join User-defined datatypes
Day-2 Defaults - creating defaults, binding defaults, dropping defaults Rules creating rules, binding rules, dropping rules Views how views work, creating views, retrieving data thru views Modifying data thru views, dropping views, Views as a security mechanism Batches Rules associated with batches Using control-of-flow language constructs Local variables & Global variables Using Built-in functions in queries String functions, mathematical functions, date functions, datatype conversion functions
Day-3 Stored Procedures How they work, creating and executing a stored procedure Returning information from stored procedures, restrictions associated with stored procedures Using stored procedures as a security mechanism Extended Stored Procedures
Cursors types of cursors, declare, open, fetch, close, deallocate cursors Updating and deleting rows using cursors, cursors and locking
Day-4 Triggers How triggers work, creating, disabling, dropping triggers Using triggers to maintain referential integrity, multirow considerations Rolling back triggers, nesting triggers, Inserted and deleted logical tables, triggers and transactions Instead of triggers Transactions How transactions work, transaction mode and isolation level Using transactions in stored procedures and triggers Using cursors in transactions Issues to consider when using transactions Locking commands and options
Day-5 Query tuning and optimization Indexes Clustered and non-clustered indexes How indexes work, index options, dropping indexes, updating statistics How optimizer works Viewing Query plans
Notes: 1) This is an estimated day-wise training plan. 2) All topics would be covered with demos, labs and practicals to build confidence into participants. 3) Certain topics may take more or less time depending on participants background and familiarity with basic SQL.