This document provides an introduction to a course on Transact-SQL (T-SQL) taught by Graeme Malcolm from Microsoft and Geoff Allix from Content Master. The course covers topics such as querying tables, joins, functions, and error handling. It will use online video, labs, and the AdventureWorksLT sample database hosted on Azure SQL Database. The document outlines the course instructors, topics, expectations, lab environment, and resources for further learning SQL Server and certification.
These are the slides from a presentation given to the San Diego Salesforce Developer Group on September 16, 2014.
The presentation highlights why coding standards and design patterns are important parts of creating a scalable, maintainable Salesforce Enterprise Org. A series of specific implementation and architecture recommendations are outlined. Finally, models for process and governance are provided to help the viewer take steps to bring about change in their Org.
pl/sql online Training|sql online Training | iTeknowledgeMasood Khan
This Course is designed by iTeknowledge.com experts to provide concrete and indepth knowledge of sql and pl/sql.100%practical and instructor led live training.
ETL Testing Training | ETL Testing Training In BangaloreVyshnavi Reddy
Tek Classes is one of the best etl testing training institute in bangalore.ETL Testing Training is designed for beginners to advanced Professionals. The course includes the following topics – Introduction to ETL Testing, OLTP vs. OLAP, Introduction to RDBMS, Database Testing Vs Data Warehouse Testing, Data Warehouse Workflow and Case Study, Data Checks using SQL and Scope of BI testing.
http://tekclasses.com/course/etl-testing-training/
These are the slides from a presentation given to the San Diego Salesforce Developer Group on September 16, 2014.
The presentation highlights why coding standards and design patterns are important parts of creating a scalable, maintainable Salesforce Enterprise Org. A series of specific implementation and architecture recommendations are outlined. Finally, models for process and governance are provided to help the viewer take steps to bring about change in their Org.
pl/sql online Training|sql online Training | iTeknowledgeMasood Khan
This Course is designed by iTeknowledge.com experts to provide concrete and indepth knowledge of sql and pl/sql.100%practical and instructor led live training.
ETL Testing Training | ETL Testing Training In BangaloreVyshnavi Reddy
Tek Classes is one of the best etl testing training institute in bangalore.ETL Testing Training is designed for beginners to advanced Professionals. The course includes the following topics – Introduction to ETL Testing, OLTP vs. OLAP, Introduction to RDBMS, Database Testing Vs Data Warehouse Testing, Data Warehouse Workflow and Case Study, Data Checks using SQL and Scope of BI testing.
http://tekclasses.com/course/etl-testing-training/
Introduction to the Standard Query Language (SQL) to access data in relational databases. More information can be found at https://www.spiraltrain.nl/course-sql-fundamentals/?lang=en
Test labs 2016. Тестирование data warehouse Sasha Soleev
1. Введение.
2. Основные понятия и принципы работы DWH.
3. Тестирование DWH. С чего начать?
4. SQL(DDL, DML, DCL) и их использование в тестировании.
5. Tips and tricks.
6. QA.
Автор: Юрий Слива
Presenter manual oracle D2K (specially for summer interns)XPERT INFOTECH
XPERT INFOTECH imparts qualitative training in .NET, ASP.NET, PHP, PHP++, JAVA, J2EE, ORACLE DBA, ORALE D2K, RIA, SEO, WEB DEVELOPMENT, MOBILE APPLICATIONS DEVELOPMENT, ANDROID and other latest technologies. The training is designed for the BCA/MCA/B.E./B-Tech students who want to speed up their technical skills and proficiencies into real time development environment.
Introduction to Azure Data Lake and U-SQL for SQL users (SQL Saturday 635)Michael Rys
Data Lakes have become a new tool in building modern data warehouse architectures. In this presentation we will introduce Microsoft's Azure Data Lake offering and its new big data processing language called U-SQL that makes Big Data Processing easy by combining the declarativity of SQL with the extensibility of C#. We will give you an initial introduction to U-SQL by explaining why we introduced U-SQL and showing with an example of how to analyze some tweet data with U-SQL and its extensibility capabilities and take you on an introductory tour of U-SQL that is geared towards existing SQL users.
slides for SQL Saturday 635, Vancouver BC, Aug 2017
Efficient working with Databases in LabVIEW - Sam Sharp (MediaMongrels Ltd) -...MediaMongrels Ltd
Sam Sharp's presentation from GDevCon#2 on Efficient Working with Databases in LabVIEW.
This presentation discusses some best practice hints & tips for working with databases in LabVIEW and uses Yii's ActiveRecord implementation as an example of how we can work more efficiently with databases in LabVIEW.
Introduction to the Standard Query Language (SQL) to access data in relational databases. More information can be found at https://www.spiraltrain.nl/course-sql-fundamentals/?lang=en
Test labs 2016. Тестирование data warehouse Sasha Soleev
1. Введение.
2. Основные понятия и принципы работы DWH.
3. Тестирование DWH. С чего начать?
4. SQL(DDL, DML, DCL) и их использование в тестировании.
5. Tips and tricks.
6. QA.
Автор: Юрий Слива
Presenter manual oracle D2K (specially for summer interns)XPERT INFOTECH
XPERT INFOTECH imparts qualitative training in .NET, ASP.NET, PHP, PHP++, JAVA, J2EE, ORACLE DBA, ORALE D2K, RIA, SEO, WEB DEVELOPMENT, MOBILE APPLICATIONS DEVELOPMENT, ANDROID and other latest technologies. The training is designed for the BCA/MCA/B.E./B-Tech students who want to speed up their technical skills and proficiencies into real time development environment.
Introduction to Azure Data Lake and U-SQL for SQL users (SQL Saturday 635)Michael Rys
Data Lakes have become a new tool in building modern data warehouse architectures. In this presentation we will introduce Microsoft's Azure Data Lake offering and its new big data processing language called U-SQL that makes Big Data Processing easy by combining the declarativity of SQL with the extensibility of C#. We will give you an initial introduction to U-SQL by explaining why we introduced U-SQL and showing with an example of how to analyze some tweet data with U-SQL and its extensibility capabilities and take you on an introductory tour of U-SQL that is geared towards existing SQL users.
slides for SQL Saturday 635, Vancouver BC, Aug 2017
Efficient working with Databases in LabVIEW - Sam Sharp (MediaMongrels Ltd) -...MediaMongrels Ltd
Sam Sharp's presentation from GDevCon#2 on Efficient Working with Databases in LabVIEW.
This presentation discusses some best practice hints & tips for working with databases in LabVIEW and uses Yii's ActiveRecord implementation as an example of how we can work more efficiently with databases in LabVIEW.
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...pchutichetpong
M Capital Group (“MCG”) expects to see demand and the changing evolution of supply, facilitated through institutional investment rotation out of offices and into work from home (“WFH”), while the ever-expanding need for data storage as global internet usage expands, with experts predicting 5.3 billion users by 2023. These market factors will be underpinned by technological changes, such as progressing cloud services and edge sites, allowing the industry to see strong expected annual growth of 13% over the next 4 years.
Whilst competitive headwinds remain, represented through the recent second bankruptcy filing of Sungard, which blames “COVID-19 and other macroeconomic trends including delayed customer spending decisions, insourcing and reductions in IT spending, energy inflation and reduction in demand for certain services”, the industry has seen key adjustments, where MCG believes that engineering cost management and technological innovation will be paramount to success.
MCG reports that the more favorable market conditions expected over the next few years, helped by the winding down of pandemic restrictions and a hybrid working environment will be driving market momentum forward. The continuous injection of capital by alternative investment firms, as well as the growing infrastructural investment from cloud service providers and social media companies, whose revenues are expected to grow over 3.6x larger by value in 2026, will likely help propel center provision and innovation. These factors paint a promising picture for the industry players that offset rising input costs and adapt to new technologies.
According to M Capital Group: “Specifically, the long-term cost-saving opportunities available from the rise of remote managing will likely aid value growth for the industry. Through margin optimization and further availability of capital for reinvestment, strong players will maintain their competitive foothold, while weaker players exit the market to balance supply and demand.”
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Subhajit Sahu
Abstract — Levelwise PageRank is an alternative method of PageRank computation which decomposes the input graph into a directed acyclic block-graph of strongly connected components, and processes them in topological order, one level at a time. This enables calculation for ranks in a distributed fashion without per-iteration communication, unlike the standard method where all vertices are processed in each iteration. It however comes with a precondition of the absence of dead ends in the input graph. Here, the native non-distributed performance of Levelwise PageRank was compared against Monolithic PageRank on a CPU as well as a GPU. To ensure a fair comparison, Monolithic PageRank was also performed on a graph where vertices were split by components. Results indicate that Levelwise PageRank is about as fast as Monolithic PageRank on the CPU, but quite a bit slower on the GPU. Slowdown on the GPU is likely caused by a large submission of small workloads, and expected to be non-issue when the computation is performed on massive graphs.
Explore our comprehensive data analysis project presentation on predicting product ad campaign performance. Learn how data-driven insights can optimize your marketing strategies and enhance campaign effectiveness. Perfect for professionals and students looking to understand the power of data analysis in advertising. for more details visit: https://bostoninstituteofanalytics.org/data-science-and-artificial-intelligence/
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Querying_with_T-SQL_-_01.pptx
1. Graeme Malcolm | Senior Content Developer, Microsoft
Geoff Allix | Principal Technologist, Content Master
2. Meet Your Instructors
Graeme Malcolm | @graeme_malcolm
– Senior content developer at Microsoft
– Consultant, trainer, and author since SQL Server 4.2
Geoff Allix | @GeoffAllix
– Principal Technologist at Content Master
– SQL Server specialist consultant, author, and trainer
3. Course Topics
Querying with Transact-SQL
01 | Introduction to Transact-SQL 07 | Using Table Expressions
02 | Querying Tables with SELECT 08 | Grouping Sets and Pivoting Data
03 | Querying Multiple Tables with Joins 09 | Modifying Data
04 | Using Set Operators 10 | Programming with Transact-SQL
05 | Using Functions and Aggregating Data 11 | Error Handling and Transactions
06 | Using Subqueries and APPLY
4. Setting Expectations
• Target Audience
– Aspiring database professionals
– Application developers
– Anyone preparing for SQL Server certification exams
• Course Materials
– Online video presentations
– Downloadable labs
• Suggested Approach
– Complete each module and lab in turn
– Engage with fellow students at Born To Learn
5. Course Lab Environment
• Labs are based on the AdventureWorksLT sample database in
Azure SQL Database
– Setup instructions are in the Getting Started guide
• There is a lab for each module, consisting of:
– Challenges based on the techniques discussed in the module
– References to relevant documentation
– Suggested solution scripts
7. SQL Server Training and Certification
• Microsoft Virtual Academy
– www.microsoftvirtualacademy.com
• Microsoft Official Curriculum
– www.microsoft.com/learning
• Microsoft Press
– www.microsoftpressstore.com
• Microsoft Certified Professional Program
– www.microsoft.com/learning
• Born to Learn
– borntolearn.mslearn.net
8. 01 | Introduction to Transact-SQL
Graeme Malcolm | Senior Content Developer, Microsoft
Geoff Allix | Principal Technologist, Content Master
9. • What is Transact-SQL?
• Relational Databases
• Schemas and Object Names
• SQL Statement Types
• The SELECT Statement
• Working with Data Types
• Working with NULLs
Module Overview
10. What is Transact-SQL?
• Structured Query Language (SQL)
– Developed by IBM in 1970s
– Adopted as a standard by ANSI and ISO standards bodies
– Widely used in industry
• Microsoft’s implementation is Transact-SQL
– Referred to as T-SQL
– Query language for SQL Server and Azure SQL Database
• SQL is declarative, not procedural
– Describe what you want, don’t specify steps
11. SalesOrderDetail
OrderID LineItemNo ProductID Quantity
1 1 3 1
2 1 2 5
2 2 3 1
3 1 1 1
Relational Databases
• Entities are represented as relations (tables), in which their
attributes are represented as domains (columns)
• Most relational databases are normalized, with relationships
defined between tables through primary and foreign keys
Customer
CustomerID FirstName LastName
1 Dan Drayton
2 Aisha Witt
3 Rosie Reeves
Product
ProductID Name ListPrice
1 Widget 2.99
2 Gizmo 1.79
3 Thingybob 3.49
SalesOrderHeader
OrderID OrderDate CustomerID
1 1/1/2015 1
2 1/1/2015 3
3 1/2/2015 1
12. Schemas and Object Names
• Schemas are namespaces for database objects
• Fully-qualified names:
[server_name.][database_name.][schema_name.]object_name
• Within database context, best practice is to include schema
name:
schema_name.object_name
Sales Production
Order
Customer
Product
Order
Sales.Order
Sales.Customer
Production.Product
Production.Order
13. SQL Statement Types
Data Manipulation Language (DML) Data Definition Language (DDL) Data Control Language (DCL)
Statements for querying and
modifying data:
• SELECT
• INSERT
• UPDATE
• DELETE
Statements for defining
database objects:
• CREATE
• ALTER
• DROP
Statements for assigning
security permissions:
• GRANT
• REVOKE
• DENY
Focus of this course
14. The SELECT Statement
Element Expression Role
SELECT <select list> Defines which columns to return
FROM <table source> Defines table(s) to query
WHERE <search condition> Filters rows using a predicate
GROUP BY <group by list> Arranges rows by groups
HAVING <search condition> Filters groups using a predicate
ORDER BY <order by list> Sorts the output
5
1
2
3
4
6
SELECT OrderDate, COUNT(OrderID)
FROM Sales.SalesOrder
WHERE Status = 'Shipped'
GROUP BY OrderDate
HAVING COUNT(OrderID) > 1
ORDER BY OrderDate DESC;
15. Basic SELECT Query Examples
• All columns
• Specific columns
• Expressions and Aliases
SELECT * FROM Production.Product;
SELECT Name, ListPrice
FROM Production.Product;
SELECT Name AS Product, ListPrice * 0.9 AS SalePrice
FROM Production.Product;
17. Working with Data Types
Transact-SQL Data Types
Exact Numeric Approximate Numeric Character Date/Time Binary Other
tinyint float char date binary cursor
smallint real varchar time varbinary hierarchyid
int text datetime image sql_variant
bigint nchar datetime2 table
bit nvarchar smalldatetime timestamp
decimal/numeric ntext datetimeoffset uniqueidentifier
numeric xml
money geography
smallmoney geometry
18. Working with Data Types
Data Type Conversion
• Implicit Conversion
– Compatible data types can be automatically converted
• Explicit Conversion
– Requires an explicit conversion function
• CAST / TRY_CAST
• CONVERT / TRY_CONVERT
• PARSE / TRY_PARSE
• STR
20. Working with NULLs
NULL Values
• NULL represents a missing or unknown value
• ANSI behaviour for NULL values:
– The result of any expression containing a NULL value is NULL
• 2 + NULL = NULL
• ‘MyString: ‘ + NULL = NULL
– Equality comparisons always return false for NULL values
• NULL = NULL returns false
• NULL IS NULL returns true
21. Working with NULLs
NULL Functions
• ISNULL(column/variable, value)
– Returns value if the column or variable is NULL
• NULLIF(column/variable, value)
– Returns NULL if the column or variable is value
• COALESCE (column/variable1, column/variable2,…)
– Returns the value of the first non-NULL column or variable in the list
23. • What is Transact-SQL?
• Relational Databases
• Schemas and Object Names
• SQL Statement Types
• The SELECT Statement
• Working with Data Types
• Working with NULLs
• Lab: Introduction to Transact-SQL
Introduction to Transact-SQL