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

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
  • About
    1. Asked: November 19, 2021In: DBMS

      Write a trigger to ensure that no employee of age less than 25 can be inserted in the database.

      SUMIT
      SUMIT
      Added an answer on November 20, 2021 at 10:07 am

      AGE

      AGE

      See less
        • -7
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    2. Asked: November 20, 2021In: DBMS

      The following table has two attributes A and C where A is the primary key and C is the foreign …

      SUMIT
      SUMIT
      Added an answer on November 20, 2021 at 8:41 am

      When (2,4) is deleted. Since C is a foreign key referring A with delete on cascade, all entries with value 2 in C must be deleted. So (5, 2) and (7, 2) are deleted. As a result of this 5 and 7 are deleted from A which causes (9, 5) to be deleted.

      When (2,4) is deleted. Since C is a foreign key referring A with delete on cascade, all entries with value 2 in C must be deleted. So (5, 2) and (7, 2) are deleted. As a result of this 5 and 7 are deleted from A which causes (9, 5) to be deleted.
      See less
        • 1
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    3. Asked: November 20, 2021In: DBMS

      Compare the deferred-modification and immediate-modification version of the log-based recovery schemes, in terms of ease of implementation and overhead cost

      SUMIT
      SUMIT
      Added an answer on November 20, 2021 at 8:38 am

      The deferred-modification technique ensures transaction atomicity by recording all database modifications in the log, but deferring all write operations of a transaction until the transaction partially commits (i.e., once the final action of the transaction has been executed). Then the information iRead more

      The deferred-modification technique ensures transaction atomicity by recording all database modifications in the log, but deferring all write operations of a transaction until the transaction partially commits (i.e., once the final action of the transaction has been executed). Then the information in the logs is used to execute the deferred writes. If the system crashes or if the transaction aborts, then the information in the logs is ignored.

       

       

      The immediate-update technique allows database modifications to be output to the database while the transaction is still in the active state. These modifications are called uncommitted modifications. In the event of a crash or transaction failure, the system must use the old-value field of the log records to restore the modified data items.

      See less
        • 5
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    4. Asked: November 20, 2021In: DBMS

      Consider money is transferred from (1)account-A to account-B and (2) account-B to account-A. Which form a transaction will it be? …

      SUMIT
      Best Answer
      SUMIT
      Added an answer on November 20, 2021 at 8:37 am

      account-A to account-B: A’s Account Open_Account(A) Old_Balance = A.balance New_Balance = Old_Balance - 500 A.balance = New_Balance Close_Account(A) B’s Account Open_Account(B) Old_Balance = B.balance New_Balance = Old_Balance + 500 B.balance = New_Balance Close_Account(B) account-B to account-A: B’Read more

      account-A to account-B:
      A’s Account
      
      Open_Account(A)
      Old_Balance = A.balance
      New_Balance = Old_Balance - 500
      A.balance = New_Balance
      Close_Account(A)
      
      
      B’s Account
      
      Open_Account(B)
      Old_Balance = B.balance
      New_Balance = Old_Balance + 500
      B.balance = New_Balance
      Close_Account(B)
      
      
      account-B to account-A:
      
      
      B’s Account
      
      Open_Account(B)
      Old_Balance = B.balance
      New_Balance = Old_Balance - 500
      B.balance = New_Balance
      Close_Account(B)
      
      
      A’s Account
      
      Open_Account(A)
      Old_Balance = A.balance
      New_Balance = Old_Balance + 500
      A.balance = New_Balance
      Close_Account(A)
      See less
        • 7
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    5. Asked: November 19, 2021In: DBMS

      Create a package with procedure that shows the usage of the WHILE loop to calculate the average of user entered …

      SUMIT
      SUMIT
      Added an answer on November 19, 2021 at 9:21 pm

      calculate-the-average-of-user

      calculate-the-average-of-user

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

    Sidebar

    store ads

    Stats

    • Questions 1k
    • Answers 1k
    • Posts 141
    • Best Answers 89
    • Cloud Computing Notes 101: Learn Fundamentals, Service Models, and Virtualization!
    • This Free AI Tool Translates Entire Books in Minute !
    • 25 Essential Software Testing Questions: Flashcard Edition!
    • 27 C++ Questions & Answers – Quiz 1 Flashcards
    • Interactive Alphabet Flashcards for Kids: A to Z Learning Fun!

    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