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

سؤال : Find The Date Of Last Friday Of Any Month

Featured Replies

بتاريخ:

hi friends
i have question and i hope to get from anybody maybe could help me
the question is::
i want to write query in sql*plus environment to find the date of last friday of any month









and i can't say more than god bless all of you

بتاريخ:

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

Find last_day of the month, go back 7 days, find next_day Friday.





select NEXT_DAY( (LAST_DAY(SYSDATE) - 7) , 'FRIDAY') "Next Friday" from dual









Next Frid
---------
28-DEC-12


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

مشكور اخي علي الرد السريع لكن انا كان سؤالي انو تاريخ اخر جمعة من اي شهر والحمدلله اظن وصلت لطريقة ربما تكون صحيح
select round(to_date('29-feb-12','dd-mon-yy'),'day)-2 from dual;i,
علي حسب علمي التواضع انو لمن تمنشن اليوم الاوراكل يعطيك يوم الاحد ولمن انقض اثنين يعطيني يوم الجمعة
select round(to_date('01-feb-12','dd-mon-yy'),'day')+5 from dual
ايضا في الكيوري الفوق ممكن احصل علي اول يزم جمعة من اي شهر
عموما انا مبتدئ في هذا المجال وجربت هذه الطريقة وحصلت علي نتائج صحيحة
وبشكرك شديد اخي امجد علي سرعة استجابتك

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

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

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

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

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

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.