Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computer Science & Engineering 2111 CSE 2111 Lecture Basic Criteria in Queries 1CSE 2111 Lecture-Basic Criteria in Queries.

Similar presentations


Presentation on theme: "Computer Science & Engineering 2111 CSE 2111 Lecture Basic Criteria in Queries 1CSE 2111 Lecture-Basic Criteria in Queries."— Presentation transcript:

1 Computer Science & Engineering 2111 CSE 2111 Lecture Basic Criteria in Queries 1CSE 2111 Lecture-Basic Criteria in Queries

2 Write a query to list the First Name and Last Name and state for all clients who live in Ohio. Field FirstNameLastNameState Table Client Sort Show xxx Criteria “oh” OR 2 Query Name: Ohio Residents Tables Required: Client Foreign Keys: None Join Type: None When typing in non-numeric criteria, always surround the criteria with quotes. CSE 2111 Lecture-Basic Criteria in Queries

3 The data table The resulting dynaset CSE 2111 Lecture-Basic Criteria in Queries3

4 Write a query to list the ClientID for all payments of $100. Field ClientIDAmount Table Payments Sort Show x Criteria 100 OR 4 Query Name: PaymentOf100 Tables Required: Payments Foreign Keys: None Join Type: None When typing in numeric criteria, DO NOT surround the criteria with quotes. CSE 2111 Lecture-Basic Criteria in Queries

5 The data table The resulting dynaset CSE 2111 Lecture-Basic Criteria in Queries5

6 Write a query to list the Client ID, payment, and payment date for all payments made on March 8, 2008. Field ClientIDAmountPaymentDate Table Payments Sort Show xxx Criteria #3/8/2008# OR 6 Query Name: March8 Tables Required: Payments Foreign Keys: None Join Type: None When typing in date criteria, always surround the criteria with #. CSE 2111 Lecture-Basic Criteria in Queries

7 The data table The resulting dynaset CSE 2111 Lecture-Basic Criteria in Queries7

8 Write a query to list the ClientID and payment for all payments of $100 or more. Field ClientIDAmount Table Payments Sort Show xx Criteria >=100 OR 8 Query Name: Payment>=100 Tables Required: Payments Foreign Keys: None Join Type: None When typing in numeric criteria, DO NOT surround the criteria with quotes. CSE 2111 Lecture-Basic Criteria in Queries

9 The data table The resulting dynaset CSE 2111 Lecture-Basic Criteria in Queries9


Download ppt "Computer Science & Engineering 2111 CSE 2111 Lecture Basic Criteria in Queries 1CSE 2111 Lecture-Basic Criteria in Queries."

Similar presentations


Ads by Google