5 Aug Microsoft Access 2010 Relational databases’ program Part of the Microsoft Office package Administer relational database Update database through forms Build complex queries Create reports Competitors: Oracle, PostgreSQL, MySQL 1
5 Aug Slide only for explanation, database theory will not be asked at exam Single-table databases Fields and records 1.Header in the first line 2.Same content for every field 3.Each record refers to a single object 4.Records are independent 5.Records and fields are disordered 6.No field which can be calculated
5 Aug Slide only for explanation, database theory will not be asked at exam Multiple-table databases Primary key ID Structured tables connected via relations “one to many” or “many to one” Foreign key “many to many”: junction table
5 Aug Slide only for explanation, database theory will not be asked at exam Example: Your library It is a database of your books and their authors. Suppose that each book has only one author.
5 Aug It is a database which handles data regarding students and their exams. Slide only for explanation, database theory will not be asked at exam Example: students and exams
Expanded with information on professors and their exams Many to many relation another extra table 6 Slide only for explanation, database theory will not be asked at exam Example: students and exams 2 5 Aug 20146
Northwind database example 5 Aug Northwind 2003 database example Copy the file to your Desktop Enable Access saves automatically data modifications!!! Undo is possible only for the last action File Save Saves only created objects inside the database file To duplicate the database File Save Database As 7
Table 5 Aug Northwind database overview Home View Datasheet View Home View Design View Fields types Text: max 255 alphanumeric characters Memo: max 65,535 characters Number and Currency and Autonumber Date/Time Yes/No OLE object: link or embed external objects Hyperlink Primary key 8
Select query 5 Aug a question which produces a virtual table called view Create Queries Query Wizard Home View Design View Show Sorting Criteria Other fields values The query asks for a value Query Show tables
Select query: virtual fields 5 Aug Expression builder Functions: DateDiff, DateAdd, Year, Date Operators: Between, Like * ? Expression builder for validation rules and in table validation rules: Like