Access presentation


Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Access presentation

  1. 1. Part II: Microsoft Access With extensions to ArcGIS and Google EarthExcel Access
  2. 2. Excel and Access are very similar when it comes to running powerful queries, running sophisticated calculations, generating reports and forms, and connecting to external data.Access
  3. 3. Access is a data management system with relational data.Access Excel stores information in worksheets; Access stores data in tables for complex querying in relation to data stored in other locations.
  4. 4. Access is a data management system with relational data.- Require non-relational view of data (especially - Require relational database if data is mostly numeric) - May need to add more tables in future- Want to run calculations and statistical - Have a very large amount of data comparisons - Have a lot of data that is mostly text- Dataset is manageable in size (<=15,000 - Want to run complex queries rows) - Need to maintain connectivity to external databases Access Excel stores information in worksheets; Access stores data in tables for complex querying in relation to data stored in other locations.
  5. 5. AccessInterface
  6. 6. Create a new query Retrieve, export or connect-to data outside of Access Navigate-to and filter tables, queries, Select the view of forms, and reports your table or query (Datasheet, PivotTable, PivotChart, Design)AccessInterface
  7. 7. AccessQuery Design
  8. 8. Perform summary calculations (sum, count, average, etc.) Select fields toRun/execute display andthe query perform calculations on + set relationshipsCreate new table or edit existing Fields and calculations in resulting querytables when query runs Access You can write the query in SQL, but the Design View is a graphical Query Design user interface (GUI) that requires no knowledge of SQL language.
  9. 9. Field: Field from existing table to be queried Table: Table where selected field exists Total: When Σ Totals is selected, can perform summary calculations (min, max, avg, etc.); default is “Group By” Sort: Ascending, Descending, or not sorted Show: Field will be displayed in query result if checked Criteria: Query for that field Or: Same as “OR” BooleanAccess Lines below “or:” are the Criteria for fields other than the first. Including different Criteria on the same horizontal line is the same as the “AND” Boolean; different Criteria onQuery Design different horizontal lines is the same as the “OR” Boolean
  10. 10. 1 2Access 1. Select the Create tab 2. Select Query DesignQuery Design
  11. 11. 1 2Access In the Show Table, select AREA_FAR, buildingclass, LOCATION and USE. Double-click to add each table to theQuery Design query design.
  12. 12. Access Every table should have a unique identifier (the Primary Key, which is the BBL in our case for most You can relate to other tables by dragging one identifying field to another (BBL to BBL,Setting Relationships tables). BLDGCLASS TO BLDGCLASS).
  13. 13. 5 2 1 3 4 1. Double click each of 2. Select Σ Totals 3. Uncheck Show for 4. Under the Total dropdown, 5. Select RunAccess the fields shown above BLDGCLASS and in the select Sum for LOTAREA andQuery Design to add them to query. Criteria set it to LIKE ‘I*’ BLDGAREA and Sort the LOTAREA by Descending
  14. 14. Selecting the View returns back to the Query Design LIKE ‘I*’ selects LIKE ‘*I’ selects LIKE ‘*I*’ selectsAccess anything that anything that anything with an “I”LIKE Statement begins with “I” ends with “I” in it
  15. 15. 2 3 1 1. Back in Design View, change the 2. Save the query 3. Click RunAccess BLDGCLASS Criteria to ‘I1’ to list onlyQuery Design Hospitals, Sanitariums, Mental Institutions
  16. 16. Oftentimes there are multiple spellings for the same owner. TIP: Save a copy of theAccess Selecting one name and replacing the others with the database before makingUpdating Records correct name can be accomplished via a query. updates.
  17. 17. 1 3 2 1. Create a new query 2. Double-click OWNERNAME and in the Criteria 3. Click RunAccess (Create > Query Design) enter LIKE ‘*PRESBYTERIAN H*’ in one row;Updating Records and add the Location table LIKE ‘*PRESPYTERIAN H*’ in another
  18. 18. 46+7 5 4. Select Update table 5. After removing the *, in the 6. Click Run 7. A dialog will appearAccess Update To row type in to confirm the update.Updating Records PRESBYTERIAN HOSPITAL Click Yes
  19. 19. Access Updating the table for Columbia LIKE ‘*COLUMBIA U*’Updating Records University properties LIKE ‘*ROYAL CHARTER*’
  20. 20. LIKE ‘*S.K.I.*’Access Updating the table for Memorial Sloan- LIKE ‘*SLOAN-KETT*’Updating Records Kettering Cancer Center properties LIKE ‘*MEMORIAL HOSP*’ LIKE ‘*SKI REAL*’
  21. 21. Access Updating the table for St. Luke’s- LIKE “*ST LUKE’S/R*” LIKE ‘*ST LUKES-R*’Updating Records Roosevelt Hospital properties. LIKE ‘*LUKES H*’
  22. 22. 4 1. Create a 2. Add LOCATION, 3. Select 4. Create anAccess new query AREA_FAR, and OWNERNAME, ExpressionComplex Queries/Builder USE BLDGCLASS using Builder
  23. 23. 1 2 1. Navigate to your database and 2. Double-click on the desired ExpressionAccess select the table(s) that contain the Categories to form an expression for theComplex Queries/Builder fields for the calculation (AREA_FAR) available built floor area; set the Criteria to >0
  24. 24. AccessComplex Queries/Builder
  25. 25. Access To determine where the developable parcels are, return to Design ViewComplex Queries/Builder and add the BBL and ADDRESS
  26. 26. 13 2 Access 1. Back in Design View, 2. Enter a Table 3. Click Run to add select Make Table Name and click OK the table to the Complex Queries/Builder database
  27. 27. 1 2 2 1. Add Manhattan Tax 2. Navigate to ArcCatalog and selectAccess Lots 2011 data to a new Add OLE DB Connection underRelating to GIS ArcMap document Database Connections
  28. 28. 1 2 1. Under the Provider tab, select Microsoft 2. Click NextAccess Office 12.0 Access Database Engine OLERelating to GIS DB Provider
  29. 29. 1 2 3 1. Enter the location of the 2. Click Test Connection 3. Click OK if theAccess Access database in the Data to verify that you can connection wasRelating to GIS Source field connect to the database successful
  30. 30. Navigate to the database in ArcCatalog and add theAccess HOSP_OPP table to the document (drag and drop into theRelating to GIS Table of Contents).
  31. 31. 1 2 2. Make a copy of the Manhattan tax lots 3. Join the HOSP_OPP table to theAccess data (right click to copy, paste into Layers) copied layer on BBLRelating to GIS
  32. 32. AccessRelating to GIS
  33. 33. 2 1 3 1. Select the Layer To KML 2. Select the new layer and 3. Click OKAccess tool under ArcToolbox > designate the output file; setGIS to Google Earth Conversion Tools > To KML the output scale to 1
  34. 34. Access File > Open > navigate to the Google Earth will maintain symbologyGIS to Google Earth recently-created KMZ file and data descriptions from ArcMap
  35. 35. AccessGIS to Google Earth
  36. 36. Columbia University intent to redevelop existing parking garage Applied Sciences NYC – Cornell University and Israel Institute of TechnologyMSK to expandexisting hospital Hunter College to move to E76th Street DSNY garage site; to relocate garage on E25th Street Access GIS to Google Earth