Professional Documents
Culture Documents
Criteria For Queries AS Mohammed Alkhawaja
Criteria For Queries AS Mohammed Alkhawaja
A level IT-Topic 10
Criteria for queries
Made in 1998 :
criteria for
date field >=1/1/1998 and <=31/12/1998.
Made before 1998: <1/1/1998
Made after 1998: >=1/1/1998
Between two dates:
between 28/3/2012 and 2/3/2013.
Use wild cards (*,?)
Criteria for text Contains the word file: *file*
field Begins with the letters Pc: Pc*
Ends with the letters Pc: *Pc
Code is CR or CP: CR or CP.
Country is spain: spain.
? Replaces 1 character.
Bunat Al Ghad Academy
A level IT-Topic 10
Criteria for queries
Summary
query We want to find the
total number we've
sold of each of our
menu items.
Dynamic query
(parameters)
Bunat Al Ghad Academy
A level IT-Topic 10
Criteria for queries
Bunat Al Ghad Academy
A level IT-Topic 10
Criteria for queries
Evaluate the use of static and dynamic parameters in query and when they should be
used
Static parameter query: Parameters (values used within the criteria will
not change each time the query is run, hard-coded into the
application.
In a static query every time that the query is run it will search for the
same data.
If different data is to be searched for the user would need to open up
the query in design view and change the data in the criteria to that
required.