Top Banner
Dell World User Forum UFIL521: KACE and SQL Brooks Roberts, Learning Development Michael Klocek, Learning Development Dell World User Forum
35

Kace & SQL

Jul 25, 2015

Download

Software

Dell World
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Kace & SQL

1Dell World User Forum

UFIL521: KACE and SQL

Brooks Roberts, Learning DevelopmentMichael Klocek, Learning Development

Dell WorldUser Forum

Page 2: Kace & SQL

2Dell World User Forum

Presenters• Brooks Roberts

– Dell KACE Learning Development– 16 Years at Dell– 4 Years with KACE

• Michael Klocek– Dell KACE Learning Development– 11 Years at Dell– 4 Years with KACE

Page 3: Kace & SQL

3Dell World User Forum

Agenda• SQL - Why Should I Care

• SQL Table Structure

• SQL Query Structure

• Connecting the Appliance

• Exploring the Database

• Wizards

• The “Easy” Way

Page 4: Kace & SQL

4 Dell World User Forum

SQL – Why Should I Care

Page 5: Kace & SQL

5Dell World User Forum

SQL – Why Should I Care• What are some things you might use your appliance for?

• What are some things that the appliance stores in SQL?

• What are some daily administrative tasks that interface with the database?

Hint: SQL is everywhere…

Page 6: Kace & SQL

6Dell World User Forum

SQL – Why Should I CareThings that the K1000 uses SQL for:

Assets

Inventory

Labels

Reporting

Service Desk

What others can you think of?

Page 7: Kace & SQL

7Dell World User Forum

Don’t I Have Wizards For All That Stuff?

You do indeed…

Page 8: Kace & SQL

8Dell World User Forum

Don’t I Have Wizards For All That Stuff?

Then why do I care about learning a new language?

Speed

Accuracy

Efficiency

Page 9: Kace & SQL

9 Dell World User Forum

SQL Basics– What is SQL

Page 10: Kace & SQL

10Dell World User Forum

SQL Basics – What is SQL?

Structured Query Language

• Used to communicate and give commands to the database.

Page 11: Kace & SQL

11 Dell World User Forum

SQL Basics– Table Structure

Page 12: Kace & SQL

12Dell World User Forum

SQL Basics – Table Structure

DatabaseTables serve as the building blocks of a database.

Page 13: Kace & SQL

13Dell World User Forum

SQL Basics – Table Structure

TABLE1

ID DATA1 DATA2

Tables consist of columns…

and fields.

Tables will always have a Primary Key.

Other columns may or may not be a Foreign

Key.

Page 14: Kace & SQL

14Dell World User Forum

SQL Basics – Table Structure

ID DATA1 DATA2 ID DATA1 DATA2

BITS BOBS

Page 15: Kace & SQL

15Dell World User Forum

SQL Basics – Table Structure

ID DATA1 DATA2 ID DATA1 DATA2BITS_ID BOBS_ID

BITS BOBSBITS_BOBS_JT

Page 16: Kace & SQL

16 Dell World User Forum

SQL Basics– Query Structure

Page 17: Kace & SQL

17Dell World User Forum

SQL Basics – Table Structure

Group By

Having

Select

From

Where

Order By

Group By is used to condense results. This is

useful for aggregate functions like Count().

Having is used to further filter results that have been passed through a Group By

statement.

Select specifies what you want returned from the

query and the order of the columns.

From indicates what tables will be used in the gathering of your desired data.

This section includes any joins that you wish to use.

The where clause allows you to filter the data that is returned against a condition

you set.

Order by allows you to sort the results, by column, in

ascending or descending order.

Page 18: Kace & SQL

18Dell World User Forum

SQL Basics – Table Structure

Group By

Having

Select

From

Where

Order By

Let’s order them the way they should be

written.

Page 19: Kace & SQL

19Dell World User Forum

SQL Basics – Table Structure

Page 20: Kace & SQL

20 Dell World User Forum

SQL Basics– Joins

Page 21: Kace & SQL

21Dell World User Forum

SQL Basics – Joins

Not all data is stored in one table

Join groups tables together into a virtual table for the purposes of your query.

Many different kinds, but the most basic, and often the most efficient are LEFT JOIN or RIGHT JOIN

• Left join SOFTWARE on MACHINE_SOFTWARE_JT.SOFTWARE_ID = SOFTWARE.ID

Page 22: Kace & SQL

22Dell World User Forum

SQL Basics – Joins

TABLE_1 TABLE_2

1 C

2 D

3 A

4 B

A 11

B 12

C 13

D 14

5 B E 15

ID T2_ID ID DATA

LEFT JOIN

TABLE_2

ON

TABLE_1.T2_ID

= TABLE_2.ID

B 12

Page 23: Kace & SQL

23Dell World User Forum

SQL Basics – Joins

2 D

3 A A 11

D 14

TABLE_1 TABLE_2

1 C C 13

ID T2_ID ID DATA

4 B

B 125 B

B 12

TABLE_3

A 689

T 45

C 168

X 254

ID DATA

R 734

NULL NULL NULL NULL

NULL NULL NULL NULL

NULL NULL NULL NULL

Page 24: Kace & SQL

24 Dell World User Forum

Connecting to the Appliance

Page 25: Kace & SQL

25Dell World User Forum

SQL Basics – Table Structure

• Query Browser– MySQL Workbench– TOAD– Your choice

• Connector– Native (MySQL, TOAD)– ODBC (Microsoft Tools)– JDBC (Crystal, etc.)

Page 26: Kace & SQL

26Dell World User Forum

SQL Basics – Table Structure

Page 27: Kace & SQL

27Dell World User Forum

SQL Basics – Table Structure

Page 28: Kace & SQL

28Dell World User Forum

SQL Basics – Table Structure

Page 29: Kace & SQL

29Dell World User Forum

SQL Basics – Table Structure

Page 30: Kace & SQL

Dell World User Forum

Exploring the Database

Page 31: Kace & SQL

Dell World User Forum

Wizards

Page 32: Kace & SQL

Dell World User Forum

The “Easy” Way

Page 33: Kace & SQL

33 Dell World User Forum

Questions?

Page 34: Kace & SQL

34 Dell World User Forum

Thank you.

Page 35: Kace & SQL

35 Dell World User Forum

KACE Support Portal Migrating to Dell Software Support Portal• Starting in November, all KACE

Support Portal material will be migrated to the Dell Software Support Portal

• All service requests will be submitted online or by phone

• Same great content– Knowledge base articles– Video tutorials– Product documentation– JumpStart training

• Check out the Support Portal Getting Started videos