Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 876669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:28:14+00:00 2026-05-15T11:28:14+00:00

Is an unbounded query a query without a WHERE param = value statement? Apologies

  • 0

Is an unbounded query a query without a WHERE param = value statement?

Apologies for the simplicity of this one.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T11:28:15+00:00Added an answer on May 15, 2026 at 11:28 am

    An unbounded query is one where the search criteria is not particularly specific, and is thus likely to return a very large result set. A query without a WHERE clause would certainly fall into this category, but let’s consider for a moment some other possibilities. Let’s say we have tables as follows:

    CREATE TABLE SALES_DATA
      (ID_SALES_DATA      NUMBER PRIMARY KEY,
       TRANSACTION_DATE   DATE NOT NULL
       LOCATION           NUMBER NOT NULL,
       TOTAL_SALE_AMOUNT  NUMBER NOT NULL,
       ...etc...);
    
    CREATE TABLE LOCATION
      (LOCATION  NUMBER PRIMARY KEY,
       DISTRICT  NUMBER NOT NULL,
       ...etc...);
    

    Suppose that we want to pull in a specific transaction, and we know the ID of the sale:

    SELECT * FROM SALES_DATA WHERE ID_SALES_DATA = <whatever>
    

    In this case the query is bounded, and we can guarantee it’s going to pull in either one or zero rows.

    Another example of a bounded query, but with a large result set would be the one produced when the director of district 23 says “I want to see the total sales for each store in my district for every day last year”, which would be something like

    SELECT LOCATION, TRUNC(TRANSACTION_DATE), SUM(TOTAL_SALE_AMOUNT)
      FROM SALES_DATA S,
           LOCATION L
      WHERE S.TRANSACTION_DATE BETWEEN '01-JAN-2009' AND '31-DEC-2009' AND
            L.LOCATION = S.LOCATION AND
            L.DISTRICT = 23
      GROUP BY LOCATION,
               TRUNC(TRANSACTION_DATE)
      ORDER BY LOCATION,
               TRUNC(TRANSACTION_DATE)
    

    In this case the query should return 365 (or fewer, if stores are not open every day) rows for each store in district 23. If there’s 25 stores in the district it’ll return 9125 rows or fewer.

    On the other hand, let’s say our VP of Sales wants some data. He/she/it isn’t quite certain what’s wanted, but he/she/it is pretty sure that whatever it is happened in the first six months of the year…not quite sure about which year…and not sure about the location, either – probably in district 23 (he/she/it has had a running feud with the individual who runs district 23 for the past 6 years, ever since that golf tournament where…well, never mind…but if a problem can be hung on the door of district 23’s director so be it!)…and of course he/she/it wants all the details, and have it on his/her/its desk toot sweet! And thus we get a query that looks something like

    SELECT L.DISTRICT, S.LOCATION, S.TRANSACTION_DATE,
           S.something, S.something_else, S.some_more_stuff
      FROM SALES_DATA S,
           LOCATIONS L
      WHERE EXTRACT(MONTH FROM S.TRANSACTION_DATE) <= 6 AND
            L.LOCATION = S.LOCATION
      ORDER BY L.DISTRICT,
               S.LOCATION
    

    This is an example of an unbounded query. How many rows will it return? Good question – that depends on how business conditions were, how many location were open, how many days there were in February, etc.

    Put more simply, if you can look at a query and have a pretty good idea of how many rows it’s going to return (even though that number might be relatively large) the query is bounded. If you can’t, it’s unbounded.

    Share and enjoy.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 536k
  • Answers 536k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Most embedded compilers do indeed have an implementation of at… May 17, 2026 at 1:27 am
  • Editorial Team
    Editorial Team added an answer foreach builds the list of matches first, and then iterates… May 17, 2026 at 1:27 am
  • Editorial Team
    Editorial Team added an answer Try: something.val(something.val() == 'string1' ? 'string2' : 'string1'); It is… May 17, 2026 at 1:27 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Is it valid in XML-RPC to have an unbounded array of elements without having
I am trying to parse XML in Perl using XML::SAX parser . My query
(I wish I could have come up with a more descriptive title... suggest one
I know that this topic has been beaten to death, but it seems that
Please enlighten me why XML Spy thinks this is valid . FYI, this specifies
I'm trying to query XML through XPATH but is having problem getting id() to
I'm trying to add schematron validation to my xsd. This is my new xsd
I've added a WCF service reference to a .NET project using this WSDL: https://interop.cmiservices.org/axis/services/CAP1_1?wsdl
I have a data entry/editing form with two combo boxes (Name and Group). Each
I have the following XML from a .NET web service: <?xml version=1.0 encoding=utf-8?> <DataSet>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.