1 access for non-experts link tables find fields criteria join tables find missing comment lines...

Download 1 Access for non-experts Link tables Find fields Criteria Join tables Find missing comment lines Understand relational databases (Wow!)

Post on 12-Jan-2016

214 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

  • *Access for non-expertsLink tablesFind fieldsCriteriaJoin tablesFind missing comment linesUnderstand relational databases (Wow!)

  • *Link tablesCreate new mdbNew, Link TableFiles of Type = ODBCMachine Data SourceGblware32

    Access 2007 External Data, More, ODBC...

  • *Link tablesLogin as GLOBAL, WARECheck Save Password (maybe)Select the tables

  • *Link Tables

  • *Which tables?InvoiceSegments or TrueODCommentsAccountId

    What if you don't know where the data is?Print DB Structure, print to file, RTF formatOpen in Word and search

  • *

  • *Unique Record IdentiferVery important to pick the right one or onesSome tables have multiple fields Print DB structure tells you

    What if you don't know where the data is?Print DB Structure, print to file, RTF formatOpen in Word and search

  • *Query the tablesNew queryAdd table or tablesSelect fields

    Criteria Always use criteria except on small tablesDate range; status VUse indexed fieldsInvoice Query shows most

  • *Create a queryNew, Design ViewAdd tableSelect fieldsSpecify criteria

  • *Create a queryNew, Design ViewAdd tableSelect fieldsSpecify criteria

  • *Create a queryPrompt text in square bracketsQuery, Parameters not required but good for datesValidates entry

  • *Joining tablesNeed data from another tableAdd tableJoin the tableAccess will join automatically if it canMay need to delete and rejoinSelect fields

  • *Joining tablesBoth Provider name and Account Id name in the quey

    Add AccountID table twiceJoin one from Invoice provider, one from Invoice Account IdSelect Name from each, rename at least one of them

  • *New, Design ViewAdd tableSelect fieldsSpecify criteria

  • *Inner vs Outer joinInner join data always in both tablesOuter join data may not be in one of the tables

    Account IdThe invoice account Id always has a matching record in Account ID tableThe invoice booking agent may or may not have a matching record

    Inner joins are faster so use them if you are sure

  • *Inner vs Outer joinInner join (#1)

    Outer join (#2 if "big" table is 1st)

  • *Inner vs Outer join

  • *Find missing dataOuter join data may not be in one of the tablesAgent name was blankThese agents do not have employee Account Ids

    Sort by this fieldOr, specify this field is not present ( "is null" )

  • *Find missing comment lineTrickier but very usefulIssue entire record is missing

  • *Find missing comment lineCreate a query for line 4

  • *Find missing comment lineAdd that query to your main query

  • *Find missing comment lineOuter join that query to your main queryAdd Data field to query and sort or specify IS NULL

  • *Find missing comment line

  • *Relational DatabaseOne to oneThe account Id in Invoice has one matching (associated) record in Account Id

    One to manyAn air item in Invoice has one or more matching (associated) records in Segments

  • *Relational DatabaseSegment report with Commission

    New query with Segment tableAdd Invoice table, join, add commission fields

  • *Relational DatabaseSegment report with Commission - results

  • *Relational DatabaseSegment report with Commission results

    203.72 + 268.86 = 472.5623.63 + 23.63 + 23.63 + 23.63 = 94.52

  • *Relational DatabaseSegment report with Commission

    Calculate the commission per segmentNew field with a name and the formula

  • *

    10.186 + 13.442 = 23.628

  • *CopyrightCopyright2010 Travelport Inc. All rights reserved. All Travelport logos and marks as well as all other Travelport proprietary materials depicted herein are the property of Travelport Inc. and/or its affiliates.

    Notes About ExamplesAll screen examples and other inserts associated with system output are provided for illustration purposes only. They are provided as illustrative examples of system functionality and are not meant to represent actual screen responses, rates, etc.

Recommended

View more >