module_1 introducing sql server 2012od1
TRANSCRIPT
-
8/12/2019 Module_1 Introducing SQL Server 2012od1
1/29
Brian Alderman | MCT, CEO / Founder of MicroTechPoint
Tobias Ternstrom | Microsoft SQL Server Program Manager
-
8/12/2019 Module_1 Introducing SQL Server 2012od1
2/29
Industry-recognized consultant
Noted author and conference speaker
Brians expertise and designs range across Microsoftoperating systems
Brian has been focused on helping IT Pros and Database Administrators (DBAs) betterunderstand core Microsoft technologies for over 25 years.
A frequent presenter at SharePoint Conferences around the world, he has authored orcontributed to several SharePoint, SQL Server, and other technical books, and is a MCSE, MCT,and MCITP: SharePoint and SQL Server Administrator.
Brian has a BS and MS in Computer Information Systems where he graduated summa cum laudefrom Regis University of Colorado Springs and lives in Scottsdale, AZ where he enjoys playinggolf year round and traveling around the world.
-
8/12/2019 Module_1 Introducing SQL Server 2012od1
3/29
Meet Tobias Ternstrom
Principal Program Manager Lead in the SQL Server &Windows Azure SQL DB product group
His team owns the development of the T-SQL language, type-
system and server-side libraries and performancemanagement in SQLDB
Tobias describes himself as a developer, instructor andarchitect who has been using SQL Server since mid-90s
-
8/12/2019 Module_1 Introducing SQL Server 2012od1
4/29
-
8/12/2019 Module_1 Introducing SQL Server 2012od1
5/29
Querying Microsoft SQL Server 2012 Jump Start01 | Introducing SQL Server 2012
SQL Server types of statements; other SQL statement elements; basic SELECT statements
02 | Advanced SELECT Statements
DISTINCT, Aliases, scalar functions and CASE, using JOIN and MERGE; Filtering and sorting data, NULLvalues
03 | SQL Server Data TypesIntroduce data types, data type usage, converting data types, understanding SQL Server function types
04 | Grouping and Aggregating DataAggregate functions, GROUP BY and HAVING clauses, subqueries; self-contained, correlated, and EXISTS; Views, inline-table
valued functions, and derived tables
| Lunch BreakEat, drink, and recharge for the afternoon session
-
8/12/2019 Module_1 Introducing SQL Server 2012od1
6/29
Querying Microsoft SQL Server 2012 Jump Start
05 | SET Operators, Windows Functions, and GroupingSET operators, Windows functions, GROUPING sets (PIVOT, UNPIVOT, CUBE, ROLLUP)
06 | Modifying Data
INSERT, UPDATE, and DELETE statements, use of defaults, constraints, and triggers, OUTPUT
07 | Programming with T-SQLUsing T-SQL programming elements, implementing error handling, understanding and implementing transactions
08 | Retrieving SQL Server Metadata and Improving Query PerformanceQuerying system catalogs and dynamic management views, creating and executing stored procedures, improving SQL
Server query performance
-
8/12/2019 Module_1 Introducing SQL Server 2012od1
7/29
01 | Introduction to Microsoft SQL Server
2012
Brian Alderman | MCT, CEO / Founder of MicroTechPoint
Tobias Ternstrom | Microsoft SQL Server Program Manager
-
8/12/2019 Module_1 Introducing SQL Server 2012od1
8/29
Querying Microsoft SQL Server 2012 Jump Start1 | Introducing SQL Server 2 12
SQL Server types of statements; other SQL statement elements; basic SELECT statements02 | Advanced SELECT Statements
DISTINCT, Aliases, scalar functions and CASE, using JOIN and MERGE; Filtering and sorting data, NULLvalues
03 | SQL Server Data TypesIntroduce data types, data type usage, converting data types, understanding SQL Server function types
04 | Grouping and Aggregating DataAggregate functions, GROUP BY and HAVING clauses, subqueries; self-contained, correlated, and EXISTS; Views, inline-table
valued functions, and derived tables
| Lunch BreakEat, drink, and recharge for the afternoon session
-
8/12/2019 Module_1 Introducing SQL Server 2012od1
9/29
-
8/12/2019 Module_1 Introducing SQL Server 2012od1
10/29
-
8/12/2019 Module_1 Introducing SQL Server 2012od1
11/29
Statements forquerying andmodifying data
SELECT, INSERT,
UPDATE, DELETE
Statements for objectdefinitions
CREATE, ALTER, DROP
Statements for securitypermissions
GRANT, REVOKE, DENY
Data Manipulation
Language (DML*)
Data Definition
Language (DDL)
Data Control
Language (DCL)
* DML with SELECT is the primary focus of this course
Categories of T-SQL statements
-
8/12/2019 Module_1 Introducing SQL Server 2012od1
12/29
Predicates and
Operators
Control of FlowFunctions
Expressions
Variables Comments
Batch Separators
T-SQL language elements
-
8/12/2019 Module_1 Introducing SQL Server 2012od1
13/29
Elements: Predicates and Operators:
Predicates IN, BETWEEN, LIKEComparison Operators =, >, =, , !1
ORDERBYSalesPersonID,OrderYear;
Applying the logical order of operationsto writing SELECT statements
USEAdventureWorks2012;
SELECTSalesPersonID,YEAR(OrderDate)ASOrderYearFROMSales.SalesOrderHeader
WHERECustomerID = 29974
GROUPBYSalesPersonID,YEAR(OrderDate)
HAVINGCOUNT(*)>1
ORDERBYSalesPersonID,OrderYear;
-
8/12/2019 Module_1 Introducing SQL Server 2012od1
22/29
-
8/12/2019 Module_1 Introducing SQL Server 2012od1
23/29
Clause Expression
SELECT FROM WHERE GROUP BY
ORDER BY
-
8/12/2019 Module_1 Introducing SQL Server 2012od1
24/29
SELECTCustomerID,StoreID
FROMSales.Customer;
Keyword Expression
SELECT FROM
-
8/12/2019 Module_1 Introducing SQL Server 2012od1
25/29
SELECTunitprice,OrderQty,(unitprice *OrderQty)
FROMsales.salesorderdetail;
Operator Description
+ Add or concatenate
- Subtract
* Multiply
/ Divide% Modulo
-
8/12/2019 Module_1 Introducing SQL Server 2012od1
26/29
-
8/12/2019 Module_1 Introducing SQL Server 2012od1
27/29
-
8/12/2019 Module_1 Introducing SQL Server 2012od1
28/29
-
8/12/2019 Module_1 Introducing SQL Server 2012od1
29/29
2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other product names are or may be registered trademarks and/or trademarks in
the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because
Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information
provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, I MPLIED OR STATUTORY, AS TO THE I NFORMATION IN THIS PRESENTATION.