SlideShare a Scribd company logo
1 of 11
SQL Database Terms
A beginners Guide
What is SQL
SQL is a relational database language that is used pretty much everywhere.
Amazon, Target, even mom and pop stores with a simple point of sale system use
some version of a relational database.
There are multiple types
• Oracle
• Microsoft SQL
• MySQL
• And others
Some simple
terms to know
• Database
• Table
• Field
• Unique ID
• Queries
• Select
• Joins
How to Access
Your database
There are different programs
to access an SQL database,
the queries I’ll show were
written using Microsoft SQL
Server Management Studio.
The purpose of this slideshow
is to get you comfortable with
the terms you will encounter
when working with an SQL
database.
Database
The database is where all the data is stored. If you are using a Point of Sale system
that keeps track of items and customers, most likely you are using an SQL database.
Your point of sale system executes queries that run in the background every time
you do a search and hit enter.
Tables
All of your data is stored in multiple tables. For example, you may have a table that
contains all your customer information, and another that stores product info, your
pricing information may be stored in a separate table
Fields
Within the tables you will have fields for every bit of information you need. A
product may have a description field, a SKU field, a UPC field, and a category field.
These fields are used by SQL to deliver the information you need when searching,
and can be used to search for products.
Unique ID
In order to make finding things easy within a database certain items are assigned
unique IDs, usually a sequential number, that will be the used across multiple tables
to signify that product.
For example, you might have your item details in one table and pricing in another.
So a Craftsman Hammer may have a unique ID of 20 and in the pricing table the
unique ID would be used in place of a description. This helps because you may have
multiple products with a similar description, but different UPCs and SKUs. By using
the unique ID you can ensure the correct data is linked to the correct item.
Queries
The way you retrieve information from a database is via queries. Your point of sale
system, or user interface, may give you a limited number of ways to access this.
Think of Amazon search results. If you’re looking for Brave New World it can search
for that title or description across movies, books, posters, etc. By narrowing the
search to just books, you’ve essentially told the Amazon database to execute the
search query and to only search for instances where “book” is possibly the
category field.
This is the most common type of query and it is called a SELECT query.
Select
Queries
Select Queries pull information from specific tables and return the data
you are looking for. Using our product example we could have a table
called product_details. (the underscore is used to avoid spaces in tables)
To return all the information from that table we would write a simple
query like
Select *
From product_details
This would return every field and everything that is listed in that table.
The asterisk means “all” basically. The above command tells the
database to return all fields from the product_details table. By putting
the fields you want after the “select” command you can bring up only
those fields you need.
EX.
Select description, sku
From product_details
Joins
Joins are used to pull data from multiple tables using a single query. There are
INNER JOINS which match related records from different tables and OUTER JOINS
which include records from one or both tables that do not have corresponding
records in another table.
I use the inner join most often. In our example we have product details and pricing
separate, so if we wish to get those together we need to use a join. These queries
get a bit more complicated, but know that joins are how you bridge different tables
and merge data for output. Combining joins with advanced select statements you
can easily pull data from your database that can truly transform how you use the
data.
Conclusion
While a lot of programs that you use to input data have reporting features,
knowing how to use a program like MS SQL Server Management Studio and how to
write even basic queries can make a profound impact on not only on what
information you get out, but also what information you put it. As you become
comfortable executing select queries you can graduate to updating and deleting
data.
JOE ROBLES
BELLEVUE UNIVERSITY
MASTER OF SCIENCE, MARKETING
DR. JULIA CRONIN-GILMORE
8/16/2015

More Related Content

What's hot

Access2003
Access2003Access2003
Access2003mrh1222
 
Microsoft Access 2007: Get To Know Access
Microsoft Access 2007: Get To Know AccessMicrosoft Access 2007: Get To Know Access
Microsoft Access 2007: Get To Know Accessomoviejohn
 
Microsoft Access 2007
Microsoft Access 2007Microsoft Access 2007
Microsoft Access 2007Reshma Arun
 
Ms access Database
Ms access DatabaseMs access Database
Ms access DatabaseYasir Khan
 
Ms Access ppt
Ms Access pptMs Access ppt
Ms Access pptanuj
 
Class viii ch-2 log on to access
Class  viii ch-2 log on to accessClass  viii ch-2 log on to access
Class viii ch-2 log on to accessjessandy
 
Introduction to microsoft access
Introduction to microsoft accessIntroduction to microsoft access
Introduction to microsoft accessHardik Patel
 
Lesson Six Entering And Editing Data In Tables
Lesson Six   Entering And Editing Data In TablesLesson Six   Entering And Editing Data In Tables
Lesson Six Entering And Editing Data In Tablesguevarra_2000
 
SAP BW - Master data load via flat file
SAP BW - Master data load via flat fileSAP BW - Master data load via flat file
SAP BW - Master data load via flat fileYasmin Ashraf
 
Preview of Custom Search Admin Tools
Preview of Custom Search Admin ToolsPreview of Custom Search Admin Tools
Preview of Custom Search Admin ToolsAxiell ALM
 

What's hot (19)

Ms access 2007
Ms access 2007Ms access 2007
Ms access 2007
 
Access2003
Access2003Access2003
Access2003
 
Microsoft Access 2007: Get To Know Access
Microsoft Access 2007: Get To Know AccessMicrosoft Access 2007: Get To Know Access
Microsoft Access 2007: Get To Know Access
 
Msaccess
MsaccessMsaccess
Msaccess
 
Ms access
Ms accessMs access
Ms access
 
Microsoft Access 2007
Microsoft Access 2007Microsoft Access 2007
Microsoft Access 2007
 
Access ppt
Access ppt Access ppt
Access ppt
 
Data Validation
Data ValidationData Validation
Data Validation
 
Ms access Database
Ms access DatabaseMs access Database
Ms access Database
 
01 Microsoft Access
01 Microsoft Access01 Microsoft Access
01 Microsoft Access
 
Ms Access ppt
Ms Access pptMs Access ppt
Ms Access ppt
 
Access 2007
Access 2007Access 2007
Access 2007
 
Ms access
Ms accessMs access
Ms access
 
Ms access 2010
Ms access 2010Ms access 2010
Ms access 2010
 
Class viii ch-2 log on to access
Class  viii ch-2 log on to accessClass  viii ch-2 log on to access
Class viii ch-2 log on to access
 
Introduction to microsoft access
Introduction to microsoft accessIntroduction to microsoft access
Introduction to microsoft access
 
Lesson Six Entering And Editing Data In Tables
Lesson Six   Entering And Editing Data In TablesLesson Six   Entering And Editing Data In Tables
Lesson Six Entering And Editing Data In Tables
 
SAP BW - Master data load via flat file
SAP BW - Master data load via flat fileSAP BW - Master data load via flat file
SAP BW - Master data load via flat file
 
Preview of Custom Search Admin Tools
Preview of Custom Search Admin ToolsPreview of Custom Search Admin Tools
Preview of Custom Search Admin Tools
 

Viewers also liked

Viewers also liked (12)

12
1212
12
 
Adv 420 final presentation
Adv 420 final presentationAdv 420 final presentation
Adv 420 final presentation
 
05
0505
05
 
11
1111
11
 
Identidades Marginais
Identidades MarginaisIdentidades Marginais
Identidades Marginais
 
ใบงานที่1 แบบสำรวจและประวัติ
ใบงานที่1 แบบสำรวจและประวัติใบงานที่1 แบบสำรวจและประวัติ
ใบงานที่1 แบบสำรวจและประวัติ
 
09
0909
09
 
Michael Alexander Kirkwood Halliday
Michael Alexander Kirkwood HallidayMichael Alexander Kirkwood Halliday
Michael Alexander Kirkwood Halliday
 
OSHA PSM Regulations
OSHA PSM RegulationsOSHA PSM Regulations
OSHA PSM Regulations
 
Transmisión de potencia
Transmisión de potenciaTransmisión de potencia
Transmisión de potencia
 
_Process_Safety_Management
_Process_Safety_Management_Process_Safety_Management
_Process_Safety_Management
 
Capacita brasil recepcionista
Capacita brasil recepcionistaCapacita brasil recepcionista
Capacita brasil recepcionista
 

Similar to SQL Database Guide

10359485
1035948510359485
10359485kavumo
 
Physical elements of data
Physical elements of dataPhysical elements of data
Physical elements of dataDimara Hakim
 
BUSI 301 Book Review RubricScoreCommentsResearch 25.docx
BUSI 301 Book Review RubricScoreCommentsResearch 25.docxBUSI 301 Book Review RubricScoreCommentsResearch 25.docx
BUSI 301 Book Review RubricScoreCommentsResearch 25.docxhumphrieskalyn
 
Steps towards of sql server developer
Steps towards of sql server developerSteps towards of sql server developer
Steps towards of sql server developerAhsan Kabir
 
Access2003
Access2003Access2003
Access2003tanik363
 
Create a table access - office
Create a table   access - officeCreate a table   access - office
Create a table access - officePavan Kumar
 
Database optimization
Database optimizationDatabase optimization
Database optimizationEsraaAlattar1
 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to databaseSuleman Memon
 
FOUNDATION OF DATA SCIENCE SQL QUESTIONS
FOUNDATION OF DATA SCIENCE SQL QUESTIONSFOUNDATION OF DATA SCIENCE SQL QUESTIONS
FOUNDATION OF DATA SCIENCE SQL QUESTIONSHITIKAJAIN4
 
Microsoft excel training
Microsoft excel trainingMicrosoft excel training
Microsoft excel trainingEmilyE120
 
CS1100 Access Lab 1 Creating and Querying Database.docx
CS1100 Access Lab 1  Creating and Querying Database.docxCS1100 Access Lab 1  Creating and Querying Database.docx
CS1100 Access Lab 1 Creating and Querying Database.docxfaithxdunce63732
 
access1.ppt
access1.pptaccess1.ppt
access1.pptmayada34
 
Lesson One - Why do I need a Database
Lesson One - Why do I need a DatabaseLesson One - Why do I need a Database
Lesson One - Why do I need a Databaseguevarra_2000
 

Similar to SQL Database Guide (20)

10359485
1035948510359485
10359485
 
Physical elements of data
Physical elements of dataPhysical elements of data
Physical elements of data
 
BUSI 301 Book Review RubricScoreCommentsResearch 25.docx
BUSI 301 Book Review RubricScoreCommentsResearch 25.docxBUSI 301 Book Review RubricScoreCommentsResearch 25.docx
BUSI 301 Book Review RubricScoreCommentsResearch 25.docx
 
Fg d
Fg dFg d
Fg d
 
Database Basics
Database BasicsDatabase Basics
Database Basics
 
SQL_Part1
SQL_Part1SQL_Part1
SQL_Part1
 
Steps towards of sql server developer
Steps towards of sql server developerSteps towards of sql server developer
Steps towards of sql server developer
 
Sq lite module6
Sq lite module6Sq lite module6
Sq lite module6
 
Access2003
Access2003Access2003
Access2003
 
Create a table access - office
Create a table   access - officeCreate a table   access - office
Create a table access - office
 
Database optimization
Database optimizationDatabase optimization
Database optimization
 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to database
 
FOUNDATION OF DATA SCIENCE SQL QUESTIONS
FOUNDATION OF DATA SCIENCE SQL QUESTIONSFOUNDATION OF DATA SCIENCE SQL QUESTIONS
FOUNDATION OF DATA SCIENCE SQL QUESTIONS
 
Microsoft excel training
Microsoft excel trainingMicrosoft excel training
Microsoft excel training
 
SQL cheat sheet.pdf
SQL cheat sheet.pdfSQL cheat sheet.pdf
SQL cheat sheet.pdf
 
CS1100 Access Lab 1 Creating and Querying Database.docx
CS1100 Access Lab 1  Creating and Querying Database.docxCS1100 Access Lab 1  Creating and Querying Database.docx
CS1100 Access Lab 1 Creating and Querying Database.docx
 
access1.ppt
access1.pptaccess1.ppt
access1.ppt
 
Physical Design and Development
Physical Design and DevelopmentPhysical Design and Development
Physical Design and Development
 
Learning SQL
Learning SQLLearning SQL
Learning SQL
 
Lesson One - Why do I need a Database
Lesson One - Why do I need a DatabaseLesson One - Why do I need a Database
Lesson One - Why do I need a Database
 

Recently uploaded

[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 

Recently uploaded (20)

[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 

SQL Database Guide

  • 1. SQL Database Terms A beginners Guide
  • 2. What is SQL SQL is a relational database language that is used pretty much everywhere. Amazon, Target, even mom and pop stores with a simple point of sale system use some version of a relational database. There are multiple types • Oracle • Microsoft SQL • MySQL • And others
  • 3. Some simple terms to know • Database • Table • Field • Unique ID • Queries • Select • Joins How to Access Your database There are different programs to access an SQL database, the queries I’ll show were written using Microsoft SQL Server Management Studio. The purpose of this slideshow is to get you comfortable with the terms you will encounter when working with an SQL database.
  • 4. Database The database is where all the data is stored. If you are using a Point of Sale system that keeps track of items and customers, most likely you are using an SQL database. Your point of sale system executes queries that run in the background every time you do a search and hit enter.
  • 5. Tables All of your data is stored in multiple tables. For example, you may have a table that contains all your customer information, and another that stores product info, your pricing information may be stored in a separate table Fields Within the tables you will have fields for every bit of information you need. A product may have a description field, a SKU field, a UPC field, and a category field. These fields are used by SQL to deliver the information you need when searching, and can be used to search for products.
  • 6. Unique ID In order to make finding things easy within a database certain items are assigned unique IDs, usually a sequential number, that will be the used across multiple tables to signify that product. For example, you might have your item details in one table and pricing in another. So a Craftsman Hammer may have a unique ID of 20 and in the pricing table the unique ID would be used in place of a description. This helps because you may have multiple products with a similar description, but different UPCs and SKUs. By using the unique ID you can ensure the correct data is linked to the correct item.
  • 7. Queries The way you retrieve information from a database is via queries. Your point of sale system, or user interface, may give you a limited number of ways to access this. Think of Amazon search results. If you’re looking for Brave New World it can search for that title or description across movies, books, posters, etc. By narrowing the search to just books, you’ve essentially told the Amazon database to execute the search query and to only search for instances where “book” is possibly the category field. This is the most common type of query and it is called a SELECT query.
  • 8. Select Queries Select Queries pull information from specific tables and return the data you are looking for. Using our product example we could have a table called product_details. (the underscore is used to avoid spaces in tables) To return all the information from that table we would write a simple query like Select * From product_details This would return every field and everything that is listed in that table. The asterisk means “all” basically. The above command tells the database to return all fields from the product_details table. By putting the fields you want after the “select” command you can bring up only those fields you need. EX. Select description, sku From product_details
  • 9. Joins Joins are used to pull data from multiple tables using a single query. There are INNER JOINS which match related records from different tables and OUTER JOINS which include records from one or both tables that do not have corresponding records in another table. I use the inner join most often. In our example we have product details and pricing separate, so if we wish to get those together we need to use a join. These queries get a bit more complicated, but know that joins are how you bridge different tables and merge data for output. Combining joins with advanced select statements you can easily pull data from your database that can truly transform how you use the data.
  • 10. Conclusion While a lot of programs that you use to input data have reporting features, knowing how to use a program like MS SQL Server Management Studio and how to write even basic queries can make a profound impact on not only on what information you get out, but also what information you put it. As you become comfortable executing select queries you can graduate to updating and deleting data.
  • 11. JOE ROBLES BELLEVUE UNIVERSITY MASTER OF SCIENCE, MARKETING DR. JULIA CRONIN-GILMORE 8/16/2015