2004
Table Of Contents
- Contents
- Chapter 1 - Find the Information You Need
- Part 1 - The User Interface
- Part 2 - Start, Organize, and Save a Drawing
- Part 3 - Control the Drawing Views
- Part 4 - Create and Modify Objects
- Chapter 14 - Control the Properties of Objects
- Chapter 15 - Use Precision Tools
- Chapter 16 - Draw Geometric Objects
- Chapter 17 - Change Existing Objects
- Part 5 - Hatches, Notes, and Dimensions
- Chapter 18 - Hatches, Fills, and Wipeouts
- Chapter 19 - Notes and Labels
- Chapter 20 - Dimensions and Tolerances
- Part 6 - Create Layouts and Plot Drawings
- Chapter 21 - Create Layouts
- Chapter 22 - Plot Drawings
- Part 7 - Share Data Between Drawings and Applications
- Chapter 23 - Reference Other Drawing Files (Xrefs)
- Chapter 24 - Link and Embed Data (OLE)
- Chapter 25 - Work with Data in Other Formats
- Chapter 26 - Access External Databases
- Overview of Using AutoCAD with External Databases
- Access a Database from Within AutoCAD
- Link Database Records to Graphical Objects
- Use Labels to Display Database Information in the Drawing
- Use Queries to Filter Database Information
- Share Link and Label Templates and Queries with Other Users
- Work with Links in Files from Earlier Releases
- Part 8 - Work with Other People and Organizations
- Chapter 27 - Protect and Sign Drawings
- Chapter 28 - Use the Internet to Share Drawings
- Chapter 29 - Insert and View Markups
- Chapter 30 - Publish Drawing Sets
- Part 9 - Create Realistic Images and Graphics
- Glossary
- Index
Use Queries to Filter Database Information | 753
Use Queries to Filter Database Information
A query to the database is a search criterion that you construct to return the
records you want.
Overview of Queries
Part of the fundamental power of database systems is their ability to present
a subset of records based on a search criterion or query that you specify. For
example, you might have a database table containing records of all the rooms
that exist at your company’s headquarters facilities. Suppose that you want
to prepare a report that lists all conference rooms that can seat more than 20
people. Using the AutoCAD Query Editor, you can easily construct a query
that returns the subset of records or linked graphical objects that you want
to see.
The Query Editor consists of a series of four tabs that you can use to develop
queries. The tabbed progression is designed to make working with queries
simple, even if you are not familiar with Structured Query Language (SQL).
If you are unfamiliar with queries, work with the Quick Query and Range
Query tabs initially until you become familiar with query syntax. Once you
learn the basics involved in developing meaningful queries, you can progress
to the Query Builder and SQL Query tabs.
You can begin creating a query in one tab and continue to refine it or add
additional parameters in subsequent tabs. You might, for example, begin
creating a simple query in the Quick Query tab and subsequently decide that
you would like to add an additional condition using the Query Builder tab.
When you choose the Query Builder tab, it displays the values that you
initially selected using the Quick Query tab, and you can add additional
conditions to the query. However, you cannot move backwards through the
tabs once you have changed the query in one of the later tabs, because each
subsequent tab provides additional functions that are not available in the
previous tabs. If you attempt to move backwards through the query tabs after
modifying a query, AutoCAD prompts you with a warning indicating that
the query will be reset with its original default values.