Presentation is loading. Please wait.

Presentation is loading. Please wait.

The data in the table.. Starting a query. Two criteria in an AND relationship.

Similar presentations


Presentation on theme: "The data in the table.. Starting a query. Two criteria in an AND relationship."— Presentation transcript:

1 The data in the table.

2 Starting a query.

3 Two criteria in an AND relationship.

4 When Microsoft runs the user interface query, they run it in SQL - this is the SQL that was generated. It has table names and extra parenthesis included - neither of which are necessary. Table names have to be included if there are multiple tables and the field appears on more than one of the tables. The parenthesis are not needed for the simple AND because I do not have to change the resolution.

5 The SQL as I would write it.

6

7 Standard OR relationship with two criteria.

8

9 Generate d SQL.

10 In this query, the edition must be 2. In addition either of two other criteria must be true. So, edition must be 2 and either topic must be Oracle or publisher must be Course.

11

12

13 It is generated as: edition = 2 and publisher = Course OR edition = 2 and topic = Oracle

14

15 Now I have taken the 2 from the OR line so the criteria are pulisher = Course AND edition = 2 OR topic = Oracle The two conditions in the AND relationship are grouped.

16

17

18 Now I am looking at notes from the text.

19

20


Download ppt "The data in the table.. Starting a query. Two criteria in an AND relationship."

Similar presentations


Ads by Google