الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

مساعدة في ايجاد الكود المناسب

Featured Replies

بتاريخ:

مساء الخير

 

عندي واجب في pl/sql و للحين مش عارفة أكمل االبلوك كامل

 

هذا السؤال

 

Consider the following STU table exist in a certain database:

Stu_Id                  Name                     Specialization

 

1                           mohammed ali                   1

 

2                          fatima abdullah                    2

 

3                          ahmed ali                             1

 

4                            badar saleh                        2

 

5                           marwa mohammed           1

 

6                            khuloud abdullah               3

 

 

 

Create a PL/SQL block to modify the records of the STU table based on the following criteria:

 Student Id must be in the format 14FXXXX e.g. 14F1001, 14F1002

 Student name must be in such a way that first letter of each word should be in upper case. E.g. Mohammed Ali, Fatima Abdullah etc.

 Specialization should be modified as follows:

o Software Technology for 1

o Hardware and Networking for 2

o Multimedia for 3

 Display the name of specialization having least number of students.

 

Note: The code must be written in one block only.

 

 

 

 

بليز ساعدوني فيه ضروري

بتاريخ:

البلوك مطلوب عند الاضافة ولا فحص وتعديل على البيانات الموجودة بالجداول

بتاريخ:

مبدئيا بالنسبة لحالة الاسماء فا ممكن تستخدم البلوك ده

declare
cursor c is select * from STU;
begin
for i in c loop
update STU set name = (select INITCAP(name) from stu where stu_id = i.stu_id)
where stu_id = i.stu_id;
end loop;
end;

ممكن نفكر بعد كده فى طريقة لحيث اننا نعدل فى نفس البلوك

بتاريخ:
  • كاتب الموضوع

أنا استخدمت هذا الكود

و صارت مع التغيرات في stu_id and name

بس ما وصلت لطريقة تغير السبلايزيشن  المستر قال ممكن نستخدم فيها for loop  و بعدها ابديت :wacko:  بس ما عرفت الحل الصحيح

declare
stu varchar2(20);
begin
update student
set stu_id='14foo'||stu_id ;
update student
set Name= INITCAP (name);
end;

ولو في حد عنده طريقة ثانيه لإبديت الايدي ياريت يفيدني بيها

بتاريخ:
  • كاتب الموضوع

البلوك مطلوب عند الاضافة ولا فحص وتعديل على البيانات الموجودة بالجداول

 تعديل في البيانات الموجودة

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

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

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

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

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

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.