SQL and PLSQL solution for when Bishop subordinated direct - result of date range

Someone there SQL lying around and reduced which can merge a table of dates in a set of data which represents a mixture of dates? See below.

DROP TABLE dummydates_tbl;

CREATE TABLE dummydates_tbl
(NUMBER, NUMBER OF MANAGERID EMPID, DATE STARTDATE, ENDDATE DATE);

INSERT INTO dummydates_tbl values (9769,1234,to_date('01-JAN-2012','DD-MON-YYYY'),to_date('30-JAN-2012','DD-MON-YYYY'));
INSERT INTO dummydates_tbl values (5512,1234,to_date('25-JAN-2012','DD-MON-YYYY'),to_date('25-FEB-2012','DD-MON-YYYY'));
INSERT INTO dummydates_tbl values (9769,1234,to_date('10-MAR-2012','DD-MON-YYYY'),to_date('30-JUN-2012','DD-MON-YYYY'));
INSERT INTO dummydates_tbl values (8853,1234,to_date('10-MAR-2012','DD-MON-YYYY'),to_date('30-JUN-2012','DD-MON-YYYY'));

COMMIT;

-Script fixed. I'm sorry.


/*

Need to SQL which produces a result that shows the dates that a manager had employed was

MANAGERID STARTDATE ENDDATE
--------- --------- -------
1234 1 JANUARY 2012 FEBRUARY 25, 2012
1234 10 MARCH 2012 JUNE 30, 2012

Picture data:

|--------------| |-------------|
|---------|
|-------------|

*/

Published by: bsc7080oec on November 12, 2012 11:34

Published by: bsc7080oec on November 12, 2012 12:37

Tags: Database

Similar Questions

  • I want to improve my skills in sql and plsql

    Hello friends,

    I finished the course SQL and PLSQL a few weeks back. Since then I've been hunting for a relevant work for SQL / PLSQL developer.

    However I really want to improve my writing of the subprogrammes, build effective SQL queries to become a skilled oracle developer.

    My current work is not linked to this use so all my free time to improve my knowledge in this area.

    I know the basics of SQL and PLSQL concepts and can write queries simple, subprogrammes, but to become employable, according to me, that I need to learn a lot more.

    Please suggest me some good sources be it no books / sites Web, etc. anything that would really help me become a good developer.

    I'm desperate to make a career out of Oracle SQL / PLSQL!

    Thanks in advance.

    Do what most of the experts do... start at the bottom.

    Find a job in a junior role (and yes it will be low wages initially) where the company may see your potential and enthusiasm to learn and will give training and let you learn on the job.  If you have the skills to do it, then you will learn quickly and prove you are competent and deserve to be promoted to better roles.

    When I started (in the same after having a university degree in it), I always had to start at the bottom, in a junior role, on a 3 month temporary contract.  Who got so extended that they identified some new work roles that were needed, and then I had to get one of these new jobs, where I got a permanent role.  Within 18 months, they had sent me on the training, and I was promoted to a role of DBA/programmer, working alongside other programmers and hardware team to manage database servers... everything just because I had shown the ability, willingness to learn and the professional approach to my work.

    Don't think you can just get some training or the qualities of the review, but have no experience and just get into some senior roles or an expert, as most of the companies are wise to such things... they want to know what you have for the roles of the experience.

  • interesting SQL and plsql problem.

    The web application has a function to generate reports based on what the user selects, which includes this as the fields to display in the report, what order to display those selected fields, etc.

    Now, one of the field called suffix field is need removed the drop-down lists SELECT and ORDER BY. Please advise on how to solve the problem when the suffix record is removed from the database, and how we can increase the index [#] of these later OrderByField?

    reportId reportField reportValue
    ====================
    1 orderByField fname [0]
    1 orderByField [1] MI
    1 lname orderBytField [2]
    1 orderByField [3] suffix

    lname orderBytField 2 [0]
    suffix of orderByField 2 [1]
    2 orderByField fname [2]
    2 orderByField [3] MI

    In the example above, delete suffix will not affect reportId 1, but for reportId 2, if we remove the suffix, how do we record like the following?
    lname orderBytField 2 [0]
    2 orderByField fname [1]
    2 orderByField [2] MI

    I am open to any suggestion, using sql and plsql. The database is 9i.

    THX.

    Hello

    You're wright, you need to replace in the order by clause:

    with d as(
    select 1 as reportId, 'orderByField[0]' as reportField, 'fname ' as reportValue from dual union all
    select 1 as reportId, 'orderByField[1]' as reportField, 'MI    ' as reportValue from dual union all
    select 1 as reportId, 'orderByField[2]'as reportField,  'lname ' as reportValue from dual union all
    select 1 as reportId, 'orderByField[3]' as reportField, 'suffix' as reportValue from dual union all
    select 2 as reportId, 'orderByField[1]' as reportField, 'suffix' as reportValue from dual union all
    select 2 as reportId, 'orderByField[2]' as reportField, 'fname2' as reportValue from dual union all
    select 2 as reportId, 'orderByField[0]'as reportField,  'lname0' as reportValue from dual union all
    select 2 as reportId, 'orderByField[6]'as reportField,  'lname6' as reportValue from dual union all
    select 2 as reportId, 'orderByField[12]'as reportField, 'lname12' as reportValue from dual union all
    select 2 as reportId, 'orderByField[4]'as reportField,  'lname4' as reportValue from dual union all
    select 2 as reportId, 'orderByField[5]'as reportField,  'lname5' as reportValue from dual union all
    select 2 as reportId, 'orderByField[8]'as reportField,  'lname8' as reportValue from dual union all
    select 2 as reportId, 'orderByField[10]'as reportField, 'lname10' as reportValue from dual union all
    select 2 as reportId, 'orderByField[11]'as reportField, 'lname11' as reportValue from dual union all
    select 2 as reportId, 'orderByField[9]'as reportField,  'lname9' as reportValue from dual union all
    select 2 as reportId, 'orderByField[7]'as reportField,  'lname7' as reportValue from dual union all
    select 2 as reportId, 'orderByField[3]' as reportField, 'MI    ' as reportValue from dual)
    SELECT a.reportId, 'reportField[' || to_char(DECODE(ROWNUM-min_sno,0,1,rownum+1-min_sno)-1)|| ']' as newReportField, reportValue FROM
    (SELECT * FROM d where d.reportValue != 'suffix' ORDER BY reportId, to_number(substr(reportField, instr(reportField, '[')+1, instr(reportField,']')-instr(reportField, '[')-1)) ) a,
    (
    SELECT reportId,MIN(rownum) min_sno FROM
    (
    SELECT * FROM d where d.reportValue != 'suffix' ORDER BY reportId, to_number(substr(reportField, instr(reportField, '[')+1, instr(reportField,']')-instr(reportField, '[')-1))
    )
    GROUP BY reportId
    ) b
    WHERE a.reportId = b.reportId;
    

    Kind regards

    Published by: Walter Fernández on January 6, 2009 16:51 - sorry I forgot the version of your database in the first post, I replaced the regular expression...

  • need to get sql and plsql certifications

    Dear Sir

    I did the track developer oracle 9i in 2008 and not not taken any which certificate online, but right now I want to get this certificate to provide to my new employer which depends on, could you pls tell me who exact route because I saw the site of oracle certification, but some are for those who already made in the past as a dimming etc but no accreditation for those who have not "taken previously.

    All Certifications | Certifications | Oracle

    Please advice.

    Thank you.

    As a general rule, I recommend that candidates continue 1Z0-144: Oracle Database 11g: program PL/SQL rather than the exam 1Z0-147. They are equivalent regarding certification obtained the passage, but 144 is newest and best essay in general.  Discuss the two in this article here:

    Oracle PL/SQL Developer Certification: 1Z0-147 or 1Z0-144?

    Studying the materials, I have compiled links to documents of study of certification secure for a number of reviews of Oracle on my site.  Links for 1Z0-047 and 1Z0-144 are:

    Oracle Certification Preparation: Details of the examination and preparation for 1Z0 - 047 resources

    Oracle Certification Preparation: Details of the examination and preparation for 1Z0 - 144 resources

  • MATH HEAVY - SQL and PLSQL - PROCEDURE/FUNCTION

    Hello

    I have a chart with lines more million. In this table, I have a lot of members associated with 60-70 facility_names.
    Unique index is on CMPNY, FNAME, M_ID MONTHS.

    Below, I have some EXAMPLES OF 3 facilities, ADIOS DAOMATO, NADA CAPETOWN and NADA NEW DIAMONDS.

    These companies have two different contract.

    For example, NADA CAPETOWN & NADA NEW DIAMOND
    -As soon as total Amount_1 CDA for a member associated with above facilities will more $2,000 and total Amount_2 passes over $4000, installation gets insurance protection for 90% of the sum, he surpassed in each categories.

    In example below, M0001 of NADA CAPETOWN, CDA AMOUNT_1 total more than $2,000 to 1 October 2009 (total $2160), installation gets recoveries of $144 ((2160-2000) * 90%).
    Similarly, in November 1, 2009, total of CDA is $2180 and installation gets recoveries of $18 ((2180-2160) * 90%). I subtracted $2160 because installation has already received $144 for having exceeded $160, more than 2000 back on October 1, 2009.

    Very similar, total if Amount_2 CDA exceeds 4000, TI $ receives 90% of the amount after $4000. (the calculations are the same as above)
    The column of recoveries should summarize recoveries exceed amount_1 and amount_2 per month.

    During this time,.

    ADIOS DAOMATO has a different contract. When single member of this facility (CDA AMOUNT_1 + AMOUNT_2 CDA) is greater than 5000, the plant recovers 90%.

    In the case of sum CDA Member Unique of ADIOS DAOMATO of AMOUNT_1 & AMOUNT_2 (combined) will more than $5,000, then installation gets insurance protection for 90% of the amount it exceeded.
    In the example below, total ADIOS DAOMATO CDA exceeds $5,000 in October 1, 2009 by $540 ($11080 total YTD), so installation retrieves ((11080-10000$) * 90%) = $972. After months of November 1, 2009, $40 ($20 + $20) added more than $5,000, so installation recoveres (($5580-5540 $) * 90%) = $36...


    * I don't mind saw these two distinct processes. Please note that the calculation of recoveries ($) are by a single member of the installation by month/year, but the result should be to ease a month. So far I have annually. But I really need every month for financials.*

    Purpose: I need to know what level of insurance protection the installation receives monthly.
    For the duration of the contract 1 the Reisurance Total must be entered in the column "RECOVERIES" (COLLECTIONS of REINSURANCE OF AMOUNT_1 + the RECOVERIES of REINSURANCE OF AMOUNT_2).

    For the duration of the contract 2, there is only 1 recovery mode.

    As the I mentioned, that's a CALCULATION for a YEAR when the year changes, everything resets all members. *
    _ I would greatly appreciate your help. _

    Using oracle 10g
    DROP TABLE PAYMENT_1;
    
    create table PAYMENT_1
    (CMPNY      VARCHAR2(4),
     F_NAME          VARCHAR2(100),
     M_ID               VARCHAR2(8),
     MONTH         DATE,
     AMOUNT1    FLOAT(126),
     AMOUNT2    FLOAT(126)
     );
     
     INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2) VALUES ('C001','NADA CAPETOWN', 'M0002','01-JAN-2009','20','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2) VALUES ('C001','NADA CAPETOWN', 'M0002','01-JAN-2009','90','180');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN', 'M0002','01-JAN-2009','100','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN', 'M0002','01-FEB-2009','20','20');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN', 'M0002','01-FEB-2009','20','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN', 'M0002','01-JUL-2009','1000','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN', 'M0002','01-AUG-2009','500','2000');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2) VALUES ('C001','NADA CAPETOWN', 'M0002','01-AUG-2009','20','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2) VALUES ('C001','NADA CAPETOWN', 'M0002','01-OCT-2009','90','180');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN', 'M0002','01-OCT-2009','100','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN', 'M0002','01-NOV-2009','20','20');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN', 'M0002','01-DEC-2009','20','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN', 'M0002','01-DEC-2009','1000','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN', 'M0002','01-DEC-2009','500','2000');
    
    
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2) VALUES ('C001','NADA CAPETOWN', 'M0001','01-JAN-2009','20','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2) VALUES ('C001','NADA CAPETOWN', 'M0001','01-JAN-2009','90','180');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN', 'M0001','01-JAN-2009','100','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN', 'M0001','01-FEB-2009','20','20');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN', 'M0001','01-FEB-2009','20','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN', 'M0001','01-JUL-2009','1200','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN', 'M0001','01-AUG-2009','500','2200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2) VALUES ('C001','NADA CAPETOWN', 'M0001','01-AUG-2009','20','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2) VALUES ('C001','NADA CAPETOWN', 'M0001','01-OCT-2009','90','180');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN', 'M0001','01-OCT-2009','100','220');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN', 'M0001','01-NOV-2009','20','20');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN', 'M0001','01-DEC-2009','20','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN', 'M0001','01-DEC-2009','1100','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN', 'M0001','01-DEC-2009','500','2200');
    
    
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2) VALUES ('C001','NADA NEW DIAMOND','M0003','01-JAN-2009','20','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2) VALUES ('C001','NADA NEW DIAMOND','M0003','01-JAN-2009','90','180');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA NEW DIAMOND','M0003','01-JAN-2009','100','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA NEW DIAMOND','M0003','01-FEB-2009','20','20');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA NEW DIAMOND','M0003','01-FEB-2009','20','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA NEW DIAMOND','M0003','01-JUL-2009','1000','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA NEW DIAMOND','M0003','01-AUG-2009','500','2000');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2) VALUES ('C001','NADA NEW DIAMOND','M0003','01-AUG-2009','20','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2) VALUES ('C001','NADA NEW DIAMOND','M0003','01-OCT-2009','90','180');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA NEW DIAMOND','M0003','01-OCT-2009','100','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA NEW DIAMOND','M0003','01-NOV-2009','20','20');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA NEW DIAMOND','M0003','01-DEC-2009','20','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA NEW DIAMOND','M0003','01-DEC-2009','1000','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA NEW DIAMOND','M0003','01-DEC-2009','500','2000');
    
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2) VALUES ('C001','NADA CAPETOWN','M0004','01-JAN-2010','20','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2) VALUES ('C001','NADA CAPETOWN','M0004','01-JAN-2010','90','180');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN','M0004','01-JAN-2010','100','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN','M0004','01-FEB-2010','20','20');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN','M0004','01-FEB-2010','20','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN','M0004','01-JUL-2010','1000','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN','M0004','01-AUG-2010','500','2000');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2) VALUES ('C001','NADA CAPETOWN','M0004','01-AUG-2010','20','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2) VALUES ('C001','NADA CAPETOWN','M0004','01-OCT-2010','90','180');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN','M0004','01-OCT-2010','100','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN','M0004','01-NOV-2010','20','20');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN','M0004','01-DEC-2010','20','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN','M0004','01-DEC-2010','1000','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA CAPETOWN','M0004','01-DEC-2010','500','2000');
    
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2) VALUES ('C001','NADA NEW DIAMOND','M0003','01-JAN-2010','20','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2) VALUES ('C001','NADA NEW DIAMOND','M0003','01-JAN-2010','90','180');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA NEW DIAMOND','M0003','01-JAN-2010','100','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA NEW DIAMOND','M0003','01-FEB-2010','20','20');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA NEW DIAMOND','M0003','01-FEB-2010','20','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA NEW DIAMOND','M0003','01-JUL-2010','1000','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA NEW DIAMOND','M0003','01-AUG-2010','500','2000');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2) VALUES ('C001','NADA NEW DIAMOND','M0003','01-AUG-2010','20','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2) VALUES ('C001','NADA NEW DIAMOND','M0003','01-OCT-2010','90','180');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA NEW DIAMOND','M0003','01-OCT-2010','100','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA NEW DIAMOND','M0003','01-NOV-2010','20','20');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA NEW DIAMOND','M0003','01-DEC-2010','20','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA NEW DIAMOND','M0003','01-DEC-2010','1000','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','NADA NEW DIAMOND','M0003','01-DEC-2010','500','2000');
    
    
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2) VALUES ('C001','ADIOS DAOMATO','M0010','01-JAN-2009','20','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2) VALUES ('C001','ADIOS DAOMATO','M0010','01-JAN-2009','90','180');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','ADIOS DAOMATO','M0010','01-JAN-2009','100','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','ADIOS DAOMATO','M0010','01-FEB-2009','20','20');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','ADIOS DAOMATO','M0010','01-FEB-2009','20','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','ADIOS DAOMATO','M0010','01-JUL-2009','1000','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','ADIOS DAOMATO','M0010','01-AUG-2009','500','2000');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2) VALUES ('C001','ADIOS DAOMATO','M0010','01-AUG-2009','20','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2) VALUES ('C001','ADIOS DAOMATO','M0010','01-OCT-2009','90','180');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','ADIOS DAOMATO','M0010','01-OCT-2009','100','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','ADIOS DAOMATO','M0010','01-NOV-2009','20','20');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','ADIOS DAOMATO','M0010','01-DEC-2009','20','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','ADIOS DAOMATO','M0010','01-DEC-2009','1000','200');
    INSERT INTO PAYMENT_1 (CMPNY, F_NAME, M_ID, MONTH, AMOUNT1, AMOUNT2)VALUES ('C001','ADIOS DAOMATO','M0010','01-DEC-2009','500','2000');
    
    commit;
    
    
    --RESULTS SHOULD BE SOMETHING LIKE THE FOLLOWING
    
    DROP TABLE PAYMENT_2;
    
    create table PAYMENT_2
    (CMPNY      VARCHAR2(4),
     F_NAME          VARCHAR2(100),
      RECOVERIES     FLOAT(126),
     MONTH         DATE
     );
     
    
    
    INSERT INTO PAYMENT_2 (CMPNY, F_NAME, RECOVERIES, MONTH) VALUES ('C001','ADIOS DAOMATO','486','01-OCT-2009');
    INSERT INTO PAYMENT_2 (CMPNY, F_NAME, RECOVERIES, MONTH) VALUES ('C001','ADIOS DAOMATO','36','01-NOV-2009');
    INSERT INTO PAYMENT_2 (CMPNY, F_NAME, RECOVERIES, MONTH) VALUES ('C001','ADIOS DAOMATO','3528','01-DEC-2009');
    
    INSERT INTO PAYMENT_2 (CMPNY, F_NAME, RECOVERIES, MONTH) VALUES ('C001','NADA CAPETOWN','144','01-OCT-2009');
    INSERT INTO PAYMENT_2 (CMPNY, F_NAME, RECOVERIES, MONTH) VALUES ('C001','NADA CAPETOWN','18','01-NOV-2009');
    INSERT INTO PAYMENT_2 (CMPNY, F_NAME, RECOVERIES, MONTH) VALUES ('C001','NADA CAPETOWN','6786','01-DEC-2009');
    INSERT INTO PAYMENT_2 (CMPNY, F_NAME, RECOVERIES, MONTH) VALUES ('C001','NADA CAPETOWN','3150','01-DEC-2010');
    
    INSERT INTO PAYMENT_2 (CMPNY, F_NAME, RECOVERIES, MONTH) VALUES ('C001','NADA NEW DIAMOND','2150','01-DEC-2009');
    INSERT INTO PAYMENT_2 (CMPNY, F_NAME, RECOVERIES, MONTH) VALUES ('C001','NADA NEW DIAMOND','3150','01-DEC-2010');
    
    commit;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

    I think this can do:

    SELECT cmpny
         , f_name
         , month
         , SUM(recoveries)
    FROM
    (
            SELECT cmpny
                 , f_name
                 , m_id
                 , month
                 , ytd_amount1
                 , ytd_amount2
                 , ytd_amount
                 , CASE
                       WHEN f_name IN ('NADA CAPETOWN','NADA NEW DIAMOND')
                       THEN
                           CASE
                               WHEN ytd_amount1 > 2000
                               THEN .9*(ytd_amount1 - GREATEST(2000,LAG(ytd_amount1) OVER (PARTITION BY cmpny, f_name, m_id ORDER BY month)))
                               ELSE 0
                           END
                         + CASE
                               WHEN ytd_amount2 > 4000
                               THEN .9*(ytd_amount2 - GREATEST(4000,LAG(ytd_amount2) OVER (PARTITION BY cmpny, f_name, m_id ORDER BY month)))
                               ELSE 0
                           END
                       WHEN f_name IN ('ADIOS DAOMATO')
                       THEN
                           CASE
                               WHEN ytd_amount > 5000
                               THEN .9*(ytd_amount - GREATEST(5000,LAG(ytd_amount) OVER (PARTITION BY cmpny, f_name, m_id ORDER BY month)))
                               ELSE 0
                           END
                   END AS recoveries
            FROM
            (
                    SELECT cmpny
                         , f_name
                         , m_id
                         , month
                         , SUM(amount1_per_month) OVER (PARTITION BY cmpny, f_name, TRUNC(month,'YEAR'), m_id ORDER BY month) AS ytd_amount1
                         , SUM(amount2_per_month) OVER (PARTITION BY cmpny, f_name, TRUNC(month,'YEAR'), m_id ORDER BY month) AS ytd_amount2
                         , SUM(amount_per_month) OVER (PARTITION BY cmpny, f_name, TRUNC(month,'YEAR'), m_id ORDER BY month) AS ytd_amount
                    FROM
                    (
                            SELECT cmpny
                                 , f_name
                                 , m_id
                                 , month
                                 , SUM(amount1) amount1_per_month
                                 , SUM(amount2) amount2_per_month
                                 , SUM(amount1 + amount2) amount_per_month
                            FROM   payment_1
                            GROUP BY cmpny
                                   , f_name
                                   , m_id
                                   , month
                    )
            )
    )
    WHERE recoveries > 0
    GROUP BY cmpny
           , f_name
           , month
    ORDER BY 1,2,3
    ;
    

    Which generates the following results:

    CMPN F_NAME           MONTH            SUM(RECOVERIES)
    ---- ---------------- ----------- --------------------
    C001 ADIOS DAOMATO    01-OCT-2009                  486
    C001 ADIOS DAOMATO    01-NOV-2009                   36
    C001 ADIOS DAOMATO    01-DEC-2009                 3528
    C001 NADA CAPETOWN    01-OCT-2009                  144
    C001 NADA CAPETOWN    01-NOV-2009                   18
    C001 NADA CAPETOWN    01-DEC-2009                 6786
    C001 NADA CAPETOWN    01-DEC-2010                 3150
    C001 NADA NEW DIAMOND 01-DEC-2009                 3150 -- This does not match your sample output
    C001 NADA NEW DIAMOND 01-DEC-2010                 3150
    

    I think he might have an error in your example output. I think 3150 is the correct value. The sample data for 2009 and 2010 are the same.

  • SQL and BI

    Hello Experts;

    I used some tools like Microstrategy bi, however it is still not comparable to a coding in SQL, PL/SQL, which gives a lot of flexibility, transparency, etc. So, how is it I always get customers pushing to have all of the BI process done on BI tools. Why SQL and PL/SQL, not at the forefront instead. I know that the graphical side of things put it at a disadvantage, but beside that I'm still why a little distraught.

    SQL and PLSQL can scare companies, many see a black magic (which, in some respects, can be), and it is not something that many customers feel able to learn or even tend to. On the face of things, this may seem complicated and used wrongly, can cause MAJOR problems with buinesses (poor performance, use excessive resources that affect other sessions).  Many have invested time in getting to know point and click graphical tools that can get results without feeling lost and confused by SQL, they prefer.

    However, as you rightly remember, nothing can replace SQL or PL/SQL.

    I suppose that the element of fear is a bit like why a lot of people using MS Paint to edit an image, many feel uncomfortable with it, he can do the basics, but not much, and they'll settle for that, but you could do much more with Photoshop - it's simply too scary to learn properly for most of the people so that they avoid it - they stick to what is simple and familiar.

  • After pressing F2 when I enter setup it resets date August 20, 2009 12:00 am one here it shows also the bios: video bios with a shadow: obscured. What is a problem for me?

    Hello

    I have a dell studio 1558 laptop, core i5, 7(home premium), 64-bit, 4 GB ram operating system windows, I bought it in 2010.Now I get a poblem when starting after each time that I stopped him. It shows a msg for installation or recovery and after pressing F2 when I enter setup it resets date August 20, 2009 12:00 am one here it shows also the bios: video bios with a shadow: obscured. What is a problem for me? and why the date changes it self with the precedent1 every time at startup? How solveb this problem?

    Original title: shady BIOS, video bios with a shadow

    You must reset the default BIOS and change the BIOS utility setup time. In most cases, it will solve this problem.

    More information about the BIOS: http://www.dell.com/support/troubleshooting/us/en/19/KCS/KcsArticles/ArticleView?docid=DSN_148562

    If this does not resolve the problem, I think that the main problem is the battery from motherboard or Ram problem.

    It is best if you go to the Dell service center and tell about this problem.

  • learning SQL and pssql, xml, forms and report

    I learned sql and plsql I donot Xml and forms and reports learn by own by easy method

    by sql and psql we learned basic on the rise, things of time ranging from online book (another way to practice and understand the concepts)

    repo, xml, sql, forms and pssql of learning javascript:; rt learning SQL and pssql, xml, forms and reportfor beginners

  • Running Exchange Server application of hotfixes and service pack to the server mailbox without loss of data during the restore?

    People,

    I would like to know how can I safely ask the Exchange Server service pack or cumulative update for the server role mailbox (no DAG) without loss of e-mail during the downtime and roll back the snapshot?

    If I can do the following:

    1. stop all Exchange Server services.

    2. unplug the vNIC on the mailbox server

    3 take a snapshot of the virtual machine

    4. apply the service Pack of Exchange Server / Cumulative Update or Windows Update

    5 reset

    6 reconnect the vNIC, if the server online with no problem, commit / remove the snapshot, if not, then disconnect the vNIC followed to restore.

    would be - this sense being or support for Vmware and Microsoft http://www.vmware.com/files/pdf/exchange-2010-on-vmware-support-and-licensing-guide.pdf ?

    If yu have any other suggestions, please let me know here.

    Thanks in advance.

    Hey AlbertWT,

    I'll start by saying that I would not do.  Microsoft is explicit that snapshots are not supported with Exchange when virtualized.  See below (from Exchange 2013 Virtualization: help Exchange 2013):

    Some hypervisors include features to take snapshots of virtual machines. Virtual machine snapshots capture the State of a virtual machine while it is running. This feature allows you to take several snapshots of a virtual machine and then return the virtual machine to a previous state by applying a snapshot to the virtual machine. However, virtual machine snapshots aren't application aware, and using them can have unintended and unexpected consequences for a server application that manages the data of the State, such as Exchange. Accordingly, making snapshots of the virtual machine to a virtual guest computer Exchange only is not supported.

    Even if we ignore the statement of support from shadow copies that isn't always a good idea.  Here are some things to consider.

    (1) cumulative updates for the Exchange to modify the Active Directory schema.  Roll back the snapshot on the mailbox server is not undo changes made to RFA, which could cause functional supported questions.  See this link to give you an idea of how there is pattern AD updates in each CU Exchange and service pack: the Active Directory in Exchange 2013 schema changes: Exchange 2013 help

    (2) it is possible to send to come during the time you test the update, and if you need to restore you would need a plan to retrieve this e-mail.  Third party services may work, or you can prevent the email to come in your environment completely during this period, but these aren't the ideal solutions.

    A much better solution would be to create a lab environment that is isolated from the production.  You can either take clones of your Exchange and AD VMs and put them in a closed network environment, or create a laboratory and import the structure of your ad if it matches the production.  I think it is a much better way to test than to try to rely on stereotypes in production.

    Hope that helps!

    Matt

  • Hi all OneHow can you buy an IBook UK not available in Indian store a store; When you change the status of your country, your billing information and credit cards won't work; is there a solution for this using the same method of billing.

    Hello world

    How can buy you an IBook of UK not available in Indian store a store; When you change the status of your country, your billing information and credit cards won't work; is there a solution for this using the same method of billing

    There is no solution, if it is not available in your area, you can't buy it.

  • When I try to start the computer in the morning, he goes off and after trying to restart the computer 2 times it becomes normal. Please give me any solution for this.

    When I try to start the computer in the morning, he goes off and after trying to restart the computer 2 times it becomes normal. Please give me any solution for this.

    Hey Abdul HamidNagoor,

    ·         Did you do changes on the computer before the show?

    ·         You get the error message?

    ·         What is the brand and model of the computer?

    Follow the steps in the article.

    Advanced Troubleshooting for General startup problems in Windows XP

    If the problem persists, follow the steps in the article.

    How do I recover from a corrupted registry that prevents Windows XP startup

    Note: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following link. http://support.Microsoft.com/kb/322756

  • I don't know what error code I get when trying to install KB974417, KB963707 and KB939683. I found a solution for KB974417 which is to install the latest Windows Installer. What about the others? KB963707 and 939683.

    I installed Windows Installer 4.5, because the support microsoft inform me that I have the latest Windows Installer Package to install KB974417. But I can't find solutions for KB963707 and KB939683.

    To get the Windows error meets during updates, you can try to read the Windowsupdate.log file using the http://support.microsoft.com/?kbid=902093 article

    Also try the few measures available under article http://support.microsoft.com/kb/971058, the http://support.microsoft.com/kb/822798 and the http://support.microsoft.com/kb/906602 if they relate to your error.

  • Workaround solution for using PLSQL as a source of interactive report?

    Hi all!

    I have a PL/SQL anonymous block here, I wanted to use as the source for an interactive report. Only, I didn't know that interactive reports supported PL/SQL...
    For example, the code:
    DECLARE
    a_userid NUMBER;
    
    BEGIN
    SELECT userid
    INTO a_userid
    FROM users
    WHERE UPPER(username) = :APP_USER;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    a_userid := 0;
    
    IF a_userid = 0 THEN
    SELECT distinct a.name AS Foodname, a.foodid AS Foodid
    FROM food a 
    INNER JOIN foodunit c
    ON a.foodid = c.foodid
    WHERE a.foodlanguageid = :P18_LANGUAGE
    OR a.foodlanguageid = :P18_SET_LANGUAGE
    AND a.userid = 0
    ORDER BY a.name;
     
    ELSIF a_userid = :APP_USER THEN
    SELECT DISTINCT a.name AS Foodname, a.foodid AS Foodid
    FROM food a 
    INNER JOIN foodunit c
    ON a.foodid = c.foodid
    WHERE a.foodlanguageid = :P18_LANGUAGE
    OR a.foodlanguageid = :P18_SET_LANGUAGE
    AND a.userid = 0 
    AND a.userid = a_userid
    ORDER BY a.name;
    END IF;
    END;
    Of course this code will not work because I do not understand everything IN the statements, but just trying to understand what it is that I'm aiming.
    This code point is that when a user is not logged (and visits as a public user page), it must fetch the 'NAME' and 'FOODID"FOOD table lines. I added a column of this table (named USERID) and all rows having the value '0' for this column.
    Now, when a user logs on, he or she has a fixed username (registered in another table, named 'USERS'). A user is able to add foods that they own to the list.

    Of course, a visitor is not supposed to see all food products that have been added to the table by registered users. So, I wanted to show the separate data. Visitors (unregistered) only see the default values (all the lines in which the userid = 0) and registered users should see both added their own food (my username is 1, then I want to see all the lines where the userid = 1) and the rows with default values (where userid = 0).

    I found a way here:
    http://www.oracleapplicationexpress.com/tutorials/71-Oracle-Apex-interactive-report-based-on-PLSQL-function

    But it is not only makes sense to me. Y at - it is an easy way to explain how the tutorial in the link, or you know an easier way? Like making a procedure or something, or a function or a process page and somehow, refer to that in the SQL source interactive report?

    Any help is greatly appreciated.

    APEX version: 4.1.1.00.23

    Hi again,

    How does this request?

    SELECT DISTINCT a.name AS Foodname, a.foodid AS Foodid
      FROM food a INNER JOIN foodunit c ON a.foodid = c.foodid
     WHERE a.foodlanguageid IN (:P18_LANGUAGE, :P18_SET_LANGUAGE)
      AND (a.userid = :P18_USERID OR a.userid = 0)
    ORDER BY a.name
    
  • Solution for Google Chrome (Helper) by using a lot of ram and cpu on mac os x

    Hi all

    Some people have several tabs of google chrome, and it's using a lot of RAM. It also causes the fan go crazy sometimes. I looked for a solution for centuries, but no solution has allowed, until I stumbled upon the simple solution to use a google chrome extension that hibernates unused tabs. The problem has now completely disappeared.

    There are a few different extensions that Hibernate unused tabs, but the only extension which has enough options setting to do what I want, is called "The Great Suspender".

    You can set the time, after which the Hibernate (sleep) tab. The tab automatically resumes when it focuses on, (i.e., you don't need to then also click on a specific button). And the tabs of the extended day before will remain in hibernation after you restart the computer.

    There are many other parameters that can be changed. (After you have made changes, don't forget to click the 'save changes' button.)

    I hope this helps.

    Thanks for the tip.

  • SOLUTION for your HP printer disconnect and/or constantly disconnecting from the network

    If you are having a problem printing, scanning or fax with any HP printer because of this be disconnected and constantly disconnecting from the network, here again is the fix!

    I thought that this all after several failed attempts with HP Support, my Internet access provider and various troubleshooting tasks including reinstall the HP software and more and more.  Well, through self teaching on internet and exhausting search for 6 months, I FINALLY thought to it.  OMG!  I'm a paramedic (not IT) and a little computer but far not an expert.  I have all of you here!  Nobody seems to have the answer, but I'm sure that I'm doing it to 97%.  Whatever it is, if it please answer and let me know that it worked for you!  :-)

    It doesn't matter if your printer is installed cable or wireless.  You don't reinstall your software, no recycling power of your printers or your router/Modem.  Your printer is unstable on the network and continues to log out or disconnect from the network it is NOT because the software is glitched, it isn't a firewall problem by saying, is not a router problem, is not a problem with your power cord, because most networks use a 'Beach' and IP addresses for security reasons This kind of "cycles" the IP addresses of the devices to reduce the risk of an attack.  A printer is not a threat, but the 'network' don't own human intelligence, so he does not know this.  Here are my step by step instructions on how to basically your printer address IP (static IP) instead of change back through a cycle so drop your printer on the network or disconnected.

    Funny, if you're someone who has had the elements in your print queue, they will not print, and you turn your printer off and on again and suddenly your print... well documents, join my club.  The reason it works is that when you turn on the printer, it starts with the same IP address before cycle.  If you are someone who is sitting there for a while and all of a sudden your printed documents without changing you something... it is because through the cycle of change of IP address, it hits your printers IP address and the network would allow him to print.  Not very funny, I know.  It took me forever to figure out why my printer would print sometimes, but not always.  Since I thought at this point, I can SCAN, PRINT, and use all the features of my HP software installed like HP, Photosmart Essentials Solution Center.

    On your printer, go to menu/Setup/network and press OK.  In the network menu, print a "network configuration page" so you can see the IP address and other settings of your printer.

    Now, back to the main menu on the screen of your printers.  Or you can go to your web browser and type the IP address using decimal numbers too and this will take you to the web page of your printers.  Choose: setup\network, then press OK.  Look for the IP settings and press OK. Choose "manual" instead of "automatic". Manually enter the IP address it as well as the default gateway that you can see the Network Setup page you printed earlier.  Note: If you manually set the IP Address of the printer, make sure that it is outside the range of your router's DHCP. Otherwise you might encounter a problem with IP addresses on your network duplicate. (If you don't know how to do this, write back and I'll explain).  Don't forget to click "save changes".  Now, restart your computer, and print just what you want.  :-)

    A trick I often use with DHCP network printers:
    In printers and faxes, right-click on the printer and select "Properties".  Click Add a new port.  Choose standard TCP/IP port configured for the host name of the printer. Read the host name of the network printer configuration sheet.

    Using my method means that you always connect to the printer even if its IP address changes (which can happen with the dynamic configuration). This does not jeopardize the security of your network.  It shows just your printer to stay put and stop traveling the highway of IP address.  :-)

    The DHCP range is the range of IP addresses that the router distributes automatically as devices to join the network.  The DHCP range is determined by the router and each brand has a range that is set at the factory (which can be changed by you).

    Default value for the DHCP of your D-link is 192.168.0.100 to 192.168.0.199.  Thus, outside the DHCP range est.2 a.99.200 a.254.

    Is a handy cheat sheet attached.

    You can change this interval by entering the router settings page - type the router's IP address in a browser, enter the login information and access the DHCP parameter area (varies depending on router, hunting around).

Maybe you are looking for

  • Firefox crashed and since she came back to the top it does not find the internet.

    Firefox has crashed in the middle of the navigation. I rebooted, but he wasn't able to find my internet connection. My internet connection is in place; other computers in the House connect fine and IE and Chrome on the computer in question have no pr

  • READING STATIC error download of Farmville.

    When you connect to Farmville it freezes at "static reading." What is the solution? URL of affected sites http://Farmville.com User Agent Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET C

  • Problem with vaio pro and bluetooth mouse.

    My new Sony Vaio Pro has been disconnected my bluetooth MS sculpt mouse. I had to re - connect or even re-install the mouse. Painful! It turns out that bluetooth devices is powered via a USB controller On the Generic USB controller, under properties,

  • Pavilion 550-154na: add additional USB3 ports at the 550-154na Pavilion

    I need extra USB ports for external hard drives like all rear ports are now filled. While that would be a hub powered plug-in I'd rather install a USB3 card using spare internal / available PCI Express x 1 & a SATA power Y splitter cable if I can. Ar

  • Update KB 976323 of security windows xp pro sp 3 fails

    automatic update repeatedly declares Christiane updateavailable & Ko 976323 is what allways fail ' going to microsoft update also updates star Filante but history nshows it installed repeatley then some time updating auto show it completed installati