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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:11:13+00:00 2026-06-03T04:11:13+00:00

Friends while executing where clause in Oracle SQL suppose I have UPDATE schema1.TBL_SCHEMA1_PROCESS_FEED F

  • 0

Friends
while executing where clause in Oracle SQL suppose I have

UPDATE schema1.TBL_SCHEMA1_PROCESS_FEED F
                 SET F.TBL_SCHEMA1_PROCESS_LINE_ID      = V_LINE_ID,
                     F.TBL_SCHEMA1_PROCESS_LINE_TYPE_ID = V_LINE_TYPE_ID,
                     F.TBL_SCHEMA1_PROCESS_LINE_SUB_TYPE_ID = V_SUB_TYPE_ID,
               WHERE F.CURR_DATE = V_CURR_DATE  
               AND   F.NEXT_DATE = V_NEXT_BUSINESS_DATE OR F.NEXT_DATE IS NULL;

How this code can be optimized for the condition

F.NEXT_DATE = V_NEXT_BUSINESS_DATE OR F.NEXT_DATE IS NULL
  • 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-03T04:11:14+00:00Added an answer on June 3, 2026 at 4:11 am

    Is that your actual where clause? Do you mean it to be:

    WHERE F.CURR_DATE = V_CURR_DATE  
      AND ( F.NEXT_DATE = V_NEXT_BUSINESS_DATE 
            OR F.NEXT_DATE IS NULL )
    

    If so then you need an index, unique if possible, on curr_date.

    If you’re not satisfied that this provides a large enough improvement in the execution time then think about extending it to curr_date, next_date. Don’t create a larger index if you don’t need to.

    You might also consider chaning your conditions slightly, though I doubt it would make much, if any, difference.

    WHERE F.CURR_DATE = V_CURR_DATE  
      AND NVL(F.NEXT_DATE, V_NEXT_BUSINESS_DATE) = V_NEXT_BUSINESS_DATE 
    

    The best possible option is, to update using the rowid. Without a lot more information it’s impossible to know if you’re in a situation where this might be possible but as the rowid is a unique address in the table it always is quicker than indexes, when updating a single row. If you’re collecting data from this table then populating your variables before writing back to the table then this would be possible.

    Are those your actual schema and table names… if they are then why not think about chosing something more descriptive?

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

Sidebar

Related Questions

Hi friends hope all r doing well. I have a problem while reading xml
Hi friends hope all r doing well. I have a problem while reading xml
friends, i have created custom title bar using following titlebar.xml file with code <?xml
Friends, I have a strange need and cannot think my way through the problem.
friends, i have a EditText on simple activity with a button. when every i
Friends, If I want to know about the new features of Oracle 11gR2 Database
Hello friends I am getting the following error while making the foreign key 'tbl_course'
My friends tell me that a special loop exists that isn't a 'while' loop
I have a problem selecting 6 random friends This is the query I've got
Friends, I set up an AlarmManager within my application. The AlarmManager is scheduled to

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.