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.

Tags: Database

Similar Questions

  • 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...

  • IHAVE windows server 2008 standard Edition, but we want to improve it to Enterprise Edition and save the elders allowed other servers how do I do this Action

    Dear Sir
    I have windows server 2008 standard Edition, but we want to upgrade to Enterprise Edition and save old licenses to other servers how do I do this Action

    Thank you in advance

    Hello

    You can find the Server forums on TechNet support, please create a new post at the following link:

    http://social.technet.Microsoft.com/forums/en/category/WindowsServer/

  • 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

  • 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
  • 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.

  • 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

  • Satellite Pro U200: I want to improve memory up to 2 GB

    Hello

    I want to improve the memory to 2 GB in this notebook. Did someone or know how to find some manuals (with photos) on this subject. ?

    Thanks in advance
    Tomasz

    Hi Tomasz,

    The U200 SP comes with two memory slots and is expandable to a total of 4 Gb. RAM modules are available in 256 MB, 512 MB, 1 GB and 2 GB sizes. The RAM modules are normally accessed from the cell below, but for more details I suggest you check your user manual which will have full instructions to know how to locate, remove and replace them.

    Be particularly alert avoid static when you access RAM modules as they are very sensitive and easily damaged.

    You can find more information on the modules of RAM available here: -.

    http://www.orcalogic.co.UK/ASP/ProdType.asp?ProdType=25067&ft=m&St=3

    Kind regards

  • I have connected my iphone3g to itunes and it asked if I want to improve, and I agreed. Now, the phone is locked, indicating that my sim card is not supported. What can I do?

    . I have connected my phone3g to itunes and it asked if I want to improve, and I agreed. Now, the phone is locked, indicating that my sim card is not supported. What can I do? Can I uninstall the upgrade and bring him back as it was?

    Please help my phone is now dead.

    Thank you

    Your question has already been answered twice. Asking again will not change the answer.

  • I want to improve my HP Envy h8-1414

    I want to improve the GPU in my HP Envy H8-1414, but I need to know what cards are supported in the computer. I intend to change the GPU at an AMD Radeon HD 7950 3 GB ddr5 xfx and along with the PSU of 300w for a 430w. So what cards are supported and can be set in this case and the latest games with ease. It is a temporary game as well.

    Hello

    The bad news is that there is not a list of graphics cards for PC.

    Consult this publication documentfor more information.

    Playing the latest games with ease will require a greater than 430 Watt power supply.   You should consider a watt Corsair CX500, or CX600 power.

    Your PC has an update of the BIOS posted, so you must apply the update before using a different video card.

  • HP Pavilion Notebook - 15_p111: I want to improve my wireless g/n for a/c adapter

    I want to improve this map. 1. What is the recommended tools for laptop Toolkit I have to buy. 2 How much are these cards? 3. what network a/c adapters are compatible. 4. is there an official booklet I can refrence to the. PS I know that disassemble a laptop can be risky, especially since it will be the first time that I do, but if you never take any chances you will never have rewards. Help, please. Thank you.

    Hello

    Your machine was built at the end of 2014, you might be able to use the maps on page 4 of the following book:

    http://h10032.www1.HP.com/CTG/manual/c04427554.PDF

    Note: he uses 2.4/2.0GHz AMD Quad - Core A8 - 6410 APU.

    Kind regards.

  • I want to improve memory on iMac 27 in. 3.3 GHz, 5K retina. He now has two 4G of Ram. I want to add two 8 G of ram. Should I remove two 4 G, or simply add 8G in two empty slots? Going to have a mixed match (2 of 4 and 8 s 2) in trouble?

    I want to improve memory on iMac 27 in. 3.3 GHz, 5K retina. There are now two 4 G of Ram. I want to add two 8 G of ram. Should I remove two 4 G, or simply add 8G in two empty slots? There are 4 slots for RAM.  Going to have a mixed match (two 4 and two 8) in trouble? Or will it improve my speed giving me 24G of RAM?

    It will be fine as long as they are installed in pairs (and, as long as your model can handle 8 GB modules). Just install them in the empty slots. Working with word documents or online will be not much faster - you will notice the difference in speed apps to respond, with graphic design and video editing, etc or game play. The new OS versions like more RAM, so you can not go wrong there.

    FYI, you do not run iOS on an iMac - Please edit your profile to show what OS version you are using. It helps the helpers.

  • I want to improve on Icloud storage 5 GB to 50 GB, but I don't have a credit card. Is there another way to pay for it like buying a gift card to itunes and set up?

    I want to improve on Icloud storage 5 GB to 50 GB, but I don't have a credit card. Is there another way to pay for it like buying a gift card to itunes and set up?

    You can use a gift card or a debit card to pay for it.

    (137091)

  • I want to improve my hp pavilion 15 n003sq

    OK, so I want to improve my hp pavilion n003sq 15
    I have 2 questions:

    1. can I put my laptop up to 16 GB of ram? I have only 2 slots of 8 GB each. And I wonder if my laptop supports ram 2x8gb.
    It's the ram that I have in mind:
    -HP DDR3L 1x8GB SO-DIMM, 1600 MHz, 1.35v

    2. then, I want to know if I can install an mSATA SSD and then install my OS on it.
    I want a SSG with 200 + GB
    who is the best of the 3?
    - Crucial M500 240 GB mSATA CT240M500SSD3

    - Intel 525 240 GB mSATA OEM Pack SSDMCEAC240B301

    - A-Data 256 GB XPG SX300 mSATA3 ASX300S3-256 GM - C

    If I install the OS on the WSSD, it will work faster?

    The maintenance manual:

    Manual

    says it tops out at 12 GB, but I find it difficult to understand. There are 2 slots and I can't understand why you can put 8 gb in one and only 4 in another, but that's what he says and you don't believe it at your own risk. It is also said that you can install a WSSD mSATA but only if you have no more than 8 GB of RAM. Again, difficult to understand but there it is.

    The manual shows no more where the mSATA slot. The system is set up to discourage them using the mSATA for a bootable disc slot. The BIOS does not directly define a WSSD as the disk to MBR, so you need to use some software tricks to make it work. These are very advanced configurations and not for the average user.

    You would be much better to install a full-sized 2.5 inch SATA SSD. The instructions to do this are in the manual, but it is not something permitted of the customer. You would jeopardize the warranty and it requires extensive disassembly. HP and many other laptop manufacturers now offer units that allow for minimal if any client is upgraded. Yours is one of these, but at least the memory is accessible behind a service door. HP makes other similar models without service door at all.

    If it's 'the Answer' please click on 'Accept as Solution' to help others find it.

Maybe you are looking for