Sign Up

Have an account? Sign In Now

Sign In

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

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

SIKSHAPATH

SIKSHAPATH Logo SIKSHAPATH Logo

SIKSHAPATH Navigation

  • Home
  • Questions
  • Blog
    • Computer Science(CSE)
    • NPTEL
    • Startup
  • Shop
    • Internshala Answers
Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Home
  • Questions
  • Blog
    • Computer Science(CSE)
    • NPTEL
    • Startup
  • Shop
    • Internshala Answers
Home/Comments/Page 192
  1. Asked: October 19, 2021In: DBMS

    Q.Write a program in PL/SQL to insert records from one table to another.

    Professor
    Best Answer
    Professor
    Added an answer on October 19, 2021 at 8:14 pm

    DOWNLOAD ATTACHMENT:

    DOWNLOAD ATTACHMENT:

    See less
    Attachment

      • 0
    • Share
      Share
      • Share on WhatsApp
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
  2. Asked: October 19, 2021In: DBMS

    Write a program in PL/SQL to print the value of a variable inside and outside a loop using LOOPEXIT statement.

    JonSnow07
    Best Answer
    JonSnow07
    Added an answer on October 19, 2021 at 6:44 pm

    Download the attachment for answer.

    Download the attachment for answer.

    See less
    Attachment

      • 0
    • Share
      Share
      • Share on WhatsApp
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
  3. Asked: October 19, 2021In: DBMS

    Write a program in PL/SQL to check whether a number is prime or not using goto statement with for loop.

    JonSnow07
    JonSnow07
    Added an answer on October 19, 2021 at 6:39 pm

    DOWNLOAD ATTACHMENT FOR ANSWER

    DOWNLOAD ATTACHMENT FOR ANSWER

    See less
    Attachment

      • 0
    • Share
      Share
      • Share on WhatsApp
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
  4. Asked: October 19, 2021In: DBMS

    Write a program in PL/SQL to check whether a number is prime or not using goto statement with for loop.

    Amina
    Best Answer
    Amina
    Added an answer on October 19, 2021 at 12:34 am

    declare n number; i number; flag number; begin i:=2; flag:=1; n:=7; for i in 2..n/2 loop if mod(n,i)=0 then flag:=0; exit; end if; end loop; if flag=1 then dbms_output.put_line('prime'); else dbms_output.put_line('not prime'); end if; end; /   Output is attached below:

    declare
    n number;
    i number;
    flag number;

    begin
    i:=2;
    flag:=1;
    n:=7;

    for i in 2..n/2
    loop
    if mod(n,i)=0
    then
    flag:=0;
    exit;
    end if;
    end loop;

    if flag=1
    then
    dbms_output.put_line(‘prime’);
    else
    dbms_output.put_line(‘not prime’);
    end if;
    end;
    /

     

    Output is attached below:

    See less
    Attachment

      • -1
    • Share
      Share
      • Share on WhatsApp
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
  5. Asked: October 19, 2021In: DBMS

    Write a program in PL/SQL to show the uses of nested loop.

    Amina
    Amina
    Added an answer on October 19, 2021 at 12:24 am
    This answer was edited.

    DECLAREi number(3);j number(3);BEGINi := 2;LOOPj:= 2;LOOPexit WHEN ((mod(i, j) = 0) or (j = i));j := j +1;END LOOP;IF (j = i ) THENdbms_output.put_line(i || ' is prime ');END IF;i := i + 1;exit WHEN i = 40;END LOOP;END;/

    DECLARE
    i number(3);
    j number(3);
    BEGIN
    i := 2;
    LOOP
    j:= 2;
    LOOP
    exit WHEN ((mod(i, j) = 0) or (j = i));
    j := j +1;
    END LOOP;
    IF (j = i ) THEN
    dbms_output.put_line(i || ' is prime ');
    END IF;
    i := i + 1;
    exit WHEN i = 40;
    END LOOP;
    END;
    /
    See less
    Attachment

      • 0
    • Share
      Share
      • Share on WhatsApp
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
  6. Asked: October 18, 2021In: Programming Language

    1. Create a class of SalesPersons as a thread that will display five salespersons names. 2. Create a class as Days as other Thread that has an array of seven days. 3. Call the instance of SalesPersons in Days and start both the threads 4. suspend SalesPersons on Sunday and resume on Wednesday Note: use suspend, resume methods from the thread

    shubham shrivastava
    shubham shrivastava
    Added an answer on October 18, 2021 at 11:18 pm

    C++ Code with Output

    C++ Code with Output

    See less
    Attachment

      • 0
    • Share
      Share
      • Share on WhatsApp
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
1 … 190 191 192 193 194

Sidebar

store ads

Stats

  • Questions 1k
  • Answers 1k
  • Posts 149
  • Best Answers 89
  • This Free AI Tool Translates Entire Books in Minute !
  • AI News: 🎬 Hollywood’s AI Studios, 🎓 OpenAI’s Latest Gift to Educators, 🚚 Class8 Bags $22M, 🧠 Google Gemini’s Memory Upgrade
  • AI NEWS: Legal Action Against OpenAI, $16M Paid, & Elon Musk’s Praise from Investor 🤖💰📑 | AI Boosts Cloud Seeding for Water Security 🌱💧
  • AI News: 🎬AI Video Tool Scam Exposed🤯, 🛰️ AI-Powered Drones to Ukraine 😱, Google’s $20M AI Push, Sam Altman Joins SF’s Leadership Team
  • AI News: 🤝 Biden Meets Xi on AI Talks, 💡 Xavier Niel’s Advice for Europe, ♻️ Hong Kong’s Smart Bin Revolution, 🚀 AI x Huawei

Explore

  • Recent Questions
  • Questions For You
  • Answers With Time
  • Most Visited
  • New Questions
  • Recent Questions With Time

Footer

SIKSHAPATH

Helpful Links

  • Contact
  • Disclaimer
  • Privacy Policy Notice
  • TERMS OF USE
  • FAQs
  • Refund/Cancellation Policy
  • Delivery Policy for Sikshapath

Follow Us

© 2021-24 Sikshapath. All Rights Reserved