الانتقال إلى المحتوى
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.

عندي Qize أبي إجابات(انا مبتدئة) يعني سهل

Featured Replies

بتاريخ:

عندي أسئلة بسيطة تتعلق بـ Sql وأيضاً بـ pl-Sql

السؤال الأول:

STUDENTS هذا أسم الجدول يتكون من الحقول التالية:

حقل ID من نوع Number 5,0

حقل NAME من نوع Varchar2(80

حقل BIRTHDATE من نوع Date

-----------------------------------------------------------------------------

1) Identify all errors and correct if possible:
Begin
Declare y varchar2(50);
Select BIRTHDATE INTO y
FROM STUDENTS;
End;

Begin
Select NAME INTO y
FROM STUDENTS
WHERE ID = 100;
END;
________________________________________
2) Write the code to generate next ID automatically of a new inserted student. ID should be 10, 20, 30…
Where this code is written?
________________________________________
3) Write the code to extract the name of the oldest student:-
a ) single SQL statement.
b ) using PL/SQL code.
________________________________________
4) Generate the table, Build o form based on this table, Enter data, Test the code to identify errors.
________________________________________
5) Explain the difference between inner and outer joints. Give Example.
________________________________________
6) Write SQL statement to extract the family name of the student. Knowing that family name is the last written word of the name.
________________________________________
7) On the form based on table students. Add a display item to extract the total number of stored students.
Where should the code to update this item be written?


((لتظهر الأسئلة بشكل صحيح يمكن نسخ الأسئلة ولصقها في الوورد)

اتمنى لو الإجابة على البعض..
لن أنسى لكم فضل المساعدة وكان ذلك في موازين أعمالكم ..

تحيتي لكم وبإنتظار الجميع ..
مزن

تم تعديل بواسطة مـــزن

بتاريخ:

الجواب لبعض الاسئله وسوف نلحق بقيه الاجوبه لاحقا نظرا لضيق الوقت:
Identify all error and correct if possible:
Declare
Y date;
Begin
Select birthdate into y from students;
End;
Declare
Y students.name%type;
Begin
Select name into y from students
Where id=100;
End;
لانشاء رقم تسلسلي
Create sequence st_id
Start with 10
Increment by 10;
لادخال الرقم التالي
Insert into students (id) values(st_id.nextval);
ويمكن عمل اجراء لادخال رقم الطالب بشكل متكررلعدد خمس مرات مثلا:
Begin
For i in 1..5 loop
Insert into students (id) values(st_id.nextval);
End loop;
End;
We write the code in the procedure to generate sequence number for the student id .
3-
Sql statement:
Select name from students
Where birthdate=min(birthdate);
Plsql code:
Declare
N varchar2(80);
Begin
Select name into n from students
Where birthdate=min(birthdate);
End;
وان شاء الله تكون الاجابات صحيحه وماعدى السهو والخطاء
وبقية الاجوبه في وقت اخر..
وشكرا.. ولمراسلتي على الايميل التالي :
[email protected]

بتاريخ:

ßá ÚÇã æÃäÊã ÈÎíÑ
ÇÎÊí / ãÒä


ÇáÓÄÇá ÇáÑÇÈÚ ÛíÑ ãÝåæã åæ íÚäí Úãá ÝæÑã Úä ØÑíÞ ÝæÑã ÈáÏÑ æÇÎÊíÇÑ ßÊáÉ ÈíÇäÇÊ ÇáØáÇÈ æáßä ãÇÐÇ íÚäí ÈÝÍÕ ÇáÔÝÑå ÃíÔ ãä ÔÝÑå ÃÚÊÞÏ áã íßÊãá ÇáÓÄÇá

ÇáÓÄÇá ÇáÎÇãÓ :

Outer join

ãËÇá

Sql>select e.name,d.deptno,d.dname

From emp e,dept d

Where e.deptno(+)=d.deptno;

Inner join (self join)

ãËÇá

Sql>select worker.ename||’works for’||manager.ename

Where worker.mgr=manager.empno;

ÇáÓÄÇá ÇáÓÇÏÓ :

íÑíÏ ÞáíáÇ ãä ÇáÊÝßíÑ Ýí ÇÓÊÎÏÇã ÇáÏæÇá ÇáäÕíå ãËá

Substr(column,start position,number of characteres)

Ltrim(),rtrim(),etc..

Çä ÔÇÁ Çááå ÓÇÝßÑ ÝíåÇ æÇÚØíßí ÇíÇå áÇäå áã íãÑ Úáí åÐÇ ÇáÓÄÇá ãä ÞÈá

ÇáÓÄÇá ÇáÓÇÈÚ:

ääÔÆ ÊÑíÌÑ ÇáÊÍÞÞ áÚäÕÑ ÇáÚÑÖ ßãÇ íáí:

When_validate_item trigger:

Select count(id) into :students.display_item from students;

æÇä ÔÇÁ Çááå Êßæä ÇáÇÌÇÈÇÊ ÕÍíÍå áÇäí áã ÇÓÊÛÑÞ æÞÊ ßËíÑ ááÊÃßÏ ãäåÇ

æØÇáãÇ ÇäÊí ãÈÊÏÆå Çä ÔÇÁ Çááå äÓÊØíÚ ÊÔÌíÚß .....æãÚ ÎÇáÕ ÇáÊÍíå
ولقد ارسلت نسخه من هذا الىبريدك
وبامكانك مراسلتي عبر الايميل او الماسنجرعندمواجهتك أي مشكله
[email protected]

بتاريخ:

لا أعرف ما المشكله مع العربي

بتاريخ:

اذا لم يصل الرد واضح الى الايميل , يرجى تنبيهي لارساله مره اخرى
وعفوا على عدم وضوح الرد هنا بالرغم اني نسخت من الوورد
وشكـــــــــرا

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

وصلتني الإجابة وكانت في غاية الوضوح والدقة ..
أسأل المولى أن يثيبك بكل حرف أضعافاً مضاعفة ..

من الأعماق شكراً ..

مزن

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

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

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

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

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

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.