Computer Science & Engineering 2111 CSE 2111 Lecture Basic Criteria in Queries 1CSE 2111 Lecture-Basic Criteria in Queries
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
The data table The resulting dynaset CSE 2111 Lecture-Basic Criteria in Queries3
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
The data table The resulting dynaset CSE 2111 Lecture-Basic Criteria in Queries5
Write a query to list the Client ID, payment, and payment date for all payments made on March 8, 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
The data table The resulting dynaset CSE 2111 Lecture-Basic Criteria in Queries7
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
The data table The resulting dynaset CSE 2111 Lecture-Basic Criteria in Queries9