query
4 ResultsDictionary
query
To interrogate a collection of data such as records in a database. The term may also be used to search a single file or collection of files such as HTML files on the Web. However, in addition to...
Dictionary
Definition: query
To interrogate a collection of data such as records in a database. The term may also be used to search a single file or collection of files such as HTML files on the Web. However, in addition to obtaining lists of records that match the search criteria, queries to a database allow for counting items and summing amounts. A query on the Web yields only a list of matching pages and is more often called a "search."
For years, query and report programs have been the primary applications that produce output from information systems. A query implies an online request as required (look up that record), while a report implies a more elaborate printout with page headings and numbers that is typically produced at regular intervals such as end of month. See report writer.
Simple or Complex
Defining a query for a relational database can be extremely simple or very complex. If the query is based on one matching condition, such as "retrieve all customers who owe us more than $10,000," it is usually easy to define in a query language or program. However, "retrieve all customers who owe us more than $10,000 from purchasing toasters" is not easy. It requires several steps to determine how many toaster orders are in the balance due.
Tables Must Be Joined
Relational databases are designed to eliminate redundancy. The goal is to store a data item in one table and not have it duplicated in others. For example, an order record will contain the product number ordered, but often not its description. The description is stored in a product table. Thus, any printout of products ordered and their descriptions requires that the order table be linked to the product table for that query or report. Linking customer, order and product tables is a common example of "joining" tables to satisfy a query.
Contents of a Query
Most queries require at least the following conditions to be stated. First, which table or tables is the data coming from. If from two or more tables, what is the link between (typically account number or name). Next, define the selection criteria, which is the matching condition or filter. Lastly, define which fields in the tables are to be displayed or printed in the result. See SQL.
The Query Statement
This diagram depicts the typical conditions that have to be stated when querying a relational database.
THIS DEFINITION IS FOR PERSONAL USE ONLY
All other reproduction is strictly prohibited without permission from the publisher.
© 1981-2010 The Computer Language Company Inc. All rights reserved.
Sponsored White Papers, Webcasts & Resources
-
Introducing the New VMware Management Solution Portfolio
Check out this webcast to learn more about the New VMware Management Solution Portfolio.
-
Amazon Web Services launches DNS system
AWS is allowing users to create, change and delete DNS files for any domain. AWS does this using a "hosted zone"," which acts as a phone book of sorts matching names to IP addresses.
-
Deep inside Wolfram Alpha
Two CNET experts compare Wolfram Research's "computational knowledge engine" with Google's and predict whether Wolfram Alpha is something to be worried about.
-
First, a game of green. Then, fade to black
It is truly astonishing that I mention the word Apple in a post and I get more talkbacks than pretty much anything I write about. Puh-leeze, get a grip. Anyway, just back from reluctantly leaving...
-
From facts on Google-retrieved Web pages to historical graphs
A newly published Google Patent application entitled "Displaying Facts On A Linear Graph" appears to explain a method for extracting factual information from web pages retrieved via Google...
Additional Results
-
Google's BigQuery goes public
The company that invented MapReduce makes its cloud-based dimensional query offering public. But is it really a Big Data tool?
-
SWiPE allows 'deep search' semantic queries using the Wikipedia UI
We use increasingly complex searches and we get frustrated if we can't get the answers we want from our initial query. Swipe may change all that by querying DBpedia through the Wikipedia UI.
-
Are your search engine queries being hijacked?
Recent studies show that, depending on your ISP, your search engine questions may be being deliberately collected and redirected by a third-party company.
-
Amazon Web Services launches DNS system
AWS is allowing users to create, change and delete DNS files for any domain. AWS does this using a "hosted zone"," which acts as a phone book of sorts matching names to IP addresses.
-
Google Instant instantly blacklists certain queries
Is instant censoring of Google Instant results an appropriate nod to good taste or an example of Google playing Big Brother?
-
Meet Google Instant: Results as queries are typed
Google today is announcing a speed boost to its search technology, eliminating the need to press the return key to see search results. A new tool, called Google Instant, allows users to see...
-
Analysts probe future of client architectures as HTML 5 and client virtualization advances loom over desktops
If more of what more users are doing with their clients involves services, then shouldn't the client be more services ready? Should we expect one client to do it all very well, or do we need to...
-
Algebraix: A new approach to querying huge databases
Algebraix says it has a new approach to querying very large databases. If it can do what it says, it is one very hot startup...
-
John Resig explains the status and future of jQuery
Editor's note: Andrew Mager is reporting from the Future of Web Apps (FOWA 2010) conference, held in Miami from February 22 to 24. Click here to read all of his coverage. The following is just...
-
FCC queries Google, wireless carriers on termination fees
The Federal Communications Commission has sent letters to AT&T, Google, Sprint Nextel, T-Mobile and Verizon Wireless looking for answers about the rationale for early termination fees.
-
TR Dojo: Find files within a date range using Windows Search Advanced Query Syntax
Bill Detwiler demonstrates how to create targeted searches with Windows Search Advanced Query Syntax (AQS). Once you’ve watched this TR Dojo video, you can find a link to the original...
-
jQuery Enlightenment: For the intermediate to advanced Javascripter
jQuery evangelist Cody Lindley, creator of Thickbox, has just published a great book for the not-so-beginner Javascript coder called jQuery Enlightenment. Lindley wrote the book for three...
-
Troubleshoot Windows Vista drivers with Driver Query and DriverView [video]
When Windows Vista was first released, many early adopters complained of device driver incompatibilities with older hardware. Since then, most hardware vendors have released updated, Vista...
-
Deep inside Wolfram Alpha
Two CNET experts compare Wolfram Research's "computational knowledge engine" with Google's and predict whether Wolfram Alpha is something to be worried about.
-
True Knowledge API lies at the heart of real business model
Semantically powered question answering start-up True Knowledge today made its Semantic Search API available for public consumption, taking the next step on the company's journey out of beta and...
-
Average US query size in January 2009
Subject Jan-08 Dec-08 Jan-09 Growth, YTY 1 word 20.96% 20.70% 20.29% -3% 2 words 24.91% 24.13% 23.65% -5% 3 words 22.03% 21.94% 21.92% 0% 4 words 14.54% 14.67% 14.89% 2% 5 words 8.20%...
The best of ZDNet, delivered
ZDNet Newsletters
Get the best of ZDNet delivered straight to your inbox




