SQL and PL/SQL
Oracle SQL and PL/SQL | Queries | DML & DDL statements | Functions | Procedures | Triggers and Packages
لغة الإستعلام SQL
5,153 موضوعات في هذا القسم
-
Dear All, in this post you can get average of date column http://mahmoudoracle.blogspot.com/2011/08/average-on-dates-columns.html Thanks
-
Dear All, The below post clarify how to get average on date column http://mahmoudoracle.blogspot.com/2011/08/average-on-dates-columns.html Thanks
-
حدث خطاء في ال server واريد عمل backup لل dataبexport لكن لايربط وهل توجد طريقة اخرى وان oracel موجودة على d:\orant
-
هذا الملف يحتوى على Basic Syntax in PL-SQL Basic_Syntax_in_PL_SQL.doc
-
السلام عليكم ورحمة الله وبركاته لو سمحتم اريد شرح مبسط لـ bfile مع وضع مثال مبسط له لكي أفهمه وشكرا لكم
-
-
http://www.araboug.org/ib/index.php?showtopic=15347 ارجو ان تفيدكم
-
-
I have this function in report builder with only one variable which is equl many variable and want to make line break between them in the report output same like this -amount in words -note to suplier -price basis -completion date -payment terms -note this is my function function CF_R_FOOTERFormula return Char is FOOTER_REPORT VARCHAR2(5000) :=NULL; begin IF :LINE_TYPE='Service' THEN FOOTER_REPORT :=(:CF_amount_in_words ||:CF_note_to_suplier ||'PRICE BASIS: '||:PRICE_BASIS ||'COMPLETION DATE :'||:CF_need_by_date ||'PAYMENT_TERMS'||:PAYMENT_TERMS ||'S…
-
السلام عليكم كيفكم أخواني الأعزاء أنا عندي مشكلة عند ادخال هذا الكود SELECT CONSTRAINT_NAME,COLUMN_NAME FROM USER_CONS_COLUMNS WHERE TABLE_NAME='&tablename' وبعدها تظهر لي هذي الرسالة buffer overflow. Use SET command to reduce ARRAYSIZE or increase MAXDATA. فمن عنده الحل فليتكرم علينا مع العلم اني داخل كـ مستخدم ليس له الصلاحية في التحكم باعدادات البيانات ولكم جزيل الشكر على ماتقدموه
-
مقال رائع عن كيفية عمل PL/SQL Web Service من هنا
-
السلام عليكم و رحمة الله و بركاته إخواني في الله الرجاء التكرم باطلاعي الفرق بين إستخدام كلا من BULK COLLECT & FORALL(شرح مع أمثلة رجاء) ولكم مني جزيل الشكر و التقدير.
-
i would like to calculate when is the renewal date for each employee before two months of the renewal time exactly and i only have hiredate, i don't have last date of contract renewal in my table and i should have a form that get populated with the contracts that should be renewed before two months from sysdate .. i want an accurate way to do it .. i used this one but i am not sure if it is 100% accurate is there a better way to do it .... main missing data is last renewal date( here is my problem) and i am not supposed to add it select id, FIRST_NAME_ARB, employment_date, MOD(months_between ( trunc(sysdate) ,trunc(employment_date))/12,1) from PRS_EMPLOYEE_PROFILE …
-
I need to write function that calculate The Number Of Minutes Between Two Date-Time Values and Skipping Weekends Also skip the time between 03:01:00 pm to 06:59:00 Am I need to enter the two date with time the return value should be the number of Minutes between to days without weekend days and the time between 7:00 AM to 3:00 PM 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 create or replace function workingday (d1 date , d2 date) return number is total number; startdate date ; DayNum POSITIVE;…
-
-
ممكن حد قلي كيف ممكن انادي function من sql statement شكرا
-
hiii all can any one help me i want to call exe from the database trigger or a procedure thanks
-
CAN I ADD 2 CONSTRAINT PRIMARY KEY IN SAME TABLE CREATION TIME OR ALTERING
-
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]]
-
السلام عليكم ورحمة الله انا عندي شوي استفسارات بصراحع انا عندي command select * from user_procedures فهل عندي command for backage to display how it's create ------------------------------------------------------------------------------------- also i have this Q?? CREATE OR REPLACE PACKAGE ---NAME IS FUNCTION MAX_NO (P1 NUMBER, P2 NUMBER, P3 NUMBER) RETURN NUMBER; PROCEDURE DEP_DEPT (P_DEPTNO NUMBER); END; ------------------------------------------------------- CREATE OR REPLACE PACKAGE BODY --- NAME IS FUNCTION MAX_NO (P1 NUMBER, P2 NUMBER, P3 NUMBER) RETURN NUMBER IS BEGIN END; PROCEDURE DEP_DEPT (P_DEPTNO NUMBER) IS BEGIN SELECT NVL(COUNT(DEPTNO)) FROM EM…
-
hi all, i setup oracle 9i what i should adjust to make it work before i open sql pl coz ican't connect to the db i try to open sql pl i input hte account user =scott and pass=tiger it return the error يوجد خطأ فى موفق الحدمة ORA-12560 then i open sql pl work sheet and aplly the same input put with connecting as dba or sysoper the output is equel invalid user name and pass
-
السلام عليكم اريد تحويل هذا الكود باستخدامDecode SELECT last_name, salary, (CASE WHEN SALARY<5000 THEN 'LOW' WHEN SALARY<10000 THEN 'MEDIUM' WHEN SALARY <20000 THEN 'GOOD' else 'excellent' end) income FROM EMPLOYEES; لأن بعد التجربة لا أعرف ماهى المشكلة SELECT last_name, salary, DECODE(salary,'SALARY<5000','LOW', 'SALARY<10000','MEDIUM', 'SALARY<20000','GOOD' , 'excellent')INCOME FROM EMPLOYEES;
-
الكود ده بيجيب اقرب رقم صحيح لأكبر من او يساوى الرقم المختار :- select ceil(3.4),ceil(-5.4)from dual; الكود ده بيجيب اقرب رقم صحيح لأصغر من او يساوى الرقم المختار :- select floor(3.4),floor(-5.4)from dual; و بالتوفيق
-
مرحبا سؤالي هو ماهو ال datatype الذي نكتبه لعمل check item عند انشاء table جديده بحيث يكون ال colomn المراد بهيئة ال checkbox في ال developer
-
السلام عليكم ورحمه الله وبركاته لو سمحتم حد يفهمنى ايه هو ال cluster انا دورت بس مش لاقيه برده حاجه واضحه افهم منها ايه معناه وسؤال تانى creation of synonyms will cause ddl trigger to fire الكلام ده صح ولا غلط
-
- 4 رد
- 1.6k مشاهدة
- 1 follower
-