بتاريخ: 8 يناير 201313 سنة comment_230951 أرجوا منكم يا اخواني ان تساعدوني في الاستعلامين التاليين من HR schema الاول : اعطيني كل قسم كم فيه عدد وظائف (بإستخدام Distinct) ؟ الثاني : اعطيني أول يوم اثنين بعد ستة أشهر كتابة ؟ شاكر لكم حسن تعاونكم تقديم بلاغ
بتاريخ: 10 يناير 201313 سنة comment_230990 ده اجابه السؤال التانى معلش مش عندى اتش ار سكيما وغير السبت لليوم اللى انت عاوزه SELECT next_day(add_months (trunc(sysdate,'year'),6),'السبت') from dual; تقديم بلاغ
بتاريخ: 12 يناير 201313 سنة كاتب الموضوع comment_231057 مشكور على الحل يا اخويا احمدجزاك الله خير وكتبه في ميزان حسناتك تقديم بلاغ
بتاريخ: 14 يناير 201313 سنة كاتب الموضوع comment_231119 ده اجابه السؤال التانى معلش مش عندى اتش ار سكيما وغير السبت لليوم اللى انت عاوزه SELECT next_day(add_months (trunc(sysdate,'year'),6),'السبت') from dual; يا اخي احمد انا قمت بتجربة الكيوري السابقوالنتيجة انه اعطاني التاريخ المطلوب ولكن ارقامفهل اقدر اطلع النتيجة كتابة بدل من الارقاموشكرا تم تعديل 14 يناير 201313 سنة بواسطة Jaaver تقديم بلاغ
بتاريخ: 14 يناير 201313 سنة comment_231124 لو قصدك كده يبقى ده الكود TO_CHAR(NEXT_DAY(ADD_MONTHS(TRUNC(SYSDATE,'YEAR'),6),'السبت'),'DAY-MONTH-YEAR') ------------------------------------------------------------------------------- السبت -يوليو -Twenty Thirteen SELECT to_char(next_day(add_months (trunc(sysdate,'year'),6),'السبت'),'Day-Month-Year') from dual; تم تعديل 14 يناير 201313 سنة بواسطة ahmed.arafa تقديم بلاغ
بتاريخ: 9 فبراير 201313 سنة comment_232148 create or replace procedure emp_procedure (dept_id in employees.department_id %type)is cursor dept_cursor is select department_id from employees where department_id = dept_id;dept_records dept_cursor %rowtype;cursor emp_cursor is select count(*) total_jobs from (select distinct job_id from employees where department_id = dept_id) ;emp_records emp_cursor %rowtype;beginopen emp_cursor ;open dept_cursor ;loopfetch emp_cursor into emp_records ;exit when emp_cursor %notfound ;fetch dept_cursor into dept_records;exit when dept_cursor %notfound;dbms_output.put_line ('the department number is '||' '||dept_records.department_id || ' and total jobs in that department is'||' '||emp_records.total_jobs) ;end loop;end emp_procedure ;/show errors procedure emp_procedure;/create or replace procedure emp_procedure_1 iscursor emp_cursor is select distinct department_id from employees where department_id is not null ;emp_records emp_cursor %rowtype;beginopen emp_cursor ;loopfetch emp_cursor into emp_records ;exit when emp_cursor %notfound ;emp_procedure (emp_records.department_id);end loop;end emp_procedure_1 ;/beginemp_procedure_1;end; تقديم بلاغ
بتاريخ: 9 فبراير 201313 سنة comment_232149 select count(*) , department_id from (select distinct job_id , department_id from employees) where department_id is not nullgroup by department_id order by department_idexcute it1 102 202 301 403 501 601 702 802 902 1002 110; تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.