Presentation is loading. Please wait.

Presentation is loading. Please wait.

Using MS Access for SQL CIS 523 Fall 2009 McCoey.

Similar presentations


Presentation on theme: "Using MS Access for SQL CIS 523 Fall 2009 McCoey."— Presentation transcript:

1 Using MS Access for SQL CIS 523 Fall 2009 McCoey

2 MS Access Query QBE design SQL statement
Used to ask questions of tables in the database Two different approaches QBE design Query by Example SQL statement Structured Query Statements

3 How to get to the QUERY menu
First open MS Access Browse to find the database you wish to open When the database is open, you are going to have the list of database tables on the left and an blank screen in the middle

4 Click on the CREATE Menu Item
Click on the create option

5 Get to the QUERY Options
Click on the option QUERY design

6 Default is QBE Grid This is the default view. We are going to change it to the SQL view. Click on the option to CLOSE the list of tables

7 Move to SQL View Click on the option SQL VIEW

8 SQL Query View This is the default SQL view.
You will type your SQL statements right here.

9 Using the SQL Query This is a basic query statement to display
all the records in the staff table. The statement ends with a semicolon

10 Running SQL Query To make the statement Execute, click on the Exclamation statement with the RUN

11 Results of the Query This sample DB does not have any records.
The result displays in a table view.

12 Return to SQL Query View
Click on the drop-down VIEW Select the option SQL VIEW

13 Saving the QUERY Click on the X to close the QUERY.
You will get the request to save the design. Click on YES

14 Naming the QUERY Another box will open asking for the QUERY Name.
Type the name for this query in the box and click on OK. The query will be saved with the DATABASE

15 Finding your queries Click on the DOWN arrow and select
The option for OBJECT TYPES. The objects Will reorder based on the types

16 See the QUERY The query is listed here. To rerun the query
Just double click on the name


Download ppt "Using MS Access for SQL CIS 523 Fall 2009 McCoey."

Similar presentations


Ads by Google