SQL and PL/SQL
Oracle SQL and PL/SQL | Queries | DML & DDL statements | Functions | Procedures | Triggers and Packages
لغة الإستعلام SQL
5,153 موضوعات في هذا القسم
-
-
i need to write function to find number of working days between to days such as create or replace function workingday (d1 date, d2 date) return number ( this function must subtract the weekend day (friday and saturday) for example ('select workingday('1-may-07',20-may-07 the result must be 14
-
السلام عليكم, لسا أمبارح مخلص أمتحان ال Interoduction to oracle 9i و كان حلو و سهل و جاي كله من الTestKing V12 و أشكر الأنسان الرائع الي بعته, أخدة 90.38 بالمئة والحمد لله المهم أريد الTestKing for PL/SQL لو تكرمتو وشكرا مصر
-
HI GUYS I NEED TO ASK QUESTION ABOUT JOB I NEED TO CREATE JOB TO DELETE ANOTHER JOB HOW CAN I DO THIS
-
Good evening everybody I would like to thank this forum which helped me a lot I have a question that seems silly but I still follow the beginning, I installed oracle database 10g and oracle forms 10g and I want to know how to create a database ??? it will be better if the explanation is accompanied by images
-
-
i want pl/sql sybex or o'rielly book -- urgent please
-
السلام عليكم ورحمة الله وبركاتة عندى جدول يحتوى على بيانات الانقطاعات للموظفين بة رقم الموظف ويوم الانقطاع كما هو مرفق في الاكسيل شيت اريد ان استعلم عن الموظفين الذين تخطوا عدد معين Parameters من الأيام المتصلة فرضا ان الموظف رقم 1 لة أربعة أيام متتالية انقطاع يجب اظهارهم لو تم ارسال 4 في Parameter وإظهار أيضا ما اكبر من أربعة أيام متصلة وشكرا NON_Attendance.xls
-
السؤال هو : I want to add a check constraint on the quantity column of BB_basketitem table. If a quantity value provided by a shopper on an item is greater than 20, and want to display message saying "Check Constraint". الكود اللي كتبته انا هو هذا بس بيعطيني error وبيقلي انوا الشيك مابيشتغل ALTER TABLE bb_basketitem ADD CONSTRAINT bitems_qty_ck CHECK (quantity < 20); DECLARE ex_bitems_qty_ck EXCEPTION; PRAGMA EXCEPTION_INIT(ex_bitems_qty_ck,-02290); BEGIN INSERT INTO bb_basketitem VALUES (88,8,10.8,21,16,2,3); EXCEPTION WHEN ex_bitems_qty_ck THEN Dbms_Output.put_line('Check Quantity'); END; /
-
(i want to create function with two parmeters(date_of_birth,current_date to get age in years,months,days i create this function >>>>>>>>>>>>>>> create or replace function get_age (p_date_of_birth in date ,p_current_date in date) return number is v_get_age number; begin select trunc((months_between(to_date(p_current_date),to_date(p_date_of_birth))/12)||' years ' || trunc(mod(months_between(to_date(p_current_date),to_date(p_date_of_birth)),12)) ||' months ' || trunc(mod(mod(months_between(to_date(p_current_date),to_date(p_date_of_birth)),12),4)) ||' days ' )AS "Age" into v_get_age from dual; return v_get_age; end; >…
-
Alsalam Alykoom Brother I am new here and I am a student in UK London and the only subject I have a problem with is SQL Plus so any help to start learn from beginner because I could not Pass this unit for the fifth times Jzakoom Allah Khaier
-
I want to create a pl/sql procedure that perform summary function on som feild in the database then add to a variable something like select sum(salary) into sal from employees where emp_no = :empno; sal := sal +var; salary is database field sal , var are variables the problem is when the salary field doesnt contain data so if there any way to check if the select statement doesn't return any result and replace its value with 0 like nvl function thanx
-
السلام عليكم ......... كنت استخدم sql server 2000 كنت استخدم دالة if exists(select ename from emp where ename=@ename)) بحيث ادا كان موجودا الاسم لا اقوم باضافته... فى اوراكل لم أجد دالة تؤدى نفس العمل.. فيا ريت المساعدة .. والسلام عليكم
-
عندي سؤال يا اخوه ما الفرق بين select ,dml ,ddl ,dcl من حيث explicity و implicity
-
السلام عليكم لا استطيع من عمل import للجدول او الuser وأخذ جميع الصلاحيات والconstraint هل من مساعدة
-
السلام عليكم عندي two dump ل 2 DB واريد ان اعمل Import لها هل يجب ان اقوم بعمل create ل 2 DB اما ماذا اي هل يجب ان اقوم بعمل DB لكل Dump ام كيف تتم هذه العملية ولكم جزيل الشكر
-
السلام عليكم إخواني بدي اسوي شاشة تسمح للمستخدم تحميل بياناته من الإكسل لقاعدة البيانات مع العلم الفورم 6i شو في طريقة مع الشكر ضروري المساعدة
-
what is the different between in parameter and out parameter thanks alot
-
تظهر الرسالة التالية عند عمل indexl مع العلم اننا عاملين index اكثر من مرة والerror هو unable to extend temp segment by 2397 in tablespace system
-
-
انا عامل داله ومديلها PARAMETER INDEX BY TABLE وعامل لوب عليه المهم انا عاوز بعد ما اللوب يخلص اعمل CHECK على قيمه ال PARAMETER نفسه اذا كان ب NULL او لا
-
declare cursor c1 is select t.* ,sysdate ,t1_sequence.nextval, m.code||t1_sequence.nextval from table1 t , table2 m where t.code = m.code and t.desc_name <> m.desc_name for update; v_row number := t1_sequence.nextval; begin open c1; -- update t; loop fetch c1 into t(v_row); exit when c1%notfound; v_row := t1__sequence.nextval; end loop; close c1; --first_record; end; error on line 10 06550 . about reference a cursor
-
الأخوة فى المنتدى السلام عليكم ورحمة الله وبركاتة كيف يمكن إستكمال بيانات جدول من جدول أخر مع تحياتى لكل المشاركين بالمنتدى أخوكم raafat_2003
-
you use select to retreive data from a data table for iserting
-
right or wrong you use select to retreive data from a data table for iserting ?