In this topic you learn how to add a criteria to the query in order to limit the query results to data that falls between two specified values.
In this example the query will display the employees whose original hire date is between January 1, 2004 and July 31, 2004. To do this you will use the "between" Condition Type.
Steps:
Click the Fields tab.
Step 1Click the Add Criteria button.
Step 2Click the drop-down arrow for *Condition Type and select the between option.
Step 3Enter the desired information into the Date field.
Enter "010104".
Step 4Enter the desired information into the Date 2 field.
Enter "073104".
Step 5Click the OK button.
Step 6Click the Criteria tab.
Step 7Note: The Criteria tab indicates ORIG_HIRE_DT between 2004-01-01 and 2004-07-31.
Click the Run tab.
Step 8Note: In addition to the highest education level criteria established in the previous exercise, the query output now also reflects only those employees hired between 01/01/2004 and 07/31/2004.
Step 9This completes Using Between Criteria.