lecture 9 application software 4. microsoft access

17
Week 10 (2012) Dr. Ghada Drahem

Upload: march

Post on 06-Jan-2016

27 views

Category:

Documents


1 download

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 Presentation

TRANSCRIPT

Page 1: LECTURE 9  APPLICATION SOFTWARE  4.  Microsoft Access

Week 10 (2012) Dr. Ghada Drahem

Page 2: LECTURE 9  APPLICATION SOFTWARE  4.  Microsoft Access

INTENDED LEARNING OUTCOMESThis lecture covers:

Describe what Microsoft Access. When and how this program might be used

Page 3: LECTURE 9  APPLICATION SOFTWARE  4.  Microsoft Access

3

MICROSOFT ACCESSDatabases contain a variety of objects

(such as tables, queries, forms, reports)

Page 4: LECTURE 9  APPLICATION SOFTWARE  4.  Microsoft Access

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

Page 5: LECTURE 9  APPLICATION SOFTWARE  4.  Microsoft Access

5

CREATING AN INITIAL TABLE

Page 6: LECTURE 9  APPLICATION SOFTWARE  4.  Microsoft Access

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

Page 7: LECTURE 9  APPLICATION SOFTWARE  4.  Microsoft Access

7

Page 8: LECTURE 9  APPLICATION SOFTWARE  4.  Microsoft Access
Page 9: LECTURE 9  APPLICATION SOFTWARE  4.  Microsoft Access

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,

Page 10: LECTURE 9  APPLICATION SOFTWARE  4.  Microsoft Access

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.

Page 11: LECTURE 9  APPLICATION SOFTWARE  4.  Microsoft Access

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’

Page 12: LECTURE 9  APPLICATION SOFTWARE  4.  Microsoft Access
Page 13: LECTURE 9  APPLICATION SOFTWARE  4.  Microsoft Access

13

Page 14: LECTURE 9  APPLICATION SOFTWARE  4.  Microsoft Access

REPORTSReports: Created when a more formal output

is desiredAssociated with either a table or a queryData is displayed in the specified format

Page 15: LECTURE 9  APPLICATION SOFTWARE  4.  Microsoft Access
Page 16: LECTURE 9  APPLICATION SOFTWARE  4.  Microsoft Access

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

Page 17: LECTURE 9  APPLICATION SOFTWARE  4.  Microsoft Access