Git Product home page Git Product logo

dp-080-transact-sql's Introduction

DP-080: Querying Data with Microsoft Transact-SQL

What are we doing?

  • To support this course, we will need to make frequent updates to the course content to keep it current with the Azure services used in the course. We are publishing the lab instructions and lab files on GitHub to allow for open contributions between the course authors and MCTs to keep the content current with changes in the Azure platform.

  • We hope that this brings a sense of collaboration to the labs like we've never had before - when Azure changes and you find it first during a live delivery, go ahead and make an enhancement right in the lab source. Help your fellow MCTs.

How should I use these files relative to the released MOC files?

  • The instructor handbook and PowerPoints are still going to be your primary source for teaching the course content.

  • These files on GitHub are designed to be used in the course labs.

  • It will be recommended that for every delivery, trainers check GitHub for any changes that may have been made to support the latest Azure services.

What about changes to the student handbook?

  • We will review the student handbook on a quarterly basis and update through the normal MOC release channels as needed.

How do I contribute?

  • Any MCT can submit a pull request to the code or content in the GitHub repo, Microsoft and the course author will triage and include content and lab code changes as needed.

  • You can submit bugs, changes, improvement and ideas. Find a new Azure feature before we have? Submit a new demo!

dp-080-transact-sql's People

Contributors

adnancore avatar afelix-95 avatar alistairmatthews avatar angierudduck avatar graememalcolm avatar iankcontentmaster avatar iankensey avatar julianepadrao avatar kalendelaney avatar mihai-ac avatar philstollery avatar rcaper avatar username1001 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dp-080-transact-sql's Issues

Positive feedback on labs

Not an issue, just some feedback I'd like to go straight to the authors.

My student this week has said he really likes the challenge questions. I like them as well, they are a great part of the labs.

Thanks
Craig

Code Samples and Database

Module: 01 (or more?)

Lab/Demo: Slide 9

Task: 00

Step: 00

The SQL query is not valid for AdventureWorksLT ( the database script provided). The course notes have too many AdventureWorks queries. All examples in PowerPoint/Skillpipe, Demos, and Labs should use the AdventureWorksLT database so students and instructors can run them in what is deemed the course database.

In Mod 1 Slide 9, Current Query:
SELECT OrderDate, COUNT(OrderID) AS Orders
FROM Sales.SalesOrder
WHERE Status = 'Shipped'
GROUP BY OrderDate
HAVING COUNT(OrderID) > 1
ORDER BY OrderDate DESC;

Suggest changing to (it is basically same query just fixed table and columns names):
SELECT OrderDate, COUNT(SalesOrderID) AS Orders
FROM SalesLT.SalesOrderHeader
WHERE Status = 5
GROUP BY OrderDate
HAVING COUNT(SalesOrderID) > 1
ORDER BY OrderDate DESC;

Slide 10, uses Production.Product ( this is from AdventureWorks)
Change the table reference to SalesLT.Product for all 3 queries.

I am sure I will find more through out the course.

Parens and TOP

Lab/Demo: 2

Task: Restrict results using TOP

It is best practice to always use parens with the TOP clause.

Replace multiple instances of:

SELECT TOP 20 Name, ListPrice

With:

SELECT TOP (20) Name, ListPrice

Links:
docs.microsoft.com
SQL Prompt

Inconsistent syntax

Lab/Demo: 3a

Exercise - Query multiple tables with joins

Description of issue

I noticed AS is sometimes capitalized, while other times it isn't.

For example:

SELECT p.Name As ProductName, c.Name AS Category
FROM SalesLT.Product AS p
JOIN SalesLT.ProductCategory As c
    ON p.ProductCategoryID = c.ProductCategoryID;

I know it doesn't make a difference in regards to running the code, but should it be consistent? Is there a reason it isn't? (I'm just learning SQL, so really don't know).

Replace AdventureWorks with AdventureWorksLT

"We'll use the AdventureWorks database in this lab, so let's start by exploring it in Azure Data Studio."

I know it's a little thing, but this is bugging me. We are not using the AdventureWorks database; we are using the AdventureWorksLT database.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.