The Basics of Querying Data from ConfigMgr

Slides:



Advertisements
Similar presentations
PHP SQL. Connection code:- mysql_connect("server", "username", "password"); Connect to the Database Server with the authorised user and password. Eg $connect.
Advertisements

Chapter (7): Advanced SQL
1Key – Report Creation with DB2. DB2 Databases Create Domain for DB2 Test Demo.
Collections Create and organize your own privet and public collections.
Session-01. Hibernate Framework ? Why we use Hibernate ?
Tutorial SQL Server and Matlab CIS 526. Build a New Database in SQL server.
EXL319. *Baseline for 80,000 user pool with 8 FEs and 1 BE Lync Server 2010 Capacity Calculator released.
SQL and Support Debugging Tool Paul Johnson and Graham O’Bray.
IST722 Data Warehousing Business Intelligence Development with SQL Server Analysis Services and Excel 2013 Michael A. Fudge, Jr.
Insert Presentation Title Heremm.dd.yy, City, ST SQL Reporting Services – Building the Report Kevin Ford Services Consaultant Accela, Inc.
Input Boundary Output Logi c Boundary Input User | OS Output Application Logic Data Transformation Data Copy Type Conversion Data Transformation.
PantherSoft Financials Queries Office of the Controller.
Lawson Business Intelligence JGI Business Intelligence Presents Lawson Business Intelligence (LBI): Overview and Implementation of Thursday, September.
SQL Server 2008 R2 for the DBA Patrick LeBlanc. Objectives  New Editions  Datacenter  Parallel Data Warehouse  Multi-server management  Utility Control.
Dashboard Creation Mapping SQL queries to Google Chart Images.
@CRMUG Technical Academy Fetch Xml Were can Fetch Xml be used Basic Fetch Xml and using advanced find to build your own Fetch Query Creating Fetch Xml.
Introduction to SQL Server JOINS © Meganadha Reddy K., Meganadha Reddy K. Technical Trainer | NetCom Learning
SQL Azure Intro and What’s New Level: Introductory to Intermediate Andy Thiru SQL/BI Developer.
Dive into the Query Optimizer Dive into the Query Optimizer: Undocumented Insight Benjamin Nevarez Blog: benjaminnevarez.com
Robin Mullinix Systems Analyst GeorgiaFIRST Financials PeopleSoft Query: The Next Step.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 4: Intermediate.
The Inner Join and Outer Joins Dec B,D,F A G C Dancing and Tennis Dancing only Tennis Only The Whole Picture.
An Architectural Review of TAKEaTEST.Net Southern California Code Camp California State University, Fullerton January 21-22, 2006 Ben Aminnia Pointer Corporation.
Intro to SQL Management Studio. Please Be Sure!! Make sure that your access is read only. If it isn’t, you have the potential to change data within your.
Programming in R SQL in R. Running SQL in R In this session I will show you how to: Run basic SQL commands within R.
(SQL - Structured Query Language)
Learningcomputer.com SQL Server 2008 – Management Studio.
Introduction to Administering a SQL Server Matthew Steve Thompson, stevethompsonmvp.wordpress.com.
ConfigMgr 2012 SQL Refresher MMS Minnesota 2014 Matthew Teegarden/Steve Thompson.
OBIEE Training – E2 (Oracle BI Presentation Server – Report, Filter, Chart, View, Dashboard Creation ) OBIEE CoE - BT TEG Telecom.
Introduction to T-SQL – Part Deux Matthew Sherry Kissinger kissinger.
The Jukebox is a.NET web application that plays streaming music files to it’s clients according to their favorites musical genres. Clients can rate the.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapter 26 By Tasha Chapman, Oregon Health Authority.
Using Structured Query Language (SQL) NCCS Applications –MS Access queries (“show SQL”) –SAS (PROC SQL) –MySQL (the new dataserver) –Visual Foxpro Other.
Jeremy Kingry, eBECS | ADVANCED SQL SERVER FOR ADMINS AND ANALYSTS.
Meeting Date: September 27, 2007 Topic: Converting DTS to SSIS by Brian Knight.
Taking Analysis Services Tabular to Enterprise Levels Stacia Varga Data Inspirations
Data Visualization with Tableau
DB Programming – Basic analysis
Reporting, SQL 2016 and ConfigMgr
SQL Server Report Builder
Treasure Trove of Data: Learn Your ConfigMgr Database's Data
6/16/2018 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
Cha Cha…Changing your ConfigMgr Reports
SQL Query Joins ASP.Net 2.0 – Visual Studio 2005
Julie Strauss Senior Program Manager Microsoft
ConfigMgr Compliance Settings - Basics of Custom CIS
In the Ocean of Big Data with Configuration Manager!
Wrangling All Your Data With Query Builder in JMP 13
Eric Hill, Software Developer, JMP
Using SQL to Prepare Data for Analysis
Brandon Lukes SSMS Tips and Tricks.
Database Continuous Integration and Deployment with Visual Studio SQL Server Data Tools in < 10 minutes Eric Kang Program Manager.
Migrating your local database to Azure SQL DB
Hidden gems of SQL Server 2016
SQL Server Report Builder
Structured Query Language
SQL Server Management Studio Tips and Tricks
Query Functions.
Reporting on a Cube with SSRS
Relations, Domain and Range
EXECUTION PLANS Quick Dive.
SQL Server 2016 Security Features
T-SQL Tips & Tricks to Make Your Life Easier!
September 12-14, 2018 Raleigh, NC.
Denis Reznik SQL Server 2017 Hidden Gems.
Trainer: Bạch Ngọc Toàn – TEDU Website:
SQL Azure to .NET Developers
Presentation Tips (This slide will not be included in the final presentation) Your audience is looking to you as an authority on the subject – don’t read.
Navigating SSMS Primer for Beginners
Presentation transcript:

The Basics of Querying Data from ConfigMgr Matthew Teegarden @TheEmptyGarden System Administrator Lifetouch Garth Jones https://www.enhansoft.com/blog/auth or/garth @GarthMJ, Chief Arcitect Enhansoft

Matthew Teegarden Garth Jones @TheEmptyGarden @GarthMJ Bad Jokes MVP, MSCE, Author Less than a year.  20+ Years Dad Jokes and 80’s Music Streaming Tech, Whiskey

Where to Start? T-SQL Tools Framework of a query Joins Strings, Integers, ??? SQL Functions!

This Session will NOT talk about: Where to find Treasured data in ConfigMgr See session “Treasure Trove of Data: Learn Your ConfigMgr Database's Data” Tools to Create Dashboards / Reports See session “Reporting, SQL 2016 and ConfigMgr” Advanced Reporting topics See session….

Where to Start? SQL Server Management Studio (SSMS) Connecting to the db Tip

Demo Title

Framework of a query Select From Where Group By Order By

Sample Query… Select LG.UserDomain0 as 'Domain', LG.UserName0 as 'Name', LG.LocalGroupName0 as 'Group name' From dbo.v_GS_Enhansoft_ESP_LocalGroup0 LG Where LG.LocalGroupName0 = 'Administrators' Order by LG.UserDomain0, LG.UserName0, LG.LocalGroupName0 Tips Format he query make it easier to read! https://www.enhansoft.com/blog/query-formatting-tools

Logical query processing

Sample Query… Select LG.UserDomain0 as 'Domain', LG.UserName0 as 'Name', LG.LocalGroupName0 as 'Group name' From dbo.v_GS_Enhansoft_ESP_LocalGroup0 LG Where LG.LocalGroupName0 = 'Administrators' Order by LG.UserDomain0, LG.UserName0, LG.LocalGroupName0

Query - Select Select LG.UserDomain0 as 'Domain', LG.UserName0 as 'Name', LG.LocalGroupName0 as 'Group name' From dbo.v_GS_Enhansoft_ESP_LocalGroup0 LG Where LG.LocalGroupName0 = 'Administrators' Order by LG.UserDomain0, LG.UserName0, LG.LocalGroupName0

Query - From Select LG.UserDomain0 as 'Domain', LG.UserName0 as 'Name', LG.LocalGroupName0 as 'Group name' From dbo.v_GS_Enhansoft_ESP_LocalGroup0 LG Where LG.LocalGroupName0 = 'Administrators' Order by LG.UserDomain0, LG.UserName0, LG.LocalGroupName0

Query - Where Select LG.UserDomain0 as 'Domain', LG.UserName0 as 'Name', LG.LocalGroupName0 as 'Group name' From dbo.v_GS_Enhansoft_ESP_LocalGroup0 LG Where LG.LocalGroupName0 = 'Administrators' Order by LG.UserDomain0, LG.UserName0, LG.LocalGroupName0

Query – Order By Select LG.UserDomain0 as 'Domain', LG.UserName0 as 'Name', LG.LocalGroupName0 as 'Group name' From dbo.v_GS_Enhansoft_ESP_LocalGroup0 LG Where LG.LocalGroupName0 = 'Administrators' Order by LG.UserDomain0, LG.UserName0, LG.LocalGroupName0

Demo Title

Joining two SQL Views Inner Join Left Outer Join Right Outer Join

Joining two SQL Views

What Color represents Inner Join? Joining two SQL Views What Color represents Inner Join? What Color represents Left Outer Join? What Color represents Right Outer Join?

Demo Title

SQL Functions! Isnull Count Sum

Query – Group by Select RU.User_Name0, count(RU.User_Name0) as 'total' From dbo.v_R_System_Valid RV right outer join dbo.v_R_User RU on RV.User_Name0 = RU.User_Name0 Group by RU.User_Name0 Order by

Demo Title