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

محتاجه مساعده بخصوص Sql والـ Normalization

Featured Replies

بتاريخ:


السلام عليكم.. لو سمحتوا .. محتاجه مساعده ضروريه
عندي بعض الاسئله ومحتاجه اجابتها

وهذي اسالتي

بالنسبه لاول صوره.. صورة كلاس دايجرام بتوضح الجداول اللي ترفعت لقاعده البيانات مع اسماء الاعمده الخاصه لكل جدول مندرجه تحت اسم الجدول .. والاساله عباره انه اكتب الـ
SQL
الخاص لكل طلب

i8Z68080.gif

وهذي الاساله المطلوبه

On average, which sold in less time: male cats or female cats?

List the employees and their total merchandise sales expressed as a percentage of total
merchandise sales for all employees.

Which cat products with a quantity on hand greater than 500 have not been sold in the
month of July?

============

والجزء التاني من السؤال.. هذي الصوره مع السؤال

i8N68260.jpg





فهو طلب نرسم الكلاس ديجرام لهذي الداتا ونعمل الـ

Normalization

الخاصه فيها

بتمنى احد يساعدني . ومشكورين مقدما

بتاريخ:

السلام عليكم اخي ...

اجابة الجزء الاول من سؤالك هو:

1-

select Gender , min(avg_Price)
from ( select  a.Gender , avg(sa.SalePrice) avg_Price 
from SaleAnimal sa, Animal a
where sa.AnimalID = a.AnimalID and a.Category = 'Cat'
group by a.Gender   
)


2-

select emp.Employee_id , emp.Firstname , emp.Lastname , avg(si.SalePrice) * 100 Per_avg_total    
from Employee emp , Sale s, SaleItem si 
where emp.EmployeeID = s.EmployeeID and s.SaleID = si.SaleID
group by  emp.Employee_id , emp.Firstname , emp.Lastname


3-

select m.Category , sum(m.QuantityOnHand)
from Mechandise m
where 0 = (select sum(si.SalePrice)
        from SalePrice si, Sale s , Mechandise iner_m
	 where si.SaleID = s.SaleID and iner_m.ITEMID = si.ITEMID and to_char(s.SaleDate,'MONTH') = 'July' and iner_m.Category = m.Category)
Group by m.Category
having sum(m.QuantityOnHand) > 500



وانتظر مني جواب الجزء الثاني

والسلام عليكم

بتاريخ:

السلام عليكم

جواب السؤال الثاني مرفق, الرجاء تحميله
واذا يوجد اي استفسار فانا بالخدمة

سلام

Pizza_Shop_Class_Diagram.doc

بتاريخ:

ج2 بالصورة

post-5917-1227509547_thumb.jpg

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

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

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

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

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

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.