DBMS / Business Intelligence, SQL Server Orsys, with 30 years of experience, is providing high quality, independant State of the Art seminars and hands-on courses corresponding to the needs of IT professionals. Orsys proposes a set of courses on the most important topics in IT technologies and management. Hands-on courses SQL databases and language for nonit people... Best ( p2 ) SQL Server: SQL Programming... Best ( p4 ) SQL Server 2014/2012: Implementation... ( p6 ) SQL Server Tuning... Best ( p8 ) ORSYS, La Grande Arche, Paroi Nord, 92044 Paris La Défense cedex. Tél : +33 (0)1 49 07 73 73. Fax : +33(0)1 49 07 73 78 page 1
Hands-on course, 3 day(s) Ref : SIF Participants People in charge of reporting or analysis, assistants, anyone who needs to carry out simple queries or updates on a database with SQL language Pre-requisites No particular knowledge. Education common to all relational databases (Oracle, SQL Server, DB2, PostGreSQL, MySQL, Access, SQL Lite, etc.) SQL databases and language for nonit people Best > DBMS / Business Intelligence > SQL Server This "discovery" course will enable you to understand socalled relational databases and how they operate. You'll work with the SQL language to query the data in a base. You'll also become familiar with more advanced queries to analyze information. OBJECTIVES Understand the principle and contents of a relational database Create queries to extract data based on different criteria Produce queries with joins in order to get information from multiple tables Use simple calculations and data aggregation Combine results from multiple queries Instructional methods 1) Introduction to databases 2) Extracting data from a table 3) Querying data from multiple tables 4) Ranking and statistics 5) Presenting and sorting data 6) Using subqueries Many sequential exercises for extracting data from an example database. 1) Introduction to databases - What are a database and a database server? - Reading a relational model. - Creating a table. Notions of columns and types - Primary key and uniqueness - Links between tables and referential integrity. - Metadata of tables, columns, and keys. - Tool for querying a database. Investigating the database by searching for tables, views, columns, and keys. 2) Extracting data from a table - What is an extraction query? - List the values to be returned. - The WHERE clause for filtering data. - The absence of a value (NULL marker). - Returning unduplicated rows (DISTINCT). - Restriction operators (BETWEEN, IN, LIKE, etc.). Querying multiple tables on different criteria. 3) Querying data from multiple tables - Concept of joins: Returning information from multiple tables. - Internal join. External join. - The natural join... and its difficulties. - Assembly operators (UNION, INTERSECT...). Creating queries with joins and assembly operators. 4) Ranking and statistics - Finding aggregate values (MIN, MAX, AVG, SUM, etc.). - Calculating relative aggregates with GROUP BY. - Filtering aggregate values with HAVING. - Mixing aggregates and details with OVER. - Ranking results with RANK, ROW_NUMBER and NTILE. Creating queries using simple and aggregate calculations. Subtotals and numbering. 5) Presenting and sorting data - Presenting data from columns with aliases - Converting from one type to another. ORSYS, La Grande Arche, Paroi Nord, 92044 Paris La Défense cedex. Tél : +33 (0)1 49 07 73 73. Fax : +33(0)1 49 07 73 78 page 2
- Making choices using the CASE operator. - Sorting data with ORDER BY. - Operations on character strings and dates. Using functions to improve the presentation of the query result. 6) Using subqueries - What is a subquery? - Different types of results. - Subqueries of lists and IN, ANY/SOME and ALL operators. - Correlated subqueries. - Using CTE (Common Table Expressions) to factor subqueries. Writing queries that include subqueries of different forms. Creating views. ORSYS, La Grande Arche, Paroi Nord, 92044 Paris La Défense cedex. Tél : +33 (0)1 49 07 73 73. Fax : +33(0)1 49 07 73 78 page 3
Hands-on course, 3 day(s) Ref : PSQ Participants SQL query designers, future DBMS developers, administrators or maintenance managers. Pre-requisites Basic programming knowledge. SQL Server: SQL Programming Best > DBMS / Business Intelligence > SQL Server This course will enable you to learn the fundamentals of the SQL language. You'll learn about the principles of relational databases (relational algebra, set theory) and explore the syntax of SQL for querying, analyzing data, and working with databases. OBJECTIVES Understand the relational model and identify the objects of a database. Query and classify a table's data using simple operators. Return data from multiple tables using joins and subqueries. Group together data and perform calculations for analysis purposes. Work with data in database tables. 1) Relational algebra and the SQL standard. 2) Database theory 3) Querying single-table data 4) Multiple-table querying 5) Data analysis 6) Updating data 7) Introduction to procedural SQL 1) Relational algebra and the SQL standard. - The concepts of the relational model. - History of RDBMSs and the SQL language. - Entities, associations, and ER diagrams. - Types of data and value expressions. Jeu de rôle Getting started with the software SQL Server Management Studio. Discovering the studied database. 2) Database theory - Elements of the DBMS. - Tables, keys, and normal forms. - Entities, associations, and ER diagrams. - Column and table restrictions. Identifying the objects of a database. Determining the normal form type of a relationship and a transformer, creating an ER diagram. 3) Querying single-table data - Structure of a SELECT query. - WHERE filters, predicates, and ternary logic (NULL). - SQL operators and expressions. - Predefined functions. Extraction using the WHERE clause. Using IN, LIKE, CASE, etc. operators of numerical operators, data, string functions Data sorting 4) Multiple-table querying - Combining results with set clauses (UNION, INTERSECT, EXCEPT). - Overview of joins. - Embedding queries. - Using CTEs and discovering recursive queries. - Correlated subqueries and the EXISTS operator. Using set clauses, creating queries with joins. 5) Data analysis - Aggregation functions (AVG, SUM, COUNT, etc.). - Creating subsets (GROUP BY clause). - Filtering aggregates with the HAVING clause. - Discovering data analysis functions (LEAD, LAG...) and ranks (RANK, ROW_NUMBER, NTILE...). Analyzing data by writing queries that use calculations with grouping. ORSYS, La Grande Arche, Paroi Nord, 92044 Paris La Défense cedex. Tél : +33 (0)1 49 07 73 73. Fax : +33(0)1 49 07 73 78 page 4
6) Updating data - INSERT, UPDATE, DELETE, TRUNCATE orders. - Simple updates. - Updating with subqueries. - Updating data through views. Database table insertion and update operations. 7) Introduction to procedural SQL - SQL dialects of major publishers. - Basic notions of triggers. - Introduction to stored procedures. - UDFs or user functions. Creating a stored procedure. ORSYS, La Grande Arche, Paroi Nord, 92044 Paris La Défense cedex. Tél : +33 (0)1 49 07 73 73. Fax : +33(0)1 49 07 73 78 page 5
Hands-on course, 5 day(s) Ref : QSM Participants This course is intended for system engineers and developers who are to use or implement SQL Server 2012. Pre-requisites Good knowledge of the SQL language or knowledge equivalent to that provided by the course "SQL Server: SQL Programming" (code: PSQ). SQL Server 2014/2012: Implementation > DBMS / Business Intelligence > SQL Server This course will provide you with all the knowledge you need to fully use SQL Server in its 2012 or 2014 version. You'll learn how to write SQL orders and use language extensions, edit structures and enter integrity conditions, load data and use transactions. OBJECTIVES Become familiar with the Management Studio environment Create the database's tables, and set up primary keys and uniqueness constraints Load data into the database using BULK INSERT and BCP Implement indices on the database to improve its performance. Create queries and stored procedures, triggers and functions, to update the database Integrate exception management and transactions in triggers and procedures 1) Overview of SQL Server 2012 2) SQL databases and schemas 3) Tables, views, and constraints 4) Loading data and exports 5) Indexing and query plans 6) Advanced SQL with Transact SQL, procedural code 7) Transactions and exception management. 8) Introduction to advanced techniques 1) Overview of SQL Server 2012 - Architecture of SQL Server 2012. - Development and administration tools Getting started with the configuration manager and Management Studio. 2) SQL databases and schemas - Identifiers: Naming SQL Server objects. - Creating the database. SQL schemas. - Lifecycle of a database's objects. 3) Tables, views, and constraints - DDL language: Creating objects and constraints. - Types of native data and user types. - Creating tables and views. - Domain and column constraints. - Primary key and alternative keys. Managing referential integrity. Creating user types. Creating tables and views. Adding constraints. Setting up primary keys and uniqueness constraints. 4) Loading data and exports - The BULK INSERT command. - Importing/exporting from the command line with BCP. - OPEN functions for querying outside data. - Overview of Integration Services. Loading data using BULK INSERT and BCP. Using OPENROWSET. 5) Indexing and query plans - Index structure: Balanced tree, clustered index, etc. - Creating an index: Approach to creation, etc. - Performance analysis. - Using the Database Tuning Advisor. Setting up indices in the database and observations about performance. 6) Advanced SQL with Transact SQL, procedural code - OLAP groupings and OUTPUT, SELECT INTO clauses, etc. - SQL MERGE order. Data encryption. - Functions, stored procedures, cursors, triggers. ORSYS, La Grande Arche, Paroi Nord, 92044 Paris La Défense cedex. Tél : +33 (0)1 49 07 73 73. Fax : +33(0)1 49 07 73 78 page 6
Creating advanced TransactSQL requests. Producing a multiinstruction table function. Stored procedure for combined insertion. 7) Transactions and exception management. - Transactions. Insulation levels. Exception management. Nested transactions. Integrating exception management and transactions in triggers and stored procedures. 8) Introduction to advanced techniques - Overview of the Geographic Information System.GIS Use of XML within SQL Server 2012. Use of the SIG. XML querying. ORSYS, La Grande Arche, Paroi Nord, 92044 Paris La Défense cedex. Tél : +33 (0)1 49 07 73 73. Fax : +33(0)1 49 07 73 78 page 7
Hands-on course, 4 day(s) Ref : SQS Participants SQL Server DBAs, project managers having to drive developments with high volumes (data, access...) and developers facing response time problems Pre-requisites Good knowledge of RDBMS data modeling concepts, SQL Server, Transact SQL and SQL languages. Basic knowledge of Windows operating systems Next sessions Brussels sep. 13 2016, dec. 6 2016 Geneve sep. 13 2016, dec. 6 2016 Luxembourg sep. 13 2016, dec. 6 2016 SQL Server Tuning Best > DBMS / Business Intelligence > SQL Server OBJECTIVES This course provides an introduction to rational and efficient optimization of SQL Server databases for complex or high volume applications. It covers SQL Server 2000 to 2008 versions 1) Model and data 2) Hardware optimization 1) Model and data - Importance of data type, schema design, keys content. - Modeling methods depending on data volume - Using constraints and triggers - Data quality and redundancy management. Comparison between two models with identical data 2) Hardware optimization - Processors and parallelism management - RAM configuration - Windows 32 Bits vs Windows 64 Bits comparison - Choosing Hard Disk: RAID, SAN, etc - Network infrastructure : best practices Measuring physical I/O using «Perfmon» tool 3) SQL Server settings 3) SQL Server settings 4) Writing and reading data - Installation considerations : OS, SQL Server, sessions, etc... Auditing server with «Perfmon» tool - Managing quotas on Resources Retrieving server information using SQL queries and «Perfmon» tool 4) Writing and reading data - Storage engine and buffer cache - Checkpoint and LazyWriter - Organization of tables and indexes taking into account data volume - Transactions, logs and isolation level - Files organization Creating a multi files database and migrating data ORSYS, La Grande Arche, Paroi Nord, 92044 Paris La Défense cedex. Tél : +33 (0)1 49 07 73 73. Fax : +33(0)1 49 07 73 78 page 8