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

Can You Help Me Writing A View

Featured Replies

بتاريخ:

need to create a view
thats return every customer name with sum of pending invoice for each year (only the first 6 years)


ie:
create view xx
as
select customer_name,pend(2008),pend(2007),pend(2006),pend(2005),pend(2004),pend(2003),
pend(before 2003)
from xxxx

Can you help me in creating the functions
& the big view?


note:
There is a column called (pending date) in the table.

[/size][/size[/size]]

بتاريخ:

ممكن توضح المشكله اكتر
يعنى مثلا
customer_name,pend(2008),pend(2007),pend(2006)
كلهم من جدول واحد


وانت عاوز تعمل فيهم ايه بالظبط
ياريت توضح وربنا يقدرنى واقدر افيدك

بتاريخ:

مرحبا

create or replace view abc as select sum(a),customer_name,to_char(pend,'yyyy')
from table where to_char(pend,'yyyy') between 2003 and 2008
group by customer_name,to_char(pend,'yyyy');

بتاريخ:
  • كاتب الموضوع
need to create a view
thats return every customer name with sum of pending invoice for each year (only the first 6 years)


ie:
create view xx
as
select customer_name,pend(2008),pend(2007),pend(2006),pend(2005),pend(2004),pend(2003),
pend(before 2003)
from xxxx

Can you help me in creating the functions
& the big view?


note:
There is a column called (pending date) in the table.

[/size][/size[/size]]


---------------------------------------------------------------------------------------------------------------
أخواني : أبغى الفيو تعمل التالي
ترجع Pending_invoice لعميل معين في مثلا سنة 2008
و ترجع Pending_invoice لعميل معين في مثلا 2007
وهكذا حتى مثلا 2003
وماقبل هذه السنة : يرجع sum pending invoice كمجموع كامل ممكن نسميه : Before 2003

هل عشان أطلع pending invoice لكل سنة لازم أعمل function
وماهو الكود الصحيح لكتابة function

يعني أعمل function لكل سنة يآخذ current year
ويستدعية تاني مرة ويآخذ current year -1
.current year -2
.
.وهكذا
ثم Function آخر يحسب مجموع pending invoice ماقبل أول 5 سنين


ان شاء الله وضحت .........
أرجووووو الافادة

وشكرااااااااااااا على الردود

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

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

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

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

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

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.