SlideShare a Scribd company logo
1 of 24
I WANT ONE
OF THESE
FROM ONE
OF THEM!
Databases!!!
Kim Schmidt, Gina Johnston, Lynn Langit
August 2008 - Irvine, CA
Recap & Resources
Retrieving only the data we need
Customizing a virtual table (view)
Let me introduce you to a database!
What, why, and how
Agenda
What is a database?
Databases take the stress out of finding information!
Why do we need them?
An Excel Spreadsheet is a “flat file”, meaning it has a bunch of information over & over again, with no way
to customize what you see or avoiding duplicate information.
How are they used?
A relational database is a
single database spread
across multiple tables.
Think of a database as a
file cabinet and each
drawer of the file cabinet
as a table within the
database
Even though a database looks like this when you
see one in real life….
Please allow me to introduce
you to a DATABASE!!!
REALITY CHECK!
…this is a database without its “makeup”!
Double click on the desktop icon “Sql Server
Management Studio Express”. It will look
something like this
Once Management Studio opens, you’ll see a
“Connect to Server” dialog box…..accept the
default settings & simply press the “Connect”
button.
Now you will see Microsoft SQL Server
Management Studio, which is the software
from which you create databases!
Keep opening the + boxes until you see the
database SQLEXPRESS, then find the
“Boyfriend” database!
Don’t be afraid by what you saw on the previous slide,
because I totally make sense! So let’s get beyond my bad
hair day & bloated appearance, & get to know the “real” me!
Activity #1: Introducing
Databases
Walkthrough & Explanations
The previous slide showed the database design (tables
& columns), now we will see the actual data contained
in rows
What is a database?
What 2 objects primarily make up a databases’
design (what kind of data it will contain)?
What contains the actual data?
What program did we use to work with databases?
What we just learned:
How to get the exact data you want to see
wherever you want to see it
• “SELECT * FROM Boyfriends = T-SQL (Language).
You can ask for very specific information this way
• Because of the relationships between the tables, you
can get information from multiple tables using 1
question (query)
• Writing T-SQL statements QUERY the database
tables (ask them questions)
• If you wanted to ask the same question many times,
you can create a “View”, which just saves your
question so you don’t have to type it again. The next
time you run the View, you get that same question
answered WITH UPDATED DATA!
Activity #2: Running a Query to
Retrieve Specific Data , & Activity
#3: Customizing a View
Return to SQLEXPRESS, & in the same query window
but on a blank line, type “SELECT * FROM
WhoDatedWho WHERE GirlName = ‘Paris’ “ , then
again press F5 to run the query
Now, to create a View:
In the left column where the database
objects are listed, scroll way down past the
last table “WhoDatedWho” until you see a
folder entitled “Views”. Right click, then
select “New View”.
In the “Add Table” dialogue box, select
“WhoDatedWho”, click “Add”, then
click “Close”
You now have access to the “WhoDatedWho” table so you can
select columns from it to make your View.
Click the “GirlName” column, then finish the query so that it says
“SELECT GirlName FROM dbo.WhoDatedWho WHERE
(GirlName = ‘Paris’)
Click the Menu Item “File”, then click
“SavexxxxxxView#”. You will then be prompted to
choose a name for the View. I named mine
“HowManyMenHaveDatedParisHilton”, but you can
name it whatever you please!
You now have created a VIEW!
You are now a
coding hero!For YOU!!!!!!
What is it called when you ask a database for data?
Can you pick very specific data that you want returned?
What is the name of a saved question that you can create
if you expect to need to see that same data often?
What does a baby database call his father?
What we just learned:
Why would I want to be a
Database Developer?
• Of all the types of
programmers there are,
database programmers make
the most money!
• That means more trips to
the mall!
• More vacations…
How would I know if
I’d like database
programming?
• If you like things
organized, you will
LOVE database
programming!
• If you like details,
you’ll LOVE
database
programming!
Resources for further database learning:
1. http://codeplex.com/SqlServerSamples
• Microsoft SQL Server Community & Samples
2. http://www.microsoft.com/express/
• Site to download free editions of software, including SQLEXPRESS
3. http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
• SQL Server Books Online
4. http://msdn.microsoft.com/en-us/library/ms169620.aspx
• SQL Tutorials
5. http://msdn.microsoft.com/en-us/library/ms143221.aspx
• Downloading Northwind & Pubs Sample Databases
6. http://msdn.microsoft.com/en-us/library/ms166016.aspx
• Getting SQL Server Assistance
Kim Schmidt – k.i.m@1ocmcad.net
Gina Johnston – gina@taadaa.com
Lynn Langit – http://blogs.msdn.com/SoCalDevGal
Our contact information

More Related Content

Viewers also liked

Managing High Availability with Low Cost
Managing High Availability with Low CostManaging High Availability with Low Cost
Managing High Availability with Low CostDataLeader.io
 
10 неща, които учителите не искат да знаете
10 неща, които учителите не искат да знаете10 неща, които учителите не искат да знаете
10 неща, които учителите не искат да знаетеCanko Balkanski
 
Published last letters of the wife of hitler
Published last letters of the wife of hitlerPublished last letters of the wife of hitler
Published last letters of the wife of hitlerCanko Balkanski
 
Deaf people will talk to gsm and each other in sign language
Deaf people will talk to gsm and each other in sign languageDeaf people will talk to gsm and each other in sign language
Deaf people will talk to gsm and each other in sign languageCanko Balkanski
 
Kim Schmidt's Resume
Kim Schmidt's ResumeKim Schmidt's Resume
Kim Schmidt's ResumeDataLeader.io
 
Complexity Management Literacy Meeting - Presentazione di Marinella De Simone...
Complexity Management Literacy Meeting - Presentazione di Marinella De Simone...Complexity Management Literacy Meeting - Presentazione di Marinella De Simone...
Complexity Management Literacy Meeting - Presentazione di Marinella De Simone...Complexity Institute
 

Viewers also liked (7)

Managing High Availability with Low Cost
Managing High Availability with Low CostManaging High Availability with Low Cost
Managing High Availability with Low Cost
 
10 неща, които учителите не искат да знаете
10 неща, които учителите не искат да знаете10 неща, които учителите не искат да знаете
10 неща, които учителите не искат да знаете
 
Published last letters of the wife of hitler
Published last letters of the wife of hitlerPublished last letters of the wife of hitler
Published last letters of the wife of hitler
 
Deaf people will talk to gsm and each other in sign language
Deaf people will talk to gsm and each other in sign languageDeaf people will talk to gsm and each other in sign language
Deaf people will talk to gsm and each other in sign language
 
Voynata na taralezhite
Voynata na taralezhiteVoynata na taralezhite
Voynata na taralezhite
 
Kim Schmidt's Resume
Kim Schmidt's ResumeKim Schmidt's Resume
Kim Schmidt's Resume
 
Complexity Management Literacy Meeting - Presentazione di Marinella De Simone...
Complexity Management Literacy Meeting - Presentazione di Marinella De Simone...Complexity Management Literacy Meeting - Presentazione di Marinella De Simone...
Complexity Management Literacy Meeting - Presentazione di Marinella De Simone...
 

Similar to Microsoft DigiGirlz, Teaching Teens About Databases (Trick!)

1 Digi Girlz So Cal Databases Kims Final
1 Digi Girlz So Cal Databases Kims Final1 Digi Girlz So Cal Databases Kims Final
1 Digi Girlz So Cal Databases Kims Finalllangit
 
DigiGirlz_SoCal_Databases
DigiGirlz_SoCal_DatabasesDigiGirlz_SoCal_Databases
DigiGirlz_SoCal_Databasesllangit
 
Database and Access Power Point
Database and Access Power PointDatabase and Access Power Point
Database and Access Power PointAyee_Its_Bailey
 
Baileybatts bailey battsdatabasepowerpoint8
Baileybatts bailey battsdatabasepowerpoint8Baileybatts bailey battsdatabasepowerpoint8
Baileybatts bailey battsdatabasepowerpoint8Ayee_Its_Bailey
 
Database and Access Power Point
Database and Access Power PointDatabase and Access Power Point
Database and Access Power PointAyee_Its_Bailey
 
Database and Access Power Point
Database and Access Power PointDatabase and Access Power Point
Database and Access Power PointAyee_Its_Bailey
 
Cleaning and sorting data
Cleaning and sorting dataCleaning and sorting data
Cleaning and sorting dataNina Sandlin
 
PATTERNS07 - Data Representation in C#
PATTERNS07 - Data Representation in C#PATTERNS07 - Data Representation in C#
PATTERNS07 - Data Representation in C#Michael Heron
 
SQL Basic and conceptual Explained with Examples,Graphs, pictures etc
SQL Basic and conceptual Explained with Examples,Graphs, pictures etc SQL Basic and conceptual Explained with Examples,Graphs, pictures etc
SQL Basic and conceptual Explained with Examples,Graphs, pictures etc maheshpharale
 
Style Intelligence Evaluation Documentation
Style Intelligence Evaluation DocumentationStyle Intelligence Evaluation Documentation
Style Intelligence Evaluation DocumentationArleneWatson
 
MicrosoftAccessHandout.doc
MicrosoftAccessHandout.docMicrosoftAccessHandout.doc
MicrosoftAccessHandout.docCom2K22Class
 
ppt on open office.org
ppt on open office.orgppt on open office.org
ppt on open office.orgDeepansh Goel
 
IS L03 - Database Management
IS L03 - Database ManagementIS L03 - Database Management
IS L03 - Database ManagementJan Wong
 
Ms access tutorial
Ms access tutorialMs access tutorial
Ms access tutorialminga48
 
Database Programming
Database ProgrammingDatabase Programming
Database ProgrammingHenry Osborne
 

Similar to Microsoft DigiGirlz, Teaching Teens About Databases (Trick!) (20)

1 Digi Girlz So Cal Databases Kims Final
1 Digi Girlz So Cal Databases Kims Final1 Digi Girlz So Cal Databases Kims Final
1 Digi Girlz So Cal Databases Kims Final
 
DigiGirlz_SoCal_Databases
DigiGirlz_SoCal_DatabasesDigiGirlz_SoCal_Databases
DigiGirlz_SoCal_Databases
 
Database and Access Power Point
Database and Access Power PointDatabase and Access Power Point
Database and Access Power Point
 
Baileybatts bailey battsdatabasepowerpoint8
Baileybatts bailey battsdatabasepowerpoint8Baileybatts bailey battsdatabasepowerpoint8
Baileybatts bailey battsdatabasepowerpoint8
 
Database and Access Power Point
Database and Access Power PointDatabase and Access Power Point
Database and Access Power Point
 
Database and Access Power Point
Database and Access Power PointDatabase and Access Power Point
Database and Access Power Point
 
Net database
Net databaseNet database
Net database
 
Cleaning and sorting data
Cleaning and sorting dataCleaning and sorting data
Cleaning and sorting data
 
PATTERNS07 - Data Representation in C#
PATTERNS07 - Data Representation in C#PATTERNS07 - Data Representation in C#
PATTERNS07 - Data Representation in C#
 
SQL Basic and conceptual Explained with Examples,Graphs, pictures etc
SQL Basic and conceptual Explained with Examples,Graphs, pictures etc SQL Basic and conceptual Explained with Examples,Graphs, pictures etc
SQL Basic and conceptual Explained with Examples,Graphs, pictures etc
 
Style Intelligence Evaluation Documentation
Style Intelligence Evaluation DocumentationStyle Intelligence Evaluation Documentation
Style Intelligence Evaluation Documentation
 
MicrosoftAccessHandout.doc
MicrosoftAccessHandout.docMicrosoftAccessHandout.doc
MicrosoftAccessHandout.doc
 
ppt on open office.org
ppt on open office.orgppt on open office.org
ppt on open office.org
 
IS L03 - Database Management
IS L03 - Database ManagementIS L03 - Database Management
IS L03 - Database Management
 
Access tutorial2
Access tutorial2Access tutorial2
Access tutorial2
 
Ms access
Ms accessMs access
Ms access
 
MySQL with PHP
MySQL with PHPMySQL with PHP
MySQL with PHP
 
Ms access tutorial
Ms access tutorialMs access tutorial
Ms access tutorial
 
Database Project
Database ProjectDatabase Project
Database Project
 
Database Programming
Database ProgrammingDatabase Programming
Database Programming
 

More from DataLeader.io

An Introduction to Amazon Aurora Cloud-native Relational Database
An Introduction to Amazon Aurora Cloud-native Relational DatabaseAn Introduction to Amazon Aurora Cloud-native Relational Database
An Introduction to Amazon Aurora Cloud-native Relational DatabaseDataLeader.io
 
Amazon Aurora Cloud-native Relational Database, Section 2.0
Amazon Aurora Cloud-native Relational Database, Section 2.0Amazon Aurora Cloud-native Relational Database, Section 2.0
Amazon Aurora Cloud-native Relational Database, Section 2.0DataLeader.io
 
Amazon Aurora Relational Database Built for the AWS Cloud, Version 1 Series
Amazon Aurora Relational Database Built for the AWS Cloud, Version 1 SeriesAmazon Aurora Relational Database Built for the AWS Cloud, Version 1 Series
Amazon Aurora Relational Database Built for the AWS Cloud, Version 1 SeriesDataLeader.io
 
The Zen of Silverlight
The Zen of SilverlightThe Zen of Silverlight
The Zen of SilverlightDataLeader.io
 
The Fundamentals of HTML5
The Fundamentals of HTML5The Fundamentals of HTML5
The Fundamentals of HTML5DataLeader.io
 
How to Build Composite Applications with PRISM
How to Build Composite Applications with PRISMHow to Build Composite Applications with PRISM
How to Build Composite Applications with PRISMDataLeader.io
 
Microsoft Kinect & the Microsoft MIX11 Game Preview
Microsoft Kinect & the Microsoft MIX11 Game PreviewMicrosoft Kinect & the Microsoft MIX11 Game Preview
Microsoft Kinect & the Microsoft MIX11 Game PreviewDataLeader.io
 
A Microsoft Silverlight User Group Starter Kit Made Available for Everyone to...
A Microsoft Silverlight User Group Starter Kit Made Available for Everyone to...A Microsoft Silverlight User Group Starter Kit Made Available for Everyone to...
A Microsoft Silverlight User Group Starter Kit Made Available for Everyone to...DataLeader.io
 
Building Applications with the Microsoft Kinect SDK
Building Applications with the Microsoft Kinect SDKBuilding Applications with the Microsoft Kinect SDK
Building Applications with the Microsoft Kinect SDKDataLeader.io
 

More from DataLeader.io (9)

An Introduction to Amazon Aurora Cloud-native Relational Database
An Introduction to Amazon Aurora Cloud-native Relational DatabaseAn Introduction to Amazon Aurora Cloud-native Relational Database
An Introduction to Amazon Aurora Cloud-native Relational Database
 
Amazon Aurora Cloud-native Relational Database, Section 2.0
Amazon Aurora Cloud-native Relational Database, Section 2.0Amazon Aurora Cloud-native Relational Database, Section 2.0
Amazon Aurora Cloud-native Relational Database, Section 2.0
 
Amazon Aurora Relational Database Built for the AWS Cloud, Version 1 Series
Amazon Aurora Relational Database Built for the AWS Cloud, Version 1 SeriesAmazon Aurora Relational Database Built for the AWS Cloud, Version 1 Series
Amazon Aurora Relational Database Built for the AWS Cloud, Version 1 Series
 
The Zen of Silverlight
The Zen of SilverlightThe Zen of Silverlight
The Zen of Silverlight
 
The Fundamentals of HTML5
The Fundamentals of HTML5The Fundamentals of HTML5
The Fundamentals of HTML5
 
How to Build Composite Applications with PRISM
How to Build Composite Applications with PRISMHow to Build Composite Applications with PRISM
How to Build Composite Applications with PRISM
 
Microsoft Kinect & the Microsoft MIX11 Game Preview
Microsoft Kinect & the Microsoft MIX11 Game PreviewMicrosoft Kinect & the Microsoft MIX11 Game Preview
Microsoft Kinect & the Microsoft MIX11 Game Preview
 
A Microsoft Silverlight User Group Starter Kit Made Available for Everyone to...
A Microsoft Silverlight User Group Starter Kit Made Available for Everyone to...A Microsoft Silverlight User Group Starter Kit Made Available for Everyone to...
A Microsoft Silverlight User Group Starter Kit Made Available for Everyone to...
 
Building Applications with the Microsoft Kinect SDK
Building Applications with the Microsoft Kinect SDKBuilding Applications with the Microsoft Kinect SDK
Building Applications with the Microsoft Kinect SDK
 

Recently uploaded

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
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 

Recently uploaded (20)

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 

Microsoft DigiGirlz, Teaching Teens About Databases (Trick!)

  • 1. I WANT ONE OF THESE FROM ONE OF THEM!
  • 2. Databases!!! Kim Schmidt, Gina Johnston, Lynn Langit August 2008 - Irvine, CA
  • 3. Recap & Resources Retrieving only the data we need Customizing a virtual table (view) Let me introduce you to a database! What, why, and how Agenda
  • 4. What is a database? Databases take the stress out of finding information!
  • 5. Why do we need them? An Excel Spreadsheet is a “flat file”, meaning it has a bunch of information over & over again, with no way to customize what you see or avoiding duplicate information.
  • 6. How are they used? A relational database is a single database spread across multiple tables. Think of a database as a file cabinet and each drawer of the file cabinet as a table within the database
  • 7. Even though a database looks like this when you see one in real life…. Please allow me to introduce you to a DATABASE!!!
  • 8. REALITY CHECK! …this is a database without its “makeup”!
  • 9. Double click on the desktop icon “Sql Server Management Studio Express”. It will look something like this Once Management Studio opens, you’ll see a “Connect to Server” dialog box…..accept the default settings & simply press the “Connect” button. Now you will see Microsoft SQL Server Management Studio, which is the software from which you create databases! Keep opening the + boxes until you see the database SQLEXPRESS, then find the “Boyfriend” database! Don’t be afraid by what you saw on the previous slide, because I totally make sense! So let’s get beyond my bad hair day & bloated appearance, & get to know the “real” me! Activity #1: Introducing Databases
  • 11. The previous slide showed the database design (tables & columns), now we will see the actual data contained in rows
  • 12.
  • 13. What is a database? What 2 objects primarily make up a databases’ design (what kind of data it will contain)? What contains the actual data? What program did we use to work with databases? What we just learned:
  • 14. How to get the exact data you want to see wherever you want to see it • “SELECT * FROM Boyfriends = T-SQL (Language). You can ask for very specific information this way • Because of the relationships between the tables, you can get information from multiple tables using 1 question (query) • Writing T-SQL statements QUERY the database tables (ask them questions) • If you wanted to ask the same question many times, you can create a “View”, which just saves your question so you don’t have to type it again. The next time you run the View, you get that same question answered WITH UPDATED DATA!
  • 15. Activity #2: Running a Query to Retrieve Specific Data , & Activity #3: Customizing a View Return to SQLEXPRESS, & in the same query window but on a blank line, type “SELECT * FROM WhoDatedWho WHERE GirlName = ‘Paris’ “ , then again press F5 to run the query
  • 16.
  • 17. Now, to create a View: In the left column where the database objects are listed, scroll way down past the last table “WhoDatedWho” until you see a folder entitled “Views”. Right click, then select “New View”. In the “Add Table” dialogue box, select “WhoDatedWho”, click “Add”, then click “Close”
  • 18. You now have access to the “WhoDatedWho” table so you can select columns from it to make your View. Click the “GirlName” column, then finish the query so that it says “SELECT GirlName FROM dbo.WhoDatedWho WHERE (GirlName = ‘Paris’)
  • 19. Click the Menu Item “File”, then click “SavexxxxxxView#”. You will then be prompted to choose a name for the View. I named mine “HowManyMenHaveDatedParisHilton”, but you can name it whatever you please!
  • 20. You now have created a VIEW! You are now a coding hero!For YOU!!!!!!
  • 21. What is it called when you ask a database for data? Can you pick very specific data that you want returned? What is the name of a saved question that you can create if you expect to need to see that same data often? What does a baby database call his father? What we just learned:
  • 22. Why would I want to be a Database Developer? • Of all the types of programmers there are, database programmers make the most money! • That means more trips to the mall! • More vacations… How would I know if I’d like database programming? • If you like things organized, you will LOVE database programming! • If you like details, you’ll LOVE database programming!
  • 23. Resources for further database learning: 1. http://codeplex.com/SqlServerSamples • Microsoft SQL Server Community & Samples 2. http://www.microsoft.com/express/ • Site to download free editions of software, including SQLEXPRESS 3. http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx • SQL Server Books Online 4. http://msdn.microsoft.com/en-us/library/ms169620.aspx • SQL Tutorials 5. http://msdn.microsoft.com/en-us/library/ms143221.aspx • Downloading Northwind & Pubs Sample Databases 6. http://msdn.microsoft.com/en-us/library/ms166016.aspx • Getting SQL Server Assistance
  • 24. Kim Schmidt – k.i.m@1ocmcad.net Gina Johnston – gina@taadaa.com Lynn Langit – http://blogs.msdn.com/SoCalDevGal Our contact information

Editor's Notes

  1. HI, MY NAME IS KIM SCHMIDT & I AM A MICROSOFT CERTIFIED APPLICATION DEVELOPER. YOU CAN ASK ME ANY QUESTIONS YOU’D LIKE TO KNOW ABOUT ME TOMORROW EITHER DURING THE COLLEGE PREP SESSION OR THE JOB SHADOWING SESSION. LOOKING AT THE SCREEN, WHAT DO YOU THINK THIS CLASS IS ABOUT? DATABASES!!! __________________________________________________________________________________________________________________________________________________________________________________ FIRST ROW: CHAD MICHEAL MURRAY “One Tree Hill, high school football star” LL COOL J “Singer, engaged to Beyonce” DAVID BECKHAM “Soccer Phemon, married to Posh Spice” JOE JONAS “The Jonas Brothers, singers” BRAD PITT “Actor, part of duo Bradgelina” SECOND ROW: JOHNNY DEPP “Actor…..” VIN DIESEL “Actor, XXX Movies” (not X-rated, movies entitled “Triple X”) MATTHEW CcCONAUGHEY “Actor” JAKE GYLLENHAAL “Actor, ‘Brokeback Mountain’” NICK JONAS “The Jonas Brothers, singers” DENZEL WASHINGTON “Actor” THIRD ROW: ZACH EFFRON “High School Musical” ANDY GARCIA “Oceans ‘whatever number’, Actor” P DIDDY “Singer” HOMER SIMPSON “TV & Movie Star” JOSHUA “Winner of ‘So You Can Dance’ LEONARDO DICAPRIO “Actor, Titanic & more” MARC ANTHONY “Singer, married to JLo”
  2. Here, you’re looking at a photo of a person dressed as Microsoft SQL Server Girl! If you haven’t noticed, (wherever she is mounted), is a real-sized Source Force Superhero, SQL Server Gal! These action heroes are Developer Superheroes who fight software problems just as normal Superheroes fight the bad guys! What I LOVE ABOUT SQL SERVER GAL IS SHE IS FEMALE!!! Now, when you leave this class today, you might not quite be a Database Superhero, but you will be empowered with the knowledge of what databases are, what they do & affect in everyday life, & realize that our world wouldn’t be the same without them. __________________________________________________________________________________________________________________________________________________
  3. On the screen, you’ll see the topics we’re going to cover in this session: What is a database, why we need them, & how to use them Seeing a database as they really exist behind all the nice, pretty displays of the data Writing a simple T_SQL statement to see only what we want to see from anywhere Seeing a “real life” database on a website “in action” And if we have time, we’ll create a question that asks for the same information all the time, called a “View”
  4. WHAT IS A DATABASE? A database takes the stress out of finding out information! How? Well, let’s look at a comparison.
  5. WHY DO WE NEED THEM? This slide shows an Excel Spreadsheet, that contains a “bunch of information over & over again”…….why couldn’t we just store our information in one of these? The information is laid out in vertical COLUMNS & horizontal ROWS. COLUMN TITLES define WHAT TOPICS can be held in the COLUMNS. Each ROW contains the information for ONE ENTITY…described later ___________________________________________________________________________________________________________________________________________ ?????SHOW EXCEL SPREADSHEET TO SHOW HOW FLAT IT IS, & HOW DIFFICULT IT IS TO FIND DATA, & IF YOU HAD ANOTHER SPREADSHEET, HOW COULD THE DATA BE CONNECTED? (Sorry, Gina, no time to create new spreadsheet with a bunch of tables, plus I’d have to research how to do that)…hopefully this will have somewhat of the effect you wanted…. ____________________________________________________________________________________________________________________________________________ Imagine having a few of these spreadsheets. How could you get the information from 2 columns in one spreadsheet combined with 2 columns in another spreadsheet? You couldn’t.
  6. A relational database, however, contains many separate things like spreadsheets, called “TABLES”, ALL CONTAINED WITHIN ONE BIG CONTAINER, CALLED THE “DATABASE”. Explain cabinet/drawer analogy, & how they are all connected together by being contained within the same thing This makes connecting the information easier ULTIMATELY THE INFORMATION IN A DATABASE IS USED TO PRESENT YOU WITH INFORMATION IN AN EYE-PLEASING WAY __________________________________________________________________________________________________________________________________
  7. Here you are looking at a lot of information coming from a database….I bet you never realized that! So even though this is what a database looks like when you see it’s information displayed so pretty… __________________________________________________________________________________________________
  8. This is a database without its makeup… Now, this isn’t the actual database, but a “DATABASE DIAGRAM”, which we are now ready to look at ___________________________________________________________________________________________________________ If the room has laptops, follow the steps in the following slides, if not, switch to SQL Server & demo _______________________________________________________________________________________________________________
  9. In our first activity, we are going to get familiar with the database environment SQL EXPRESS Double click on the desktop icon “SQL Management Studio Express”, which will look something like the green icon on the screen When you see the “Connect to Server” box, just press “Connect” You are now in the environment where you build & test databases! Keep clicking the “+” signs until you see the database SQL EXPRESS Find the “Boyfriend” database within it IS EVERYBODY THERE? ______________________________________________________________________________________________
  10. DO WE HAVE TO WALK THEM THROUGH ATTACHING THE DATABASE???
  11. We are now going to continue to click on the “+” signs until the left side looks like the slide without the color, & the right slide looks like the slide because you have “dbo.TheDatingGame” selected under the DATABASE DIAGRAM folder ______________________________________________________________________________________________________________________ Is everyone there? Let’s talk about what we’re looking at. ______________________________________________________________________________________________________________________ Now, at the very top of my slide, you will see the database “Boyfriends” highlighted in yellow (the “file cabinet” we saw before) Notice it has a “cylinder” next to its name….databases are always represented as cylinders, because they “store information” The other 3 yellow-highlighted items on the screen are the “TABLES” within the BOYFRIENDS DATABASE (the “file cabinet drawers” we saw before) On my screen highlighted in green, are the COLUMNS of the table (= vertical information ). COLUMNS define what kind of information can be put into them On my screen highlighted in blue, are the INDIVIDUAL COLUMN NAMES OF THE TABLE. Notice some of the individual column descriptions contain the word NULL…(we will explain that further on) On my screen highlighted in orange, are the things that make up the DATABASE DIAGRAM that you see on the right side of my screen Highlighted in pink in the diagram are the RELATIONSHIPS that exist between the tables that allow you to get any amount of information out of each table & display that in another table together.
  12. Now, let’s have some fun & see what is in the tables we saw in the previous screen! Make sure you have the BOYFRIEND database selected in the DATABASE DROPDOWN LIST Click on the New Query Button, within the pink rectangle. A “query” is asking the database for information. This opens the New Query Window Type in “Select * from Boyfriends”, ( * = All ) then press the F5 button on your computer to see what we get __________________________________________________________________________________________ Have you all done this? ________________________________________________________________________________________
  13. What you are looking at is the Boyfriend table returning all it’s content for you to see Before, we were looking at the DATABASE, IT’S TABLES, & THE COLUMNS (Database Design) Here we are looking at the ROWS, (=horizontal rows) Each ROW represents 1 “ENTITY” of the table, & in the case of a BOYFRIEND TABLE, we are looking at all the boyfriend rows in that table Notice the word NULL that I mentioned before….that means you do not HAVE to enter anything for those columns. If a column is not marked with NULL, you DO HAVE to put information there
  14. Answers: A database stores data, restricts your data to the types of columns, and provides an easy way to retrieve data from it. Tables & columns Rows SqlExpress, a free version of a SQL Server Database Engine.
  15. T-SQL is the “language” you use when using a database, just as “LOL” or “BRB” is a “language” used when instant messaging Relationships enable you to prevent duplicate information from being entered, and links the tables together through “keys” so that one table can access the data in another table If you wanted to ask the same question many times, you can create a “VIEW” = a saved question that you can ask at any time in the future & will give you UPDATED ANSWERS each time
  16. In our next activity, we will ask a database table for very specific information from a table Then if time permits, in the third activity, we will create a View ____________________________________________________________________________________ Back in the New Query window, on a new line, type “Select * from WhoDatedWho where GirlName = ‘Paris’, then press F5 to run the query ________________________________________________________________________________________ Everybody there? ________________________________________________________________________________________ Next slide close up
  17. The information returned only contains the rows in the WhoDatedWho table where the value of the column of GirlName was Paris ___________________________________________________________________________________________________________ DO WE HAVE TIME TO CREATE THE VIEW? (Must have about 15-20 minutes to finish it all, if so. If not, they can follow the exercise on the slides on their usb drives ______________________________________________________________________________________________________________________ If NO TIME, SKIP TO SLIDE # 21 (the coding hero) OR SLIDE # 22 (the recap questions), DEPENDING ON TIME
  18. In the left column, scroll way down past the last table “WhoDatedWho” until you see a folder named “Views”. Right-click, “New View” In the window that appears, click on the “WhoDatedWho” table, then click “Add”, then click “Close”
  19. Click the checkbox next to the column name “GirlName” In the bottom area, finish the query to read “Select GirlName from dbo.WhoDatedWho where (GirlName=‘Paris’)
  20. Click the menu item “File”, then “SaveXXX\XXX\View#” In the box that appears, choose a name for your View, then click OK
  21. You now have a saved question, called a view, that you can ask the database anytime, & you will get UPDATED information for the question returned to you!
  22. Query You can get as specific as you can ever imagine! View “Data” 
  23. Now, why would you want to be a database developer? Of all the types of programmers there are, database programmers make the most money! That means more trips to the mall! More vacations, & much more! How would I know if I’d like database programming? If you like things organized, you will LOVE database programming! If you like details, you will LOVE database programming!
  24. These are wonderful links that I suggest you investigate to further learn about the wonders of databases!
  25. Our contact information – don’t be shy, we like to talk to you!