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

ashishpandey

Explorer
Ask ashishpandey
44 Visits
1 Follower
0 Questions
Home/ ashishpandey/Answers
  • About
  • Questions
  • Answers
  • Best Answers
  • Posts
  • Polls
  • Asked Questions
  • Comments
  1. Asked: March 20, 2017In: Oracle SQL

    Convert number of seconds to Hours:Minutes:Seconds format

    ashishpandey
    ashishpandey Explorer
    Added an answer on March 28, 2017 at 8:47 am

    Hi, SELECT TO_CHAR(SYSDATE,'SSSSS') FROM DUAL; -- will return like 54071SELECT TO_CHAR(TO_DATE(54071,'SSSSS'),'HH24:MI:SS') FROM DUAL;-- will RETURN like 15:01:11 It will help

    Hi,

     

    SELECT TO_CHAR(SYSDATE,’SSSSS’) FROM DUAL; — will return like 54071

    SELECT TO_CHAR(TO_DATE(54071,’SSSSS’),’HH24:MI:SS’) FROM DUAL;– will RETURN like 15:01:11

     

    It will help

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

    What is the difference between schema and user ?

    ashishpandey
    ashishpandey Explorer
    Added an answer on March 27, 2017 at 7:09 am

    User is a credential to log-into to the database.Schema is group of objects of databse to be used for same purpose.One schema cam have multiple users to log into

    User is a credential to log-into to the database.

    Schema is group of objects of databse to be used for same purpose.

    One schema cam have multiple users to log into

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  3. Asked: June 14, 2016In: Oracle SQL

    get number of days between two dates column in oracle sql?

    ashishpandey
    ashishpandey Explorer
    Added an answer on March 27, 2017 at 7:06 am
    This answer was edited.

    Hi, Like this we can use: SELECT pol_fm_dt, pol_to_dt, ROUND(pol_to_dt - pol_fm_dt) FROM pgit_policy;  

    Hi, Like this we can use:

    SELECT pol_fm_dt, pol_to_dt, ROUND(pol_to_dt - pol_fm_dt) FROM pgit_policy;

     

    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  4. Asked: March 4, 2017In: PL/SQL

    How to execute multiple procedures simultaneously ?

    ashishpandey
    ashishpandey Explorer
    Added an answer on March 27, 2017 at 6:39 am

    Hi,   Its better you can create different jobs for each procedure and setting their time same to start execution.

    Hi,

     

    Its better you can create different jobs for each procedure and setting their time same to start execution.

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

    How to use COMMIT or ROLLBACK inside database trigger ?

    ashishpandey
    ashishpandey Explorer
    Added an answer on March 27, 2017 at 6:32 am

    Hi, You can creater a procedure to insert into your test_table_log table with parameter of the columns of thie table.   Then on your test_table table trigger call this procedure by passing the values. Commit will be in your calling procedure. So it will work.

    Hi,

    You can creater a procedure to insert into your test_table_log table with parameter of the columns of thie table.

     

    Then on your test_table table trigger call this procedure by passing the values.

    Commit will be in your calling procedure. So it will work.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  6. Asked: June 20, 2016In: PL/SQL

    Return more than one row from stored procedure in pl/sql

    ashishpandey
    ashishpandey Explorer
    Added an answer on March 24, 2017 at 6:26 am

    CREATE OR REPLACE PROCEDURE pr_return_multiple_out(p_row_number VARCHAR2) IS CURSOR c0 IS SELECT pol_no, pol_assr_name FROM pgit_policy WHERE ROWNUM <= p_row_number; BEGIN FOR i IN c0 LOOP dbms_output.put_line(i.pol_no||' : '||i.pol_assr_name); END LOOP; EXCEPTION WHEN OTHERS THEN dbms_output.putRead more

    CREATE OR REPLACE PROCEDURE pr_return_multiple_out(p_row_number VARCHAR2) IS
    CURSOR c0 IS
    SELECT pol_no, pol_assr_name FROM pgit_policy WHERE ROWNUM <= p_row_number;
    BEGIN
    FOR i IN c0 LOOP
    dbms_output.put_line(i.pol_no||’ : ‘||i.pol_assr_name);
    END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line(SQLERRM);
    END pr_return_multiple_out;
    /

    —————-Calling by passing number of output we want

    BEGIN
    pr_return_multiple_out(4);
    END;
    /

    See less
      • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp

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.