Upload
dell-world
View
98
Download
1
Embed Size (px)
Citation preview
1Dell World User Forum
UFIL521: KACE and SQL
Brooks Roberts, Learning DevelopmentMichael Klocek, Learning Development
Dell WorldUser Forum
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
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
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…
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?
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
10Dell World User Forum
SQL Basics – What is SQL?
Structured Query Language
• Used to communicate and give commands to the database.
12Dell World User Forum
SQL Basics – Table Structure
DatabaseTables serve as the building blocks of a database.
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.
15Dell World User Forum
SQL Basics – Table Structure
ID DATA1 DATA2 ID DATA1 DATA2BITS_ID BOBS_ID
BITS BOBSBITS_BOBS_JT
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.
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.
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
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
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
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.)
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