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

  • SEARCH
  • Home
  • 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 9060817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:19:40+00:00 2026-06-16T15:19:40+00:00

Scenario: I’m getting the same explain plan (Tab Access Full and same numbers for

  • 0

Scenario:

I’m getting the same explain plan (Tab Access Full and same numbers for Cost, Bytes and Cardinality) for two different queries on the same table(not indexed / no PK / no FK).

Query1:

select * from tab1 where col1 = 'A'

Query2:

select * 
from tab1 
where col1 = 'A' 
and months_between(decode(col2,NULL,col3,col4),col5)<13;

Question:

Won’t the added conditions in Query2 needs some more time to process?
or
Is it like, even Query1 takes the time as that of Query2, which is the maximum time needed for almost any such query on the table(Tab Access Full)?

Please note that the table (data vol. is always < 0.5 mil) is not showing any performance issue so far and this is just to intrepret the explain plan provided by oracle COB, so that it would be beneficial for future enhancement.

  • 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-16T15:19:42+00:00Added an answer on June 16, 2026 at 3:19 pm

    You say that you have no indexes on your table. The optimizer therefore has no choice but to full scan. In addition, your are selecting all columns (select *). The cost for query2 (mainly the IO of full scan), will be very very similar perhaps a minuscule bit extra CPU for the additional conditions. The cardinality is the number of rows the optimizer estimates will be retrieved by each step of the query plan. Similarly the Byte count is the number of bytes expected. If your query1 and query2 are returning the same number of rows, i.e. the extra predicate does not affect the result, then the Cardinality and Byte count will be the same for query1 as for query2. If you think they should be different, then you should check that your table stats are up to date.

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

Sidebar

Related Questions

Scenario: Third party web service returns datetime in two separate fields i.e. date and
Scenario: I can't post the actual workbook due to sensitive materials but I'll explain
Scenario: I have opened Vim and pasted some text. I open a second tab
Scenario : I have a users table in my application. I also have two
Scenario: I am exporting a table Named Registration from access database and writing into
Scenario : I have n number of tabs each tab is having its own
Scenario Around 20 ASP.net(VB) applications share the same code framework and when deployed also
Scenario: I am writing a WCF client to access a Java/Metro webservice which requires
Scenario: Security (access only via credentials) should be enabled for some servlets, but for
Scenario A : To share a read/write block of memory between two processes running

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.