I WANT ONE OF THESEFROM ONE OF THEM!
Databases!!!Kim Schmidt, Gina Johnston, Lynn LangitAugust 2008  - Irvine, CA
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
Please allow me to introduce you to a DATABASE!!!  Even though a database looks like this when you see one in real life….
…this is a databasewithout its“makeup”!REALITYCHECK!
Activity #1: Introducing DatabasesDon’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!
?
Walkthrough & Explanations
The previous slide showed the database design (tables & columns), now we will see the actual data contained in rows
1 Digi Girlz So Cal Databases Kims Final
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 ViewReturn 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
1 Digi Girlz So Cal Databases Kims Final
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 “Savexxx\xxx\View#”. 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 we just learned:

More Related Content

PPT
DigiGirlz_SoCal_Databases
PPT
Working with spreadsheets using google sheets
PPTX
Tutorial of microsoft access 2003
PDF
Using database in android
PPTX
Hacked - EVERYONE INTRUSTED
PPT
SQL Server 2008 Data Mining
PPT
Data Mining for Developers
PPTX
3. Sql Services 概览
DigiGirlz_SoCal_Databases
Working with spreadsheets using google sheets
Tutorial of microsoft access 2003
Using database in android
Hacked - EVERYONE INTRUSTED
SQL Server 2008 Data Mining
Data Mining for Developers
3. Sql Services 概览

Similar to 1 Digi Girlz So Cal Databases Kims Final (20)

PPTX
Microsoft DigiGirlz, Teaching Teens About Databases (Trick!)
PPTX
Introduction to database with ms access.hetvii
PPTX
Introduction to database with ms access(DBMS)
PPT
W 8 introduction to database
DOC
MicrosoftAccessHandout.doc
PPTX
dbms ms access basics and introduction to ms access
PDF
Databasell
PPTX
Database and Access Power Point
PPTX
Database and Access Power Point
PPTX
Database and Access Power Point
PPTX
Baileybatts bailey battsdatabasepowerpoint8
PPTX
8.) ms-access_ppt-CA-course-itt-programme.pptx
PPTX
Introduction to database & sql
PPTX
LEARNING OBJECTIVES education relational.pptx
PPTX
PPTX
CSC 103 Databases Overview
PDF
Sql a practical introduction
PDF
Sql a practical introduction
PPTX
Presentation DBMS (1)
PPTX
Chapter 4 Chapter Relational DB - Copy.pptx
Microsoft DigiGirlz, Teaching Teens About Databases (Trick!)
Introduction to database with ms access.hetvii
Introduction to database with ms access(DBMS)
W 8 introduction to database
MicrosoftAccessHandout.doc
dbms ms access basics and introduction to ms access
Databasell
Database and Access Power Point
Database and Access Power Point
Database and Access Power Point
Baileybatts bailey battsdatabasepowerpoint8
8.) ms-access_ppt-CA-course-itt-programme.pptx
Introduction to database & sql
LEARNING OBJECTIVES education relational.pptx
CSC 103 Databases Overview
Sql a practical introduction
Sql a practical introduction
Presentation DBMS (1)
Chapter 4 Chapter Relational DB - Copy.pptx
Ad

More from llangit (20)

PPTX
3 App Compat Win7
PPTX
2 Win7 For Devs Ux Touch Sensors
PPTX
1 Win7 For Devs Fund Search
PPTX
3 Kodu
PPTX
5 Digigirlz Xna
PPTX
4 Making Movies
PPTX
2 Digi Girlz Small Basic
PPT
SQL Server 2008 Data Mining
PPT
SQL Server 2008 for Developers
PPT
SQL Server 2008 for .NET Developers
PPT
Tech Days09 Sqldev
PPT
Windows Azure for .NET Developers
PPT
Introduction To Sql Services
PPT
Making of GirlGamer
PPT
Kodu
PPT
DigiGirlzSmallBasic
PPT
Bi2008 Plus Cloud Preview
PPT
The Role Of An Architect
PPT
SQL Server 2008 for Developers
PPT
Parallel Programming and F#
3 App Compat Win7
2 Win7 For Devs Ux Touch Sensors
1 Win7 For Devs Fund Search
3 Kodu
5 Digigirlz Xna
4 Making Movies
2 Digi Girlz Small Basic
SQL Server 2008 Data Mining
SQL Server 2008 for Developers
SQL Server 2008 for .NET Developers
Tech Days09 Sqldev
Windows Azure for .NET Developers
Introduction To Sql Services
Making of GirlGamer
Kodu
DigiGirlzSmallBasic
Bi2008 Plus Cloud Preview
The Role Of An Architect
SQL Server 2008 for Developers
Parallel Programming and F#
Ad

Recently uploaded (20)

PPTX
Free Photo Galleries Website Where Art Meets Accessibility.pptx
PPTX
1756067323746-Coca Cola-bcfc-deckxszx.pptx
PPTX
Food Processing Engineering.pptx ucuuvvu
PPTX
原版复刻西班牙卢森堡大学毕业证(Luxembourg毕业证书)成绩单官方文凭
PPTX
Sex and the City from a gender perspective
PDF
Crimson animation project storyboard art
PDF
Between Fiction and Fire, Enzo Zelocchi’s Cinema Emerges as a Testament to Wh...
PDF
Biography of Matthew Carluccio
PPTX
Cristiano Ronaldo.pptx. The greatest footballer of all time
PDF
Sgt. Pepper's Lonely Hearts Club Band (105997).pdf
PPTX
Classroom Rules.pptx4444444444444444444444444444444444444444
PPTX
德国学位证(HTWG毕业证书)康斯坦茨应用技术大学毕业证书如何办理
PPTX
Badminton Sports Center Infographics by Slidesgo.pptx
PPTX
Introduction to Biological Safety Levels & Cabinets and levels.pptx
PPTX
ppasue.pptxppasue.pptxppasue.pptxppasue.pptx
DOCX
Aluminum Geodesic Dome Roof for Effluent Sludge Storage Contains Waste and Co...
PDF
Ordinary_Member_2022-23 of the coating indus
PPTX
Land_Soil_Water_Natural_Vegetation_Class8.pptx
PPTX
Image Bazaar by Fotolobby A Space for Every Visual Need Project.pptx
PDF
Jake Seal Black Hangar Shares 5 Future Trends Shaping the World of Cinema
Free Photo Galleries Website Where Art Meets Accessibility.pptx
1756067323746-Coca Cola-bcfc-deckxszx.pptx
Food Processing Engineering.pptx ucuuvvu
原版复刻西班牙卢森堡大学毕业证(Luxembourg毕业证书)成绩单官方文凭
Sex and the City from a gender perspective
Crimson animation project storyboard art
Between Fiction and Fire, Enzo Zelocchi’s Cinema Emerges as a Testament to Wh...
Biography of Matthew Carluccio
Cristiano Ronaldo.pptx. The greatest footballer of all time
Sgt. Pepper's Lonely Hearts Club Band (105997).pdf
Classroom Rules.pptx4444444444444444444444444444444444444444
德国学位证(HTWG毕业证书)康斯坦茨应用技术大学毕业证书如何办理
Badminton Sports Center Infographics by Slidesgo.pptx
Introduction to Biological Safety Levels & Cabinets and levels.pptx
ppasue.pptxppasue.pptxppasue.pptxppasue.pptx
Aluminum Geodesic Dome Roof for Effluent Sludge Storage Contains Waste and Co...
Ordinary_Member_2022-23 of the coating indus
Land_Soil_Water_Natural_Vegetation_Class8.pptx
Image Bazaar by Fotolobby A Space for Every Visual Need Project.pptx
Jake Seal Black Hangar Shares 5 Future Trends Shaping the World of Cinema

1 Digi Girlz So Cal Databases Kims Final

  • 1. I WANT ONE OF THESEFROM ONE OF THEM!
  • 2. Databases!!!Kim Schmidt, Gina Johnston, Lynn LangitAugust 2008 - Irvine, CA
  • 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. Please allow me to introduce you to a DATABASE!!! Even though a database looks like this when you see one in real life….
  • 8. …this is a databasewithout its“makeup”!REALITYCHECK!
  • 9. Activity #1: Introducing DatabasesDon’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!
  • 10. ?
  • 12. The previous slide showed the database design (tables & columns), now we will see the actual data contained in rows
  • 14. What we just learned:
  • 15. 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
  • 16. Because of the relationships between the tables, you can get information from multiple tables using 1 question (query)
  • 17. Writing T-SQL statements QUERY the database tables (ask them questions)
  • 18. 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 ViewReturn 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
  • 20. 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”
  • 21. 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’)
  • 22. Click the Menu Item “File”, then click “Savexxx\xxx\View#”. You will then be prompted to choose a name for the View. I named mine “HowManyMenHaveDatedParisHilton”, but you can name it whatever you please!
  • 23. You now have created a VIEW! You are now a coding hero!For YOU!!!!!!
  • 24. What we just learned:
  • 25. Why would I want to be a Database Developer?How would I know if I’d like database programming? Of all the types of programmers there are, database programmers make the most money!
  • 26. That means more trips to the mall!
  • 28. If you like things organized, you will LOVE database programming!
  • 29. If you like details, you’ll LOVE database programming!Resources for further database learning:http://codeplex.com/SqlServerSamplesMicrosoft SQL Server Community & Sampleshttp://www.microsoft.com/express/Site to download free editions of software, including SQLEXPRESShttp://msdn.microsoft.com/en-us/sqlserver/bb895970.aspxSQL Server Books Onlinehttp://msdn.microsoft.com/en-us/library/ms169620.aspxSQL Tutorialshttp://msdn.microsoft.com/en-us/library/ms143221.aspxDownloading Northwind & Pubs Sample Databaseshttp://msdn.microsoft.com/en-us/library/ms166016.aspxGetting SQL Server AssistanceOur contact informationKim Schmidt – [email protected] Johnston – [email protected] Langit – http://blogs.msdn.com/SoCalDevGal

Editor's Notes

  • #2: 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”
  • #3: 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.__________________________________________________________________________________________________________________________________________________
  • #4: 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”
  • #5: WHAT IS A DATABASE?A database takes the stress out of finding out information! How? Well, let’s look at a comparison.
  • #6: 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.
  • #7: 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__________________________________________________________________________________________________________________________________
  • #8: 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…__________________________________________________________________________________________________
  • #9: 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 _______________________________________________________________________________________________________________
  • #10: 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?______________________________________________________________________________________________
  • #11: DO WE HAVE TO WALK THEM THROUGH ATTACHING THE DATABASE???
  • #12: 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.
  • #13: 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 LISTClick 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?________________________________________________________________________________________
  • #14: 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
  • #15: Answers:A database stores data, restricts your data to the types of columns, and provides an easy way to retrieve data from it.Tables & columnsRowsSqlExpress, a free version of a SQL Server Database Engine.
  • #16: T-SQL is the “language” you use when using a database, just as “LOL” or “BRB” is a “language” used when instant messagingRelationships 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 tableIf 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
  • #17: 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
  • #18: 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
  • #19: 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”
  • #20: Click the checkboxnext to the column name “GirlName” In the bottom area, finish the query to read “Select GirlName from dbo.WhoDatedWho where (GirlName=‘Paris’)
  • #21: Click the menu item “File”, then “SaveXXXXXXView#” In the box that appears, choose a name for your View, then click OK
  • #22: 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!
  • #23: QueryYou can get as specific as you can ever imagine!View“Data” 
  • #24: 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!
  • #25: These are wonderful links that I suggest you investigate to further learn about the wonders of databases!
  • #26: Our contact information – don’t be shy, we like to talk to you!