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 8948959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:07:34+00:00 2026-06-15T13:07:34+00:00

Suppose my select query has cost 100 and I have another way in which

  • 0

Suppose my select query has cost 100 and I have another way in which i am writing two queries which has cost (40 + 60). Both have same cost ultimately.

I want to know what is the most effective way.

  • 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-06-15T13:07:36+00:00Added an answer on June 15, 2026 at 1:07 pm

    ignore cost. its not the starting place for tuning, its just an internal ranking used by Oracle to pick the best plan for a given SQL statement. Cost can never be used to compare two different SQL statements to determine which one is better; i.e you can have a query with very high cost that is faster and uses less resources than a query that has a low cost.

    if the query is as fast as splitting it in two, then leave it as one SQL (1 less round trip to do).

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

Sidebar

Related Questions

Suppose you have two tables in PostgreSQL. Table A has field x , which
Suppose two tables test1 and test2 on which I select values from both tables
Suppose I have the following query: select * from A, B, C, D where
Suppose I have a dropdown (select tag) with 3 values. Our first option has
suppose i have @Entity A, which has an eager @ManyToOne to @Entity B, and
Suppose I have two tables: TABLE1: Has a list of IDs I need to
Suppose I have this query SELECT * FROM ( SELECT * FROM table_a WHERE
So i have a query that is suppose to get me data from two
suppose an object can have multiple tids now suppose I do this query: SELECT
Suppose a query select * from employee returns 80 rows. I need to display

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.