Presentation is loading. Please wait.

Presentation is loading. Please wait.

SQL for Super Users Presented by: Adam Jacobson Red Three Consulting, Inc.

Similar presentations


Presentation on theme: "SQL for Super Users Presented by: Adam Jacobson Red Three Consulting, Inc."— Presentation transcript:

1 SQL for Super Users Presented by: Adam Jacobson Red Three Consulting, Inc. adam@redthree.com

2 20 second advertisement Experience: Career started on STS Retail for my family’s chain of clothing stores. (Data General - Show Me reporting tool) 12 years ERP implementation(Lawson/Oracle) Last 8 years Focused on BI and Data Integration with Microsoft Tools. Experience with GP, NAV and (a small amount) with AX. Retail was my last direct to consumer experience so not really a CRM guy. Management Consulting for IT and Finance – People, Technology, Process (and accounting)

3 Agenda For Today Why do you want to do this? What’s your background? The software we will use Terminology you will learn The SQL will review Off to the live demo How did it go?

4 Why do you want to do this? To learn how to read other queries. To modify queries built by visual tools. To write your own queries from scratch. To get a job in IT. You idolize Zubin Gidwani.

5 Poll: What’s your background? 1.Manipulated data (changed report formatting, dumped to Excel) 2.Created your own reports using “user friendly tools” to craft the query. (Crystal, Access, Excel) 3.Read the SQL that drives your reports 4.Have written some of your own SQL 5.SQL Expert – looking for ways to train my staff 6.Other

6 The Software we are going to use SQL Server- You can get a free version called express https://www.microsoft.com/en-us/server- cloud/products/sql-server-editions/sql-server- express.aspx https://www.microsoft.com/en-us/server- cloud/products/sql-server-editions/sql-server- express.aspx SQL Server Management Studio (comes with SQL Server) https://msdn.microsoft.com/en- us/library/mt238290.aspx?f=255&MSPPError=- 2147217396https://msdn.microsoft.com/en- us/library/mt238290.aspx?f=255&MSPPError=- 2147217396 Northwind Database - https://www.microsoft.com/en- us/download/details.aspx?id=23654https://www.microsoft.com/en- us/download/details.aspx?id=23654

7 Using your sample database GP – TWO NAV – Cronos AX – Contoso A basic laptop can run SQL Server fine. If queries don’t work well at the basic level, it’s most likely your mistake. (GP has been run a Surface 1. Why I’m not sure – but it has).

8 The SQL We’ll Review Basic Table and Query Adding Tables – Joins Aggregation – Summing it all up.

9 Key terms you should know after today Table Column Row Primary key Foreign key SELECT FROM JOIN/LEFT OUTER JOIN WHERE GROUP HAVING ORDER

10 Let’s run some queries Switch to SQL Scripts here

11 Back to the key terms Table Column Row Primary key Foreign key SELECT FROM JOIN/LEFT OUTER JOIN WHERE GROUP HAVING ORDER

12 Poll: Do you understand the key terms? 1.Yes 2.Somewhat 3.No 4.I got distracted

13 Hints to remember 1)Don’t select all the records. 2)Always specify columns. 3)Know the correct join to use – Build your query one table at a time. Join all columns. 4)Use table aliases meaningfully and consistently. 5)All columns must be in the group statement or handled by an aggregate function. 6)Remember the distinction between date and date time.

14 Contact Information Adam Jacobson President Red Three Consulting adam@redthree.com 917-848-7284 @r3reports www.reportsyouneed.com/blog


Download ppt "SQL for Super Users Presented by: Adam Jacobson Red Three Consulting, Inc."

Similar presentations


Ads by Google