HCS081 access theory

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/71

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

72 Terms

1
New cards

MS access 2016

 well known ex of DB applic for Windows

(allows user to create custom DBs that store info in organised structure)

  • DB management system (DBMS)

2
New cards

database

collection of info that's organized so it can be easily accessed, retrieved, updated, & managed

3
New cards

complete database aka

FILE

→ file is made up of ind records

4
New cards

exs of databases

• Telephone Directory

• Student Enrollment

• Payroll Database

• AhLiki Wholesale System

5
New cards

how to start MS access & its interface

  1. open access > blank database

  2. enter file name> file location

  3. click create

6
New cards

4 database components

tables, forms,queries, reports

7
New cards

2 types of database

flat file database & relational database

8
New cards

flat file database

Contains only single table to hold records

(No relos req)

9
New cards

relational database

Contains >1 table that must be related

(Relos req to connect tables)

10
New cards

4 rules of database theory 

1) Reduce redundancy & inconsistency (eliminate entering data multiple times)

2) Facilitate maintenance (need to accurately change data, ideally once)

3) Maintain accuracy (relos help reduce potential for errors)

4) Simplify info retrieval (extracting info shld be easy & quick)

11
New cards

designing & planning database

• Consider 4 DB Rules when in design process

• Store 1 value per field

• Assign PK for each table

12
New cards

primary key

1/more fields that uniquely identifies each record in table

(each table must have PK)

13
New cards

exs of PK

StudentiD of Student Table

 EmployeeCode of Employee table

 Receipt# of Payment Table

14
New cards

foreign key

'primary key' of another table

(Essential in drawing relos betw tables)

15
New cards

relationship

Enforcing referential integrity to avoid inconsistence of data entry

16
New cards

3 types of relos

  1. one to one (1-1) = record in 1 table relates to only 1 record in another table

  2. one to many (1-∞) = record in 1 table relates to more than 1 record in another table

  3. many to many (∞-∞) = many records in 1 table relate to many records in another table

17
New cards

referential integrity

relational concept that dets outcome of actions on related tables

18
New cards

2 rules of referential integrity will be reinforced if: (3)

*Both fields have same data type

*Both tables stored in same database

*Relo type is identified

(2 rules of referential integrity)

1. can't add record to related table unless there's alr matching record in primary table 

2. can't delete record from primary table while matching records still exist in related table

19
New cards

table (database object)

Allows you to enter & edit records in spreadsheet-line environment

  • usually 1st component to be created in DB

  • Consist of Fields & Records

20
New cards

2 table views

design & datasheet view

21
New cards
<ol><li><p>table design view&nbsp;</p></li></ol><p></p>
  1. table design view 

Allows you to modify & edit structure of table

can:

  1. enter field names & data types for each field

  2. change field properties for each field

22
New cards

field name

descr contents of data stored in columns

23
New cards

1st step in creating table (field name)

assign suitable field names

  • Max 64 characters

  • Max 255 fields per table

24
New cards

naming rules (field name) (3)

  • descr content of data

  • fields must have diff names

  • Keep names short

25
New cards

data type depends on 

type of data field will hold (content entered)

26
New cards

7 data types

1.   Short Text

2.   Long Text

3.   Number

4.   Date/Time

5.   Currency

6.   Autonumber (Counter)

7.   Yes/No 

27
New cards

short text (data type)

Default. For text content

28
New cards

long text (data type)

For large amounts of text content

29
New cards

number (data type)

Only use when you expect to do calcs (Byte, integer, long integer, double, single)

30
New cards

date/time (data type)

stores date & time data

31
New cards

currency (data type)

Special type of no field

32
New cards

autonumber (data type)

Value's automatically assigned starting from 1

33
New cards

yes/no (data type)

Approp when field can have only 1 of 2 diff values

34
New cards

field properties

Det how field data is inputted & displayed

35
New cards

11 field properties

field size, format, decimal places, input musk, caption, default value, validation rule, validation text, required, allow zero length, indexed

36
New cards

field size (field property)

used to control max no of characters in field

37
New cards

format (field property)

Dets how Access displays & prints data

38
New cards

decimal places (field property)

Dets no of dps displayed & printed in no. & Currency fields

39
New cards

input musk (field property)

Specifies pattern for all data to be entered in this field

40
New cards

caption (field property)

Supplies label for Access to use in forms & reports

41
New cards

default value (field property)

Assigns value that Access inserts into field in new records added to table

42
New cards

validation rule (field property)

Check data entered in field against set of criteria

43
New cards

validation text (field property)

Defines error msg that appears when you enter value prohibited by validation rule

44
New cards

required (field property)

Indicates that some data must be entered in field before record can be saved

45
New cards

allow zero length (field property)

Dets whether 0 length strings aren't valid entries

46
New cards

indexed (field property)

Creates index on field to speed up searches

47
New cards

datasheet view

where you enter, edit & modify records

48
New cards

5 alterations you can make in datasheet view

1. Change appearance of columns (hide, freeze, change font/adjust width, etc.)

2. Edit, delete, sort, filter records

3. Undo mistakes

4. Freeze fields

5. Save filtered records as query

49
New cards

first record button

Directly points user to 1st record of table

50
New cards

prev record button

Moves cursor to prev record

51
New cards

current record

Displays no of currently active record out of total no of records in table

52
New cards

next record button

Moves cursor to next record

53
New cards

last record button

Directly points user to last record

54
New cards

new record button

Adds new record to table

55
New cards

database terms

Entity = object that makes up part of data (ex. person, song, book)

 

Attribute = descrs entity; distinguishing entities of same type

(ex. person's name, author, movie title)

 Table = collection of entities/things

 

Column = vertical collection of attributes/fields

Row = horizontal collection of related info/entities (aka database record)  

56
New cards

2 rules to follow when forming relos betw tables in DB

1. data type of PKs & Foreign Keys must be same

2. field properties of PKs & Foreign Keys must be same

57
New cards

sorting data  

feature that enables users to arrange & display records in datasheet (either in Ascending/Descending order)

58
New cards

filtering records 

To extract specific info from 1 specific table

  • Fastest way to view group of related records when working on 1 table

  • Save Filter as Query

59
New cards

3 filtering options

  1. filter by selection

  1. advanced filter/sort

  2. filter by form

60
New cards

queries

way to Q DB/extract specific info from 1/more tables

  • result = "dynaset"

61
New cards
<p>steps in query design view </p>

steps in query design view

Identify key fields & criteria listed in Q

62
New cards

3 types of queries

1.   Select Query = extract data from tables based on criteria

2.   Action Query = perform action on records that meet criteria

3.   Union Query = combines fields from 2/more tables

63
New cards

forms

feature used to enter, modify & view records

  • data entry & maintenance easier than using tables

64
New cards

4 types of forms

65
New cards

5 form advantages

-        Displays 1 record at time

-        Can contain graphs / images

-        Rearrange fields

-        Can contain fields from >1 table

-        special field display functions

66
New cards

report

Present data from tables & queries in easy to read format

67
New cards

report wizard + pre-designed report options

Best option to create simple report

  • Offers pre-designed report options:

1. Single Column

2. Groups/total

3. Mailing Label

4. Summary

5. Tabular

68
New cards

altg, database should have: (4)

1. Tables

a. Relationships

2. Queries

3. Forms

4. Reports

69
New cards

form design

you have options to choose which field(s) to be incl in object

70
New cards

columnar

layout option for 1 of DB objects (report)

71
New cards

which is not a DB object: report wizard, table, form, query

= report wizard

72
New cards

attribute that best descr diff betw relational & flat line DB

= PK