Download presentation
Presentation is loading. Please wait.
Published bySpencer Ray Modified over 9 years ago
1
WEEK 11 Database Design
2
Agenda Hybrid Review Create Tables Add, Edit Data Create Relationships in MS Access 2010 Queries
3
CREATE TABLES
4
Create Tables For the tables for the sample in the Wk10_TableInstanceChart.xlsx
5
Table Design View Exercise: ◦ Create table for gender
6
Datasheet View Exercise: ◦ Add data to the gender table
7
Table Design View Exercise: ◦ Create Ribbon > Table Design in the Tables grouping ◦ Identify your own PK ◦ Moving the order of the rows
8
Create Table with Lookups Exercise: ◦ Add data to the city entity using a look up wizard as the data type for the province
9
Add Data to an Entity Based on another entity ◦ Exercise: Create the students table (studentID, fname, lname and gender fields only)
10
Edit an Entity Exercise: ◦ Complete the Students table ◦ Go back and look at your default value (note it was not added to previous records entered)
11
Edit Data in Datasheet View Exercise: ◦ Go back and add the age group and city for each of the students previously entered Datasheet view ◦ Record count ◦ Add a new record ◦ Search for a record ◦ Sort the records
12
CREATE RELATIONSHIPS
13
Create Relationships Database Tools ribbon > relationships grouping Exercise: ◦ How to Edit a relationship ◦ How to Create a relationship
14
Want More Information Visit the following site. http://www.functionx.com/access/index.htm
15
QUERIES
16
Northwind Database
17
Single Table Queries Select fields to display Sort by? Simple Conditions ◦ When you enter text into the criteria cell your text should be enclosed in quotes ("") to distinguish it from other expressions and operators that you may need to add.
18
WORKING WITH TEXT
19
Matching Text
20
OR Statement
21
IN Statement
22
NOT Statement
23
NOT IN Statement
24
Using Wildcards Wildcard is a special character that can stand for either a single character or a string of text
25
LIKE “Text*” Statement
26
LIKE “*Text” Statement
27
LIKE “[letter-letter]*” Statement
28
WORKING WITH NUMBERS
29
Working with Numbers For example, where X represents a number: <X finds values less than X. >X finds vales greater than X >=X finds values greater than or equal to X <>X finds vales not equal to X
30
WORKING WITH DATES
31
Working with Dates Ensure the criteria cell is type Date/Time Each date must be enclosed by hash marks (#). For example: ◦ <#1/1/98# ◦ finds dates earlier than 1 January 1998
32
Working with Dates For example: ◦ =#27-Sep-50# ◦ finds dates equal to 27 September 1950
33
Working with Dates For example: ◦ Between #5/7/98# And #10/7/98# ◦ finds dates no earlier than 5 July 1998 and no later than 10 July 1998
34
FINDING EMPTY FIELDS
35
Finding Empty Fields Use the expression Is Null. Conversely, Is Not Null. The expression Null simply means "nothing".
36
Hybrid / Homework Read Calculating in Access QueriesCalculating in Access Queries Read Calculating Totals in AccessCalculating Totals in Access Read Working out Someone’s AgeWorking out Someone’s Age Watch Multi-Table Queries Part 1 & 212 Database Assignment Part 2
37
Quiz Time
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.