Access Database for CIS17

Slides:



Advertisements
Similar presentations
Importing and linking through Access Please use speaker notes for additional information!
Advertisements

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Creating And Maintaining A Database. 2 Learn the guidelines for designing databases When designing a database, first try to think of all the fields of.
XP New Perspectives on Microsoft Access 2002 Tutorial 41 Microsoft Access 2002 Tutorial 4 – Creating Forms and Reports.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Relationships and Advanced Query Concepts Using Multiple Tables Please use speaker notes for additional information!
Microsoft Access. Microsoft access is a database programs that allows you to store retrieve, analyze and print information. Companies use databases for.
Introduction to Access 2010 CIS120first.accdb is the database I am creating.
When I want to work with SQL, I start off as if I am doing a regular query.
CHAPTER 1 – INTRODUCTION TO ACCESS Aliya Farheen March 5, 2014.
Lesson 13 Databases Unit 2—Using the Computer. Computer Concepts BASICS - 22 Objectives Define the purpose and function of database software. Identify.
Ennis-Cole, AC 2.01, CECS Maintaining A Database By: Dr. Ennis-Cole.
A am going to create a table in design view. I am going to create a table in an Access database that contains information about the books that I have on.
Access Module Implementing a Database with Microsoft Access A Great Module on Your CD.
Creating a database - I clicked on blank database and am saving it as books10.mdb. For more information see the practice example under week #1. I am going.
Sample template for portfolio - I would prefer to see you do something more original!
This is the software we will use to load our html page up to the server. You can download a copy for home if you want to.
Data Please use speaker notes for additional information!
Prepared By: Bobby Wan Microsoft Access Prepared By: Bobby Wan
Microsoft Access 2007 – Level 1
Practical Office 2007 Chapter 10
Access Chapter 2 Querying a Database.
This shows the user interface and the SQL Select for a situation with two criteria in an AND relationship.
On new..
Access Creating a Database
Creating and Using a Database
Access Creating a Database
Intro to PHP & Variables
MySQL - Creating donorof database offline
Please use speaker notes for additional information!
Creating Database Tables
INFO/CSE 100, Spring 2005 Fluency in Information Technology
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
Introduction to Access 2003
The Smarter Balanced Assessment Consortium
MODULE 7 Microsoft Access 2010
Creating and Modifying Queries
Access and Condition Statements
The Smarter Balanced Assessment Consortium
Generating forms with the wizard in Access
Please log on a computer Open the web and then Open four tabs…
Access Lesson 2 Creating a Database
Using Access 2016 Since we are creating a new Access database, we need to select blank database.
Access Lesson 2 Creating a Database
Using SQL with Access I am adding queries to the stu table in SecondDB.accdb – a database that I created in class. SQL stands for structured query language.
Access
Miscrosoft Office..
I am opeing Access 2003 in the Microsoft Office.
Microsoft Official Academic Course, Access 2016
On new..
Access Database for CIT12
Access: Access Basics Participation Project
Microsoft Office Access 2003
Access: Queries IV Participation Project
Access: Queries I Participation Project
Please use speaker notes for additional information!
Advanced Database Concepts: Reports & Views
This is the example I want the class to put up to become comfortable with creating and populating a table in Access.
Introduction to Access
Using screens and adding two numbers - addda.cbl
Notes on SQL This slide show will introduce SQL using Access. It assumes only an introductory level of knowledge about Access.
Introduction to Access 2010
The Smarter Balanced Assessment Consortium
The Smarter Balanced Assessment Consortium
Grauer and Barber Series Microsoft Access Chapter Two
Template for the portfolio.
Access Click on file and then you want a new database.
Point of Rental Training
Presentation transcript:

Access Database for CIS17 Please use speaker notes for additional information! I am going to prepare a file/table in the access database to contain the information for the first problem in the first weeks assignment.

I called this database asgn1.mdb. First open Access, when the screen comes up asking if you want to create a new database click that you want to create a Blank Access Database. Select the directory/folder where you want to save the database and give it a name. I called this database asgn1.mdb. This presentation uses Access 2000 - you could also use Access 2002/XP. Note that the database has a .mdb extension which is the standard extension for Access databases. Click on create.

Select design to design a new table. Notice that tables is selected. Again, if you are using a different version, things may be slightly different. Selecting design brought up this screen where we can design the file/table within the database asgn1.mdb. Notice that at this point, the table does not have a name. It will be named when you save the design.

I have now entered the first field which is called isbn I have now entered the first field which is called isbn. Notice that it is a text field and that I made the field size 13 which will hold the largest ISBN number that I have. In access I use text field. Some other languages might call it character or string. I believe ISBN is a 10 digit number with three hyphens. Adding the hyphens makes this a character field instead of a numeric field. In addition, some ISBN numbers have letters especially in the last field. Another reason to make it a character field. In the bottom image of the screen, I am entering title which I am also making character - this time I decided 35 worked. I soon discovered that it should have been bigger, but rather than change the structure, I shortened the titles. I will now enter the other information in the same way. Now I have entered the next field which I am naming title. It is also a text field and I decided that 35 was big enough to hold the titles I was entering.

I made the year field a number and specifically an integer I made the year field a number and specifically an integer. I do not have to specify the number of characters because integer has a specific number of characters. Note that I made author 25 and topic 15 characters. Access requires you specify a key when you create a table. If you do not, it establishes one for you numbering the first record 1 and the second record 2 etc. The key is supposed to be a unique string of data that is not duplicated. That makes the ISBN number a perfect candidate. More about keys later - for now just accept that things will work better if you establish a key on a file that will contain unique data. Before I leave, I establish a key for the record - isbn is my key. To do this I click on isbn and then click on the key icon.

I now have a table in my database. When you try to close this screen, it asks if you want to save and then prompts you for a table name. I entered booklist and clicked OK. I am now saving the table structure. This is the design of the table that tells what data is going to be stored here. Now I can create records following this structure. Note that every record I create will conform to the table structure that I have just designed. I now have a table in my database.

When I clicked on the booklist table, this screen came up for me to do data entry. Once the table has been designed and created, I now need to enter data into the table.

I entered 12 records (the 6 shown on the assignment and 6 more to give more data). Note that the data is entered into the structure of the table. This is known as populating the table.

The query screen comes up and shows the tables I have available to query. The only one that I have is booklist, so I will click on add. Now I want to design a query. Notice that I have high lighed Queries and now I will click on design. A query is looking at information and asking to see all records that meet a specific criteria. After I click on Add to add the booklist table, I then click on the Close in the Show Table popup screen.

When I click on the view icon, I will see the selected records. I can double click on each of the fields in booklist that I want to see in my query and they will move to the line below. In this case, I decided to see all of the fields so I double clicked on them all. When I click on the view icon, I will see the selected records. In the query, I selected that I wanted to see all of the fields so it showed me all of the records in the table with each field on the record showing. This means by clicking on the view icon I go into view mode to see the records and by clicking on the design icon I go back into design mode if I want to make changes to or just see the actual query I did. I can click on the design icon to go back into design mode.

I saved the query as all and all now appears under my query list.

The intersetion of Criteria: and topic is where I am entering my criteria. I want all records where the topic is equal to Oracle. In this example, I selected three fields to see: isbn, title, topic. I then put under the intersection of Criteria and topic the entry ="Oracle". This means that I only want to see those records where the topic is Oracle. As you can see, 4 records meet the criteria and are displayed. This means I have the data to access my file/table and get records of a specific topic. I did not show it here, but I saved this query under the name oracle. Note that I am testing for equal here. I could also test fields for greater than or less then.

This shows all the records that meet the criteria title > "G" which actually means they they have to start with something greater than G. Not very useful, but I wanted to show greater than with a text field. The next slide will show it with a numeric field.

This shows all books where the year of publication was less than 2000 This shows all books where the year of publication was less than 2000. Note that when you are dealing with numeric data, you do not put quotes around the value. Contrast to ="Oracle" and >"G”.