Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.



Published on


Published in: Technology
  • Be the first to comment

  • Be the first to like this


  2. 2. Databases!!!
  3. 3. Agenda
  4. 4. What is a database? Databases take the stress out of finding information!
  5. 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. 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. 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. 8. REALITY CHECK! … this is a database without its “makeup”!
  9. 9. 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
  10. 10. ?
  11. 11. Walkthrough & Explanations
  12. 12. The previous slide showed the database design (tables & columns), now we will see the actual data contained in rows
  13. 14. What we just learned:
  14. 15. How to get the exact data you want to see wherever you want to see it <ul><li>“ SELECT * FROM Boyfriends = T-SQL (Language). You can ask for very specific information this way </li></ul><ul><li>Because of the relationships between the tables , you can get information from multiple tables using 1 question (query) </li></ul><ul><li>Writing T-SQL statements QUERY the database tables (ask them questions) </li></ul><ul><li>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! </li></ul>
  15. 16. 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. 18. 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”
  17. 19. 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’)
  18. 20. 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!
  19. 21. You now have created a VIEW! You are now a coding hero! For YOU!!!!!!
  20. 22. What we just learned:
  21. 23. Why would I want to be a Database Developer? <ul><li>Of all the types of programmers there are, database programmers make the most money! </li></ul><ul><li>That means more trips to the mall! </li></ul><ul><li>More vacations… </li></ul>How would I know if I’d like database programming? <ul><li>If you like things organized, you will LOVE database programming! </li></ul><ul><li>If you like details, you’ll LOVE database programming! </li></ul>
  22. 24. Resources for further database learning: <ul><li> </li></ul><ul><ul><li>Microsoft SQL Server Community & Samples </li></ul></ul><ul><li> </li></ul><ul><ul><li>Site to download free editions of software, including SQLEXPRESS </li></ul></ul><ul><li> </li></ul><ul><ul><li>SQL Server Books Online </li></ul></ul><ul><li> </li></ul><ul><ul><li>SQL Tutorials </li></ul></ul><ul><li> </li></ul><ul><ul><li>Downloading Northwind & Pubs Sample Databases </li></ul></ul><ul><li> </li></ul><ul><ul><li>Getting SQL Server Assistance </li></ul></ul>
  23. 25. Kim Schmidt – Lynn Langit – Our contact information