lecture 9 application software 4. microsoft access
DESCRIPTION
LECTURE 9 APPLICATION SOFTWARE 4. Microsoft Access. Week 10 (2012) Dr. Ghada Drahem. INTENDED LEARNING OUTCOMES. This lecture covers: Describe what Microsoft Access. When and how this program might be used. MICROSOFT ACCESS. - PowerPoint PPT PresentationTRANSCRIPT
Week 10 (2012) Dr. Ghada Drahem
INTENDED LEARNING OUTCOMESThis lecture covers:
Describe what Microsoft Access. When and how this program might be used
3
MICROSOFT ACCESSDatabases contain a variety of objects
(such as tables, queries, forms, reports)
4
CREATING A DATABASEDatabase file is created firstTables can then be createdTypically, the table structure is specified
first Includes a list of fields and their properties,
including: Field name (unique identifying name) Data type (text, number, date, object) Field size (maximum number of characters) Default value (initial content of the field)
The table is named and savedThe table structure can be modified using
the Design view
5
CREATING AN INITIAL TABLE
6
CREATING A DATABASE (cont.)After the table structure has been created,
data is entered into the tableDatasheet view: Lists all data and looks
similar to a spreadsheetForm: Created by the user and typically
displays just one record at a timeIn either case, data is entered into the
database tableEither Datasheet view or a form can be
used to modify data or delete records
7
9
QUERIESQuery: A question; a request for specific
information from the databaseContain criteria to specify the records and
fields to be included in the query resultsAre named and saved so they can be run again
at a later timeResults always include the current database
dataSQL (Structured Query Language) is a
comprehensive database language; it has statements for data definition, query, and update. In addition it has facilities for defining views on the database,
SQL (STRUCTURED QUERY LANGUAGE)
SQL is a comprehensive database language
It has statements for data definition, query, and update.
In addition it has facilities for defining views on the database, for specifying security and authorization, for defining integrity constraints, and for specifying transaction controls.
It has rules for embedding SQL statements into a general-purpose programming language such as C.
BASIC QUERIES IN SQLSQL has one basic statement for retrieving
information from a database; the SELECT statementThe basic form of the SELECT statement
SELECT <attribute list>FROM <table list>WHERE <condition>
Example: retrieve the birthdate and address of the employee(s) whose name is ‘John B. Smith’
SELECT BDATE, ADDRESSFROM ENPLOYEEWHERE FNAME= ‘John’ AND MNAME=’B’ AND
LNAME= ‘Smith’
13
REPORTSReports: Created when a more formal output
is desiredAssociated with either a table or a queryData is displayed in the specified format
16
DATABASES AND THE WEB
Many Web sites use one or more databasesAnytime you type keywords in a search site
or hunt for a product on a retail store’s Web site using its search feature, you are using a Web database
Default Access 2007 file format is .accdb