Sign Up

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

Have an account? Sign In
Continue with Google
or use


Have an account? Sign In Now

Sign In

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

Sign Up Here
Continue with Google
or use

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.

Continue with Google
or use

Forgot Password?

Need An Account, Sign Up Here

You must login to ask a question.

Continue with Google
or use

Forgot Password?

Need An Account, Sign Up Here

Sorry, you do not have permission to add post.

Continue with Google
or use

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.

Oraask Logo Oraask Logo
Sign InSign Up

Oraask

  • Write
    • Add A New Post
    • Ask A Question

Oraask Navigation

Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Dev Tools
    • Online Compiler
    • Base64 Converter
    • Oraask XML Formatter
    • Oraask JSON Formatter
  • Wiki
    • SQL Tutorials
    • Java Tutorials
    • Python Tutorials
    • JavaScript Tutorials

Hassan AbdElrahman

MasterOracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
Ask Hassan AbdElrahman
1k Visits
29 Followers
0 Questions
Home/ Hassan AbdElrahman/Answers
  • About
  • Questions
  • Answers
  • Best Answers
  • Posts
  • Polls
  • Asked Questions
  • Comments
  1. Asked: July 19, 2017In: Oracle SQL

    Which one do better performance NOT IN vs NOT EXISTS ?

    Hassan AbdElrahman
    Best Answer
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on May 29, 2021 at 4:38 pm
    This answer was edited.

    Hi @Maran Firstly It’s not about the difference in performance only because they are not the same when dealing with nulls in the data. for example, we want to check how many employees are not managers of other employees by using NOT IN SELECT COUNT (*) FROM EMPLOYEES WHERE EMPLOYEE_ID NOT IN (SELECTRead more

    Hi Maran Firstly

    It’s not about the difference in performance only because they are not the same when dealing with nulls in the data.

    for example, we want to check how many employees are not managers of other employees by using NOT IN

    SELECT COUNT (*)
    FROM EMPLOYEES
    WHERE EMPLOYEE_ID NOT IN (SELECT MANAGER_ID FROM EMPLOYEES);

    the result will be :

    COUNT(*)
    ----------
    0

    This means all employees are managers in this case.

    let’s then take the same example but using NOT EXISTS

    SELECT COUNT (*)
    FROM EMPLOYEES EMP_1
    WHERE NOT EXISTS
    (SELECT NULL
    FROM EMPLOYEES EMP_2
    WHERE EMP_2.MANAGER_ID = EMP_1.EMPLOYEE_ID);

    the result will be :

    COUNT(*)
    ----------
    89

    So here, out of 101 employees, there are 89, not managers.

    The most crucial thing is NULL represented in the manager_id column for the first employee 101 (Steven King). So wherever null is there while using NOT IN or IN, the evaluation of the inner query will be either FALSE or NULL and will return no records.

    So now, when it comes to performance, it depends on the amount of data that both subquery and the outer query returns. If they are small, then IN is typically more appropriate. And vise versa. But remember, we have assumed that there are no nulls in the subquery result.

    Regards

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  2. Asked: July 19, 2017In: Oracle SQL

    How to select a random row in SQL& MySQL?

    Hassan AbdElrahman
    Best Answer
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on May 29, 2021 at 10:26 am
    This answer was edited.

    Hi Sam I don't know what the case you need this to, but anyway you can use the following query to get random row from employees table as an example. 1- Oracle : SELECT * FROM (SELECT * FROM EMPLOYEES ORDER BY DBMS_RANDOM.VALUE) WHERE ROWNUM = 1 2- MySQL : SELECT column FROM table ORDER BY RAND() LIMRead more

    Hi Sam

    I don’t know what the case you need this to, but anyway you can use the following query to get random row from employees table as an example. 1- Oracle :

    SELECT *
    FROM (SELECT *
    FROM EMPLOYEES
    ORDER BY DBMS_RANDOM.VALUE)
    WHERE ROWNUM = 1

    2- MySQL :

    SELECT column FROM table
    ORDER BY RAND()
    LIMIT 1

    The idea here in both examples is to get all rows in employees table but in random orders then using ROWNUM in Oracle and LIMIT clause in MySQL to return one row from them.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  3. Asked: March 6, 2017In: PL/SQL

    How to use COMMIT or ROLLBACK inside database trigger ?

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on May 25, 2021 at 9:54 pm

    Hello @albert Actually we cannot do commit or rollback inside a database trigger, because the trigger is an extension of a DML statements (Insert & Update & Delete). So the changes happened inside trigger should be committed or rollbacked as part of the original transaction. So if you are trRead more

    Hello albert

    Actually we cannot do commit or rollback inside a database trigger, because the trigger is an extension of a DML statements (Insert & Update & Delete). So the changes happened inside trigger should be committed or rollbacked as part of the original transaction.

    So if you are traying to do commit inside the trigger you will get clear exception which is :

    ORA-04092: cannot COMMIT in a trigger
    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  4. Asked: January 1, 2020In: Oracle Application Framework - OAF

    How to loop through VO View Object in OAF?

    Hassan AbdElrahman
    Best Answer
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on May 24, 2021 at 8:18 pm
    This answer was edited.

    Hello @Chandra, To iterate through a VO in OAF by either RowSetIterator and then loop through it to fetch attributes value, or using FilteredRows this will give us an advantage of getting only rows that meets a particular condition, or using RowQualifier this is similar to  FilteredRows but insteadRead more

    Hello Chandra,

    To iterate through a VO in OAF by either RowSetIterator and then loop through it to fetch attributes value, or using FilteredRows this will give us an advantage of getting only rows that meets a particular condition, or using RowQualifier this is similar to  FilteredRows but instead of typing the condition using VO attribute, we are write normal SQL condition.

    Now let’s see an example using the first option:

     

    OAApplicationModule oaapplicationmodule = pageContext.getApplicationModule(webBean);
    DeptEOVOImpl deptEOVO =
    (DeptEOVOImpl)oaapplicationmodule.findViewObject("DeptEOVO");

    DeptEOVORowImpl deptEOVORow = null;

    RowSetIterator deptRowSetIter = deptEOVO.createRowSetIterator("DeptRowSetIter");

    while(deptRowSetIter.hasNext())
    {
    deptEOVORow = (DeptEOVORowImpl)deptRowSetIter.next();
    System.out.println("DeptID-->"+ deptEOVORow.getDeptId() + " Dept Name-->"+ deptEOVORow.getDeptName());

    }
    deptRowSetIter.closeRowSetIterator();
    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  5. Asked: March 16, 2017In: Oracle E-Business Suite

    How To store WHO Column values In new custom forms ?

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on March 25, 2021 at 1:45 am

    Hello @Beter, To set who columns in a new custom form in oracle apps you have to follow this two basic steps: 1- you have to have the who columns which is (CREATION_DATE,CREATED_BY,LAST_UPDATED_BY,LAST_UPDATE_DATE and LAST_UPDATE_LOGIN) first created on the table whose your database block is based oRead more

    Hello Beter,

    To set who columns in a new custom form in oracle apps you have to follow this two basic steps:

    1- you have to have the who columns which is (CREATION_DATE,CREATED_BY,LAST_UPDATED_BY,LAST_UPDATE_DATE and LAST_UPDATE_LOGIN) first created on the table whose your database block is based on.

    2- Call fnd_standard.set_who; on (pre-insert & pre-update) triggers on block level.

    That’s it.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  6. Asked: March 6, 2021In: Python

    How to get the length of a list in Python?

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on March 6, 2021 at 10:51 pm

    len() function is used to get the length of a list in python Consider we have a list of numbers like this: numberList=[1,3,4,5,7] So to get the length we can use len(numberList) And the result will be : 5 elements in the list

    len() function is used to get the length of a list in python

    Consider we have a list of numbers like this:

    numberList=[1,3,4,5,7]
    

    So to get the length we can use

    len(numberList)

    And the result will be : 5 elements in the list

    See less
      • 2
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  7. Asked: May 5, 2020In: Python

    How to concatenate strings in Python?

    Hassan AbdElrahman
    Best Answer
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on March 6, 2021 at 1:48 am

    Hi @Rain, To concatenate strings in Python we have to use " + " operator ex : 'Oraask' + '.com' hope that help.

    Hi Rain,

    To concatenate strings in Python we have to use ” + ” operator

    ex : ‘Oraask’ + ‘.com’

    hope that help.

    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  8. Asked: February 25, 2021In: Oracle Application Framework - OAF

    How To Enable OAF Personalization In Oracle APPS R12

    Hassan AbdElrahman
    Best Answer
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on February 25, 2021 at 10:52 pm
    This answer was edited.

    Hello Maram, To enable personalization link on OAF pages in Oracle EBS you have to set these system profile options with corresponding values : Profile Name Value FND: Personalization Region Link Enabled Yes Personalize Self-Service Defn Yes Disable Self-Service Personal No Hopefully this will helpRead more

    Hello Maram,

    To enable personalization link on OAF pages in Oracle EBS you have to set these system profile options with corresponding values :

    Profile Name Value
    FND: Personalization Region Link Enabled Yes
    Personalize Self-Service Defn Yes
    Disable Self-Service Personal No

    Hopefully this will help you. Regards

    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  9. Asked: February 19, 2021In: Oracle SQL

    How to grant read and write on directory in oracle ?

    Hassan AbdElrahman
    Best Answer
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on February 21, 2021 at 8:21 pm
    This answer was edited.

    To give a particular user permission on oracle directory we can use the following commands: — Grant read permission to oraask user GRANT READ on DIRECTORY &directory_name to oraask; — Grant write permission to oraask user GRANT WRITE on DIRECTORY &directory_name to oraask; — Grant read/writeRead more

    To give a particular user permission on oracle directory we can use the following commands:

    — Grant read permission to oraask user

    GRANT READ on DIRECTORY &directory_name to oraask;

    — Grant write permission to oraask user

    GRANT WRITE on DIRECTORY &directory_name to oraask;

    — Grant read/write permissions to oraask user at one command

    GRANT READ,WRITE on DIRECTORY &directory_name to oraask;

    Hope this helpful.

    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  10. Asked: February 17, 2021In: Oracle Ebs Api’s

    API to update AR invoice in oracle apps R12?

    Hassan AbdElrahman
    Best Answer
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on February 18, 2021 at 6:51 pm

    Hello @matheo, Unfortunately this functionality doesn't exist until now. There is no Public API available from Oracle to update AR invoice. And regarding the API you mentioned in your question it's not the correct API, and please don't use it because basically it's not public and official released fRead more

    Hello matheo,

    Unfortunately this functionality doesn’t exist until now. There is no Public API available from Oracle to update AR invoice.

    And regarding the API you mentioned in your question it’s not the correct API, and please don’t use it because basically it’s not public and official released from oracle as per this Doc ID 1388129.1.

    The only way for now to update AR transaction is to perform this action from application specifically from  transaction workbench.

    Hope That will help you.

    Best Regards.

    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
1 … 5 6 7 8 9 … 17

Sidebar

Adv 250x250

Explore

  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Dev Tools
    • Online Compiler
    • Base64 Converter
    • Oraask XML Formatter
    • Oraask JSON Formatter
  • Wiki
    • SQL Tutorials
    • Java Tutorials
    • Python Tutorials
    • JavaScript Tutorials

Footer

Oraask

About

Oraask is a website for developers and software engineers who want to learn new skills, share their knowledge, and solve their coding problems. Oraask provides free content on various programming languages and topics, such as Oracle, Python, Java, etc. Oraask also allows users to ask questions and get answers from other members of the community.

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy
  • Terms & Conditions

Follow

Oraask is licensed under CC BY-NC-SA 4.0Oraask CopyrightOraask CopyrightOraask CopyrightOraask Copyright

© 2019 Oraask. All Rights Reserved
With Love by Oraask.