Query Wizard: Step 1 - Select Fields
Query Wizard: Step 1 - Select Fields
Query Wizard
Visual Studio .NET 2003
With the Query wizard, you can select a group of records based on some rules you specify, For example, if you have
tables that contain large amounts of information in one or more tables, you can use a carefully designed query to collect
or display just a few records that satisfy some numeric or logical value.
1. Use the Databases and Tables controls to locate and select the tables or views you want to use.
2. In the Available fields window, select one or more fields you want to use from the selected table, and use the
arrow buttons to move them to the Selected fields window.
Select the desired fields from the two dropdown list boxes, and then choose Add. If you use multiple tables in your
view, then you must relate the tables by indicating which fields contain matching data in each table.
If you are using more than one table, you can specify a join condition. For more information, see Creating a Multitable
View. For example, if you specify only matching rows in Step 2a, you can further refine that choice in Step 3 by specifying
a particular value for a field.
https://msdn.microsoft.com/enus/library/aa979445(d=printer,v=vs.71).aspx 1/3
2/27/2016 QueryWizard
Returns all the rows from one of the listed tables or views. This makes it possible for you to create a left or right
outer join.
All rows from both tables
Returns matching and nonmatching records from both tables. This is called an outer join.
You can reduce the number of records by creating expressions that filter records from the selected tables or views. You
can create two expressions and connect them with And, which returns only records meeting both specified criteria, or
Or, which returns records meeting either criteria.
Choose up to three fields or an index tag that already exists in the database to determine the order in which your view
results will be sorted. Select Ascending to sort the view in ascending order or Descending to sort the view in
descending order.
To see a percentage of the available records, choose the Percent of records radio button, and then specify the
percentage in the Portion value edit box. See all records by selecting Number of records and then selecting All
records. As shown in the following procedures, you can choose a portion of records from the beginning or the end of
the available records.
Step 5 - Finish
In this step, you can choose how to save your query.
Save query
Makes it possible for you to save the query for later use.
Save query and run it
Makes it possible for you to save the query and run it immediately
Save query and modify it in Query Designer
Makes it possible for you to save the query and then use the Query designer to enhance or modify it.
See Also
Defining Results | Creating Persistent Relationships | Adding Tables to a Database | CrossTab Wizard | Graph Wizard |
Local View Wizard | Remote View Wizard | Wizards Overview | Query and View Designers
2016 Microsoft
https://msdn.microsoft.com/enus/library/aa979445(d=printer,v=vs.71).aspx 3/3