الانتقال إلى المحتوى

المساعده فى حل واجب pl-sql


ericxy

Recommended Posts

بسم الله الرحمن الرحيم

السلام عليكم و رحمة الله و بركاته

عندي واجب طويل من 20 فقرة و حليتها باقي 3 فقرات مو فاهمها فيا ليت تساعدوني مثلما تعودت منكم

الله لا يحرمكم الأجر




1. Write a PL/SQL function called MoneyTransferWithoutLoan that makes the transfer of an account with the account ID debitAccount to an account with the account ID creditAccount from the table Account of the amount Money.
Before making the transfer, the function must check if the account to debit contains enough money in the debitAccount. In this case, the function performs the money transfer and returns a TRUE value. If not, the transfer will not be performed and the function returns a FALSE value.



2. Write a PL/SQL block that asks the user to enter the debitAccount number, creditAccount number and the amount of money, and that uses MoneyTransferWithoutLoan function to transfer the amount of 2000 SAR from the account AC102 to the account AC103. Finally, it prints “The money transfer has been correctly executed” if the result if true, otherwise, it prints “The money transfer has failed. No available credit”.




3. Write a PL/SQL block that adds the amount of 2000 SAR to the accounts of all Professors in the Bank Al-Rajhi.

تم تعديل بواسطة ericxy
رابط هذا التعليق
شارك

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   تمت استعادة المحتوى السابق الخاص بك.   مسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

جاري التحميل
×
×
  • أضف...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية