Numeric Field Queries
To view the comparison options available for numeric data fields,
follow these steps:
- In FrontPage, open a Web on an ASP-enabled Web
server.
- Start a new, blank page.
- On the Insert menu, point to Database, and then click Results.
- In Step 1 of the Database Results Wizard, click Use
a sample database connection (Northwind), and then click Next.
- In the Record Source list, click Categories, and then click Next.
- Click More Options.
- Click Criteria.
- Click Add.
- In the Field Name list, click CategoryID.
Following is a list of comparison options that are available
for the CategoryID numeric data field and the syntax of SQL statements
resulting from either manually entering the comparison value or by using the
search feature.
Text Field Queries
To view the comparison options available for text or string data
fields, follow these steps:
- In FrontPage, open a Web on an ASP-enabled Web
server.
- Start a new, blank page.
- On the Insert menu, point to Database, and then click Results.
- In Step 1 of the Database Results Wizard, click Use
a sample database connection (Northwind), and then click Next.
- In the Record Source list, click Categories, and then click Next.
- Click More Options.
- Click Criteria.
- Click Add.
- In the Field Name list, click CategoryName.
Following is a list of comparison options that are available
for the CategoryName text/string data field and the syntax of SQL statements
resulting from either manually entering the comparison value or by using the
search feature.
Notes About Text/String Queries
- Text or string comparisons offer a wider range of query
possibilities because text queries can use wildcard characters, whereas numeric
queries are limited to values or NULL.
- Functionally, queries using the Like comparison as opposed to the Equals comparison may yield almost the same results. However, if you
choose the Like comparison option, you can enter wildcard characters on the
search form. For example, if you enter CON% in the
search form, to search the CategoryName field in the Categories table of the
Northwind database, the results include Condiments and Confections.
- Using a Greater Than or Less Than query with text data allows you to search for text that occurs
alphabetically before or after the word you are using in the comparison. For
example, if you are performing a Greater Than comparison for the word Meat in the CategoryName field in the Categories table of the
Northwind database, the results include Meat/Poultry, Produce, and Seafood.