0% found this document useful (0 votes)
62 views

Introduction To SQL Class 1

Uploaded by

vnnamith
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views

Introduction To SQL Class 1

Uploaded by

vnnamith
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 21

Introduction to SQL

From the very beginning

INTEL CONFIDENTIAL, FOR INTERNAL USE ONLY


What is SQL?

SQL (Structured Query Language) is a database programming language.

SQLPathFinder is a Windows application developed within Intel to query and combine


data from Intel’s databases.

http://sqlpathfinder.ch.intel.com/

INTEL CONFIDENTIAL , FOR INTERNAL USE ONLY


How to build a Query
To begin, let’s build a query.

Let’s pull SPC results, select 1270+ to get current data

INTEL CONFIDENTIAL , FOR INTERNAL USE ONLY


Building a Query

SQLPathFinder is set up that the parameters expected to be the most useful are bold.

It can be useful to begin with these and test that your query works before editing down to exactly what you
want.
Right click on SPC# Data and select Add Bold Columns.

INTEL CONFIDENTIAL , FOR INTERNAL USE ONLY


Building an SQL query can be though of as similar to
Building a Query looking through a filing cabinet.

You won’t find anything without


opening a drawer, as in SQL you
cannot pull data without filtering
by a gold key

The silver keys are like tabs,


these will speed up your search
but aren’t completely necessary

INTEL CONFIDENTIAL , FOR INTERNAL USE ONLY


Let’s filter the query
Some queries have suggested filters that are already added for you. Keep these.

To add further filters, right click on the parameter you want to filter by. In this case, SPC entity and SPC date.

Click on the value box on your


filter parameter and a pop up box
will appear.

For the moment, let’s keep things


very basic. One tool and one
day’s worth of data.

INTEL CONFIDENTIAL , FOR INTERNAL USE ONLY


Run your query

Hit the lightening bolt to run your query. This query has returned details about our SPC charts so we know our
query works, now we just need to go back to our parameters and decide what to pull.

INTEL CONFIDENTIAL , FOR INTERNAL USE ONLY


We’re looking for SPC Data

Right click on SPC Chart Data and Add Bold Columns. Take note of the pop-ups, these are suggested filters.
Close these for now.

INTEL CONFIDENTIAL , FOR INTERNAL USE ONLY


Run your query again.

This time, as we are pulling a lot of parameters, lets open in excel for easier viewing

INTEL CONFIDENTIAL , FOR INTERNAL USE ONLY


Stop and make sense of your data
If you do not stop and review what you have pulled as you are building a query, you will drown in masses of
nonsensical data.
Why is there so much data?

Our SPC charts have full module


monitor charts and individual tool
charts, we don’t need to pull both.

Do I want thickness measurement or just ER?

0 INTEL CONFIDENTIAL , FOR INTERNAL USE ONLY


So let’s filter some more

We want to filter by SPC Chart category to remove the multiple chart


data.

This time we don’t want an exact match filter. We want everything


following the letters EQP (to give us only the individual tool monitor
chart values)

1 INTEL CONFIDENTIAL , FOR INTERNAL USE ONLY


Tidy up your Columns

Compare your excel sheet to your Column list and delete anything you don’t think is useful.

Option also to just not show some data columns

2 INTEL CONFIDENTIAL , FOR INTERNAL USE ONLY


Run your Query again

Now we should have the latest valid SPC chart points. Option now to hide the SPC Chart Category that we
have confirmed our filtering has worked.

We can tidy up our data pull further by Pivoting our Data.

3 INTEL CONFIDENTIAL , FOR INTERNAL USE ONLY


Pivoting Data – transform data row into columns
To pivot data you just need to select what parameter you’d like to become a column, in this case we want the
parameter name. The SPC value should be listed under them so this is selected as value, you must also tell SQL what
kind of number this is. Select Max.

4 INTEL CONFIDENTIAL , FOR INTERNAL USE ONLY


Run your Query

We’ve pulled all the data we wanted.

You can set how many decimal places you want shown to tidy up further

This would be nicer if all the SPC data could be on the one row

5 INTEL CONFIDENTIAL , FOR INTERNAL USE ONLY


Let make a computed expression

Computed expressions can be complicated.

A simple one is to concatenate / stick together two strings.

Always select your parameter names from the Available


Columns.

6 INTEL CONFIDENTIAL , FOR INTERNAL USE ONLY


Run your Query

Now we can change our Pivot.

Try this for yourself now.

7 INTEL CONFIDENTIAL , FOR INTERNAL USE ONLY


Complete further tidy up

Review your query.

How much can you hide?

Now edit the query to pull a full CEID instead of a single tool.

8 INTEL CONFIDENTIAL , FOR INTERNAL USE ONLY


Review Query

Query now gives me two SPC results, the last passing and the last failing (within the last 24 hours)

I only want the most recent data, so hide the InControl Flag.

9 INTEL CONFIDENTIAL , FOR INTERNAL USE ONLY


Homework

• Build your own query to pull lot history.

Hint: WIP Data comes from MARS 3, use WIP_Lot_History

Optional extra:
Select the Prompt option when filtering for lot numbers is an
easy way to setup a script to look for a lot number each time
it is pulled

0 INTEL CONFIDENTIAL , FOR INTERNAL USE ONLY


Optional extras

Review the training material on the SQL website.

http://sqlpathfinder.ch.intel.com/

The Self Paced Learning, Training Tutorials & Training Exercises contain a huge
amount of resources to further practice SQL.

1 INTEL CONFIDENTIAL , FOR INTERNAL USE ONLY

You might also like