Mark the records

Hi SQL-experts,

You have three tables:
* Chassis, chassis_no primary key
* Parts, primary_key partno, chassis_no foreign key
* Price, primary_key partno

How would you create a select statement where you want as the chassis of the Group and summarize the prices including the part.
If you do not have a price of a partno then the brand of chassis rank with a * in the price column.
Like this:

Price of chassis
10-1000
20 *.
30 500

Concerning
/ Nicklas

Try this...

CHASSIS_NO     PARTNO     PRICE
10             1       100
10             2       200
20             1       100
20             3       NULL
30             4       400
30             1       100
with temp as
 (select c.chassis_no a, sum(r.price) b, min(nvl(r.price, -1)) c
    from Chassis c, Parts p, Prices r
   where c.chassis_no = p.chassis_no
     and p.partno = r.partno(+)
   group by c.chassis_no)
select t.a chassis_no, decode(t.c, -1, '*', t.b) price from temp t
CHASSIS_NO     PRICE
30             500
20             *
10             300

Tags: Database

Similar Questions

  • Sansa Clip + problems, correct the records but unknown marking and scrambled the tracks. Help!

    Hi guys,.

    There can someone please offer some advice for me and my husband before we became completely crazy?

    We bought for our daughter the Sansa Clip +, but we are having the same problem occur over and over again.

    During his music and audio books have first been loaded above all was fine. Added items displayed in the files and the right places but, now, for some reason when we add anything, the record of the album can be seen, but it also creates an additional folder that displayed as "Unknown". When you go and try to play inside this folder it does not work... "We always ensure that there is proper use of marking we MP" tag, so I know that the questions are not because of it.

    We have tried everything we can think of. Tried to update but I think we already have the latest version installed in any case - V01.02.18P, performed a factory reset, put in shape and I have tried using different modes, but it makes no sense. Why everything fine was a couple of days and not now...

    We use a 16 GB Kingston SDHC Card inside the Clip +.

    Please any ideas would be welcome because it becomes a nightmare.

    Thanks Claire x

    I should add that I am starting to think that I can have bought a card SD of FAKE writing is rubbing on the front of the card... IS this likely and if so could cause of the issues I am currently experiencing? XX

  • Automator to mark the complete reminder?

    I have a process every night (Monday to Friday) who writes a file in a specific DropBox folder when it is complete. What I'm trying to make, came with a "watchdog" to let me know when it happened.

    My thought was to create a periodic for each night of the week, to "Verify the process" and reminder due date to 23:59. I would like to use Automator to look at the record, and when a file is displayed, simply mark it as finished reminder (so it'll go the next day). So in the morning, if I recall, I know something was wrong.

    I can remove the reminder as below, but that ruins the recurrence. Is there a way with Automator just mark as complete? Or a command line method, so Automator could launch a terminal command?

    Hello

    To mark a reminder as completed:

    In an Automator workflow, you need to "Run the AppleScript" action with this script:

    on run
          set curDate to current date -- today at this time
          copy curDate to today
          set time of today to 0 -- today at "00:00:00"
          copy today to midnight
          set time of midnight to 86400 -- today at midnight
      
          set isRun to running of application "Reminders"
          tell application "Reminders"
                launch
                set completion date of (reminders whose name is "Check Process" and due date >= today and due date < midnight) to curDate
                if not isRun then quit
          end tell
    end run
    
  • The volume of the recorded sound is very low when played. I tried to solve the problems through Control Panel of configuration-sound options and increased the volume to 100 form my mic too. All the other volume options, it's 100 too. It has no effect. Hel

    The volume of the recorded sound is very low when played. I tried to solve the problems through Control Panel of configuration-sound options and increased the volume to 100 form my mic too. All the other volume options, it's 100 too. It has no effect. Help needed ASAP

    Hello

    Control Panel - SOUNDS - Audio peripheral devices configuration-manager

    Make sure you write down the description and model double click top - tab drivers - write version. Now
    Click on update drivers who cannot do anything like MS is far behind the certification of drivers. Then RIGHT
    CLICK above and UNINSTALL - REBOOT - this will rebuild the driver stack.

    If your driver shows 06 you have the default windows and part of the question.

    Go to the system manufacturer's website and get the latest Audio/Sound drivers - download - SAVE - go to the place where you
    Put them - right click on Reboot - RUN AS ADMIN -.

    Check the Version on the tab of the driver in the device as a sound Manager often restoring drivers, then install
    the current version. Restart and check after each try, not uncommon to have to run the pilot of 1 to 4 times or more.
    Just make sure that the version you have installed appears in the tab of the driver.

    Then navigate to the site of the manufacturer of the device and search for the drivers more recent and repeat the installation procedure.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    ---------------------------------------------------------

    After the updated driver.

    Click with the right button on the speaker near clock - recorders - right click in the box - check show disconnected devices
    and show disabled devices - check your micro - highlight them, then lower right properties. Do
    of course the appropriate injector is enabled and check that other settings - on the levels tab make sure MUTE is not checked
    and APPLY / OK changes.

    Also in the search for some Audio Manager Panel (perhaps named after the manufacturer of the sound driver). Mine
    is the RealTek Audio Manager, yours can be quite different name if you have one.

    How to activate Audio devices hidden in Vista
    http://www.Vistax64.com/tutorials/143447-audio-device-enable-hidden-devices.html

    Connect one microphone, music player or other audio device to your computer
    http://windowshelp.Microsoft.com/Windows/en-us/help/b0e3d7fb-1b4a-4926-8254-65da289209261033.mspx

    Problems with sound and audio or no sound - a Mr Fixit
    http://support.Microsoft.com/GP/NO_SOUND

    I hope this helps.

    Rob - bicycle - Mark Twain said it is good.

  • View the folders and files together in alphabetical order rather than the records first, then files

    It seems impossible to display files and folders together in alphabetical order.  Instead I see files first and then the files that I often (not always) want

    I have sometimes seen them together but have no idea how this happens.

    Ferrière

    Hello Ferds,

    In Windows Explorer, simply type an asterisk in the search engine to return all the files and folders in the folder parent.  You can click on any column heading to sort the results in this column.

    Mr. Doug in New Jersey

    It is a good workaround (thanks Mr Wizard) If you want to view the files in this way - but the procedure does not correct how Explorer files are sorted in the records themselves. And you will have to do it every time you viewed a folder because the search procedure would not automatically from window to window transfer and may not be assigned to do.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Full volume of the Bluetooth microphone in the recording tab and loud noises

    I recently bought a bluetooth dongle for my pc and I have been using a datel bluetooth headset as a microphone, the microphone was works well but I disconnected and then reconnected it and the green bar in the recording tab is now completely at the top, if I record something and I look back all I can hear is severe noise. I don't see how the material could have suffered that I has not yet remove my head in time between disconnection and reconnection there. Any help would be appreciated.

    Hello

    After connecting a microphone to a microphone to your computer and turned on Jack (if the microphone has a button), perform the following steps.

    a : Open Sound by clicking on the Start button, then Control Panel. In the search box, type soundand then click on sound.
    b: Click the recording tab, click Microphone, and then right click on the microphone and choose Properties.
    c: Go to the custom tab and place a check on amp Microphone.
    d: Now click on advanced and put a check mark on the two following options under the "exclusive Mode" option.
    a. allow the request to take exclusive control of this device.
    b. give exclusive mode applications priority.
     
    In addition, under the option "default format" try to use different sampling frequency in the drop-down menu until you get satisfied registration.
    e: Click apply and then click Ok to close the window.
     
     
    Hope this information helps.
     
    Answer please if you have any questions.
  • GhousT videos in the recorded TV section of MCE

    I recently restored my client Win7 Pro x 64 my support on WHS 2011 and my records have changed (I have C, D, E, F, G readers) positions or at least shared folders have changed with drive letters in the library, so I removed the files in my library to MCE and started thinking about all the new It would reset the library.

    -J' first began the search for libraries after selecting the files to look at and you press OK to continue using MC.

    - Then I went to the DVR programs and added missing new programming series.

    -Then a record started at the same time, but when the record was finished, I went to the TV section recorded in MCE and thus to find the program, I have also seen a season full of series 3 of my videos to travel (individually) and more than 10 new cases of other series that I have with in my library of videos (any folder recently (, I added a video to).

    They are not saved TV but my video library located in front of all my drive, and appearing with MCE recorded TV section, the real registered record TV has only registered in program (user > public > tv recordings).

    I can click on each video and play, and if I remove it from the saved of MCE TV section, he removes it also from what ever drive is too.

    I want only the recorded TV programming is displayed in this section of the MC, and I want that all my videos appears in the library section of the MC.

    How can I get these ghoust go away? without removing them from my computer. I have backups on my WHS, but how to reset MCE libraries? I want to reset all libraries (music, photo, video) and start a new one.

    Thanks for any help.

    WMC shares the library with Windows Media PLAYER. You can reset the
    database. Take a look at
    Comments on ghosts.
     
     
    Barb
     
    MVP - Windows/entertainment and connected home
     
     
    Please mark as answer if that answers your question
     
     
     
     
  • How to mark the current line in the grid forms

    How to mark the current line in the grid of forms in forms

    There is no grid in use in forms
    However, you were using the ORACLE spreadsheet in the OCX element before 10g in forms5.
    You can use the property of coloring of the ORACLE worksheet if you use older forms.

    If you speak the text displayed in the instances multile means with more display records. then you can use the Visual Attirbute
    and may affect the block attribute in current folder to the Visual attribute you make now.

  • Change in the merger of insert and create a procedure for updating the records after

    Hello

    I have a table that contains about 50 M lines of partition, and every day I have an application that performs a merge to insert records statement about 100 k per day and it's 300 M updates a day.

    Because I both update and insert the application performs a merge.
    I need to make at least 500 M, updated day by day, and for this reason this solution doesn't have enough performance for what I'm asking.

    I think another solution that I will try to implement now, and I just posted this in an attempt to get help on the option that I may have to do.

    I want to start putting in place:
    -Locations is updated 'last_record_date' using 'KEY1' and 'Key2' "KEY3";
    -Change the application to only inserts into a temporary table.
    -Have two procedures, one that takes the new records from the temporary table and inserts it into the final table, and another that selects records which is updated and perform an update.
    -This two procedures will choose the records and delete them from the temporary table (or mark them as updated\inserted).

    The volume is very large, so performance is a challenge! That's why I'm writing this, because a solution with enough performance for the intermediate stage will be difficult.
    My final table is partitioned by date and the date is the area that I need to update (instead of create daily partitions in order to reduce the frequency of the movement of the line, I create monthly partitions)!
    It is currently my table definition:
    CREATE TABLE MY_TEST_TABLE
        (KEY1                           VARCHAR2(50 BYTE) ,
        KEY2                         VARCHAR2(50 BYTE) NOT NULL,
        KEY3                           VARCHAR2(50 BYTE) ,
        last_record_date                    VARCHAR2(50 BYTE) NOT NULL)
      PCTFREE     10
      INITRANS    1
      MAXTRANS    255
       STORAGE   (
        BUFFER_POOL DEFAULT
      )
      NOCACHE
      MONITORING
      ENABLE ROW MOVEMENT
      PARTITION BY RANGE (last_record_date)
      (
      PARTITION MY_TEST_TABLE_201112 VALUES LESS THAN ('20120101')
      PCTFREE     10
      INITRANS    1
      MAXTRANS    255
      NOLOGGING,
      PARTITION MY_TEST_TABLE_201201 VALUES LESS THAN ('20120201')
      PCTFREE     10
      INITRANS    1
      MAXTRANS    255
      NOLOGGING,
      PARTITION MY_TEST_TABLE_201202 VALUES LESS THAN ('20120301')
      PCTFREE     10
      INITRANS    1
      MAXTRANS    255
      NOLOGGING,
      PARTITION def VALUES LESS THAN (MAXVALUE)
      PCTFREE     10
      INITRANS    1
      MAXTRANS    255
      NOLOGGING
      )
      NOPARALLEL
    /
    
    
    
    -- Constraints for MY_TEST_TABLE
    
    ALTER TABLE MY_TEST_TABLE
    ADD CHECK ("KEY1" IS NOT NULL)
    /
    
    ALTER TABLE MY_TEST_TABLE
    ADD CHECK ("KEY2" IS NOT NULL)
    /
    
    ALTER TABLE MY_TEST_TABLE
    ADD CHECK ("KEY3" IS NOT NULL)
    /
    ALTER TABLE MY_TEST_TABLE
    ADD CONSTRAINT pk_MY_TEST_TABLE PRIMARY KEY (KEY1, KEY2, KEY3)
    USING INDEX
      PCTFREE     10
      INITRANS    2
      MAXTRANS    255
    /
    Thank you
    Ricardo Tomas

    naoseionome wrote:
    Hello

    My version is:
    Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production

    It's the DOF I used to create the database.

    The merger is common during every day for about 10 M records.

    There are several methods to do the update, but they do sequencially to avoid deadlocks (because I can't control the source and each process can update the same keys.

    The update uses "KEY1, KEY2, KEY3" to update the value 'LAST_RECORD_DATE' have impact by being date or varchar2?

    I'm still waiting to receive permissions in order to follow up the matter, but in the meantime, in that I am trying to implement this work around in order to accelerate a development in the case where it would be necessary! Comments only I have at the moment, it is that he is not able to process the total amount of records timely (order book is generated).

    Thank you
    Ricardo

    Well, the first thing we do is to change the type of data type varchar to a date. The main impact is that a date is not a string, it's a date. If you are adding data processes in different date formats (which is possible when you use a character to store information) you're going to be very sad (good luck converting back an effective date).

    An example of how this can happen easily.

    ME_TUBBZ?select to_char(sysdate) from dual;
    
    TO_CHAR(SYSDATE)
    -----------------------------
    12-jan-2012 10 55:33
    
    1 row selected.
    
    Elapsed: 00:00:00.01
    ME_TUBBZ?alter session set nls_date_format = 'yyyy-mon-dd';
    
    Session altered.
    
    Elapsed: 00:00:00.01
    ME_TUBBZ?select to_char(sysdate) from dual;
    
    TO_CHAR(SYSDATE)
    --------------------
    2012-jan-12
    
    1 row selected.
    
    Elapsed: 00:00:00.00
    

    Assuming that the client passes the column as an Oracle DATE will make an (implicit) conversion to store the data as a string, which will be based on the current settings of the NLS for the session. This allows also for someone to completely non-jour the information in the column (super bad). It's just really bad form to use strings to store dates, numbers, anything that is not naturally a string.

    Based on the description of your problem, I can't imagine how your partitioning scheme performs one action in another that require more work in order to process the updates (which are most of your needs). Partitioning does not equate to increase performance. It is a tool that, like every tool has its place, but I do not think that this is justified for what you do (certainly not how you currently use it anyway).

    I say no partitioning can not be useful for you, but I don't think that on the column that you are currently using is 'good '.

    Something I would like to personally study (must be able to compare this approach to your course, if you need parameters for comparison) if I were you would be using a Table Index organized for it. It will take more time to perform the operations insertion, but that is a small part of all the work that you do for this process. For updates, it should eliminate a lot of IO, assuming that you are doing an INDEX seek followed by a table access by ROWID to perform updates. This recommendation assumes that everything you said is true. You have 4 columns in your table, of which 3 are components of the primary key and the 4th is a date (note I did not string :)) and that you refresh mainly, not fit.) Also that you have no 'secondary' on this entity index (and none are needed).

    I would investigate this approach before the solution of temporary table that you are currently studying.

    See you soon,.

  • Move to the record of the groups now

    I work in form 11g and using the webUtil version that was included with it. I just do my development by remoteing directly on the server because it is easier that develop on my computer the compilation and then sending to the server and then compile again until I can use it and the server runs on Windows Server 2003 SP2.

    For those of you who have not until this follow-up to my posts, I'm working on the use of webUtil to create buttons to upload/download on one of the forms of our program. I FINALLY got webUtil set up and got the part of download works now I am trying to enter the download, I try firstly set up a way to show the user which was transferred to the table (not the actual blob or anything like that just the document filename ID etc) so they can select which file they want to download it to their computer , I tried to do this as well by creating a drop-down list and put the ID doc in that and also just by clicking on the button and pulling it upward a LOV the user to pic and in both cases he works not. The problem, I am running, at least for now, is that somehow it is not able to fill the record, I know that, I just can't understand what may not be correct with the record group... the only properties in the record group is the name of it, the query that fills the size of the extraction and the columns, the query throws an error as soon as you click on that property if there is nothing wrong with that, columns are practically filled auto of forms and the size of the extraction I tried almost all values between 0 and 100, nothing helps.

    The query I use is:

    SELECT ANNUAL, FILENAME
    DOCUMENTATION
    WHERE ANNUAL IS NOT NULL
    ORDER BY ANNUAL CSA

    but when I try to run the program I get a FRM 41076: error group filling. Followed by a FRM 40502: ORACLE error: cannot read the list of values. Of course, he cannot read the list of values there is no value to read because the record group has not been filled.

    Please any help on this is greatly appreciated. The wonderful people of this forum have been absolute rescuers so far on my quest to get this program to work despite the better to keep me from succeeding.
    SELECT DOC_ID, FILENAME
    

    DOCUMENTATION
    WHERE ANNUAL IS NOT NULL
    ORDER BY ANNUAL CSA

    What happens when you run your query more SQL, TOAD, etc.?

    Your table is created in the schema JLIM. This user are you connected to forms with? If it is not the user JLIM, then you will need to reference the table in your query using the schema owner. FOR EXAMPLE:

    SELECT DOC_ID, FILENAME
    FROM jlim.DOCS
    WHERE DOC_ID IS NOT NULL
    ORDER BY DOC_ID ASC
    

    If this table will be used frequently by your form application, you can eliminate the need to fully qualify your table by creating a public synonym to the table.

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

  • Overview and details of the records in the same mixing ratio

    Hello, on the bottom I need to mix the results in the summary table and the records in the table of details in the same report.

    To create the scenario:
    CREATE TABLE ALPHA
    (
    ALPHA_ID     NUMBER,
    ALPHA_NR     NUMBER,
    ALPHA_TOTCT     NUMBER,
    ALPHA_FUND     NUMBER
    
    );
    
    ALTER TABLE ALPHA ADD (
         CONSTRAINT ALPHA_PK PRIMARY KEY (ALPHA_ID));
    ALTER TABLE ALPHA ADD (
         CONSTRAINT ALPHA_NR_UNI UNIQUE (ALPHA_NR));
    
    
    INSERT INTO ALPHA(ALPHA_ID, ALPHA_NR)
    VALUES( 1, 7 );
    INSERT INTO ALPHA(ALPHA_ID, ALPHA_NR)
    VALUES( 2, 11 );
    INSERT INTO ALPHA(ALPHA_ID, ALPHA_NR)
    VALUES( 3, 15 );
    INSERT INTO ALPHA(ALPHA_ID, ALPHA_NR)
    VALUES( 4, 17 );
    
    CREATE TABLE HIST
    (
    HIST_ID     NUMBER,
    HIST_NR NUMBER,
    HIST_ALPHA_NR NUMBER,
    HIST_CT          NUMBER,
    HIST_VAL     NUMBER,
    HIST_DATE     DATE
    
    );
    
    ALTER TABLE HIST ADD (
         CONSTRAINT HIST_PK PRIMARY KEY (HIST_ID));
    ALTER TABLE HIST ADD (
         CONSTRAINT HIST_NR_UNI UNIQUE (HIST_NR));
    ALTER TABLE HIST ADD (
         CONSTRAINT HIST_ALPHA_NR_FK FOREIGN KEY (HIST_ALPHA_NR) REFERENCES ALPHA ( ALPHA_NR ) );
    
    TRUNCATE TABLE HIST;
    
    INSERT INTO HIST( HIST_ID ,HIST_NR ,HIST_ALPHA_NR ,HIST_CT ,HIST_VAL ,HIST_DATE )
    VALUES ( 1 ,1    ,7 ,1 ,10 , TO_DATE('01.02.2009' , 'dd.mm.yyyy' ) );
    INSERT INTO HIST( HIST_ID ,HIST_NR ,HIST_ALPHA_NR ,HIST_CT ,HIST_VAL ,HIST_DATE )
    VALUES ( 2 ,6    ,7 ,1 ,10 , TO_DATE('01.05.2009' , 'dd.mm.yyyy' ) );
    INSERT INTO HIST( HIST_ID ,HIST_NR ,HIST_ALPHA_NR ,HIST_CT ,HIST_VAL ,HIST_DATE )
    VALUES ( 3 ,3    ,7 ,3 ,30 , TO_DATE('01.02.2010' , 'dd.mm.yyyy' ) );
    
    
    INSERT INTO HIST( HIST_ID ,HIST_NR ,HIST_ALPHA_NR ,HIST_CT ,HIST_VAL ,HIST_DATE )
    VALUES ( 4 ,4    ,11 ,1 ,10 , TO_DATE('01.03.2009' , 'dd.mm.yyyy' ) );
    INSERT INTO HIST( HIST_ID ,HIST_NR ,HIST_ALPHA_NR ,HIST_CT ,HIST_VAL ,HIST_DATE )
    VALUES ( 5 ,5    ,11 ,-2 ,-20 , TO_DATE('01.06.2010' , 'dd.mm.yyyy' ) );
    INSERT INTO HIST( HIST_ID ,HIST_NR ,HIST_ALPHA_NR ,HIST_CT ,HIST_VAL ,HIST_DATE )
    VALUES ( 6 ,8    ,11 ,1 ,10 , TO_DATE('01.02.2011' , 'dd.mm.yyyy' ) );
    
    INSERT INTO HIST( HIST_ID ,HIST_NR ,HIST_ALPHA_NR ,HIST_CT ,HIST_VAL ,HIST_DATE )
    VALUES ( 7 ,2    ,15 ,2 ,20 , TO_DATE('01.03.2009' , 'dd.mm.yyyy' ) );
    INSERT INTO HIST( HIST_ID ,HIST_NR ,HIST_ALPHA_NR ,HIST_CT ,HIST_VAL ,HIST_DATE )
    VALUES ( 8 ,7    ,15 ,5 ,50 , TO_DATE('01.06.2010' , 'dd.mm.yyyy' ) );
    INSERT INTO HIST( HIST_ID ,HIST_NR ,HIST_ALPHA_NR ,HIST_CT ,HIST_VAL ,HIST_DATE )
    VALUES ( 9 ,9    ,15 ,-4 ,-40 , TO_DATE('01.02.2011' , 'dd.mm.yyyy' ) );
    
    INSERT INTO HIST( HIST_ID ,HIST_NR ,HIST_ALPHA_NR ,HIST_CT ,HIST_VAL ,HIST_DATE )
    VALUES ( 10 ,10    ,17 ,1 ,10 , TO_DATE('01.03.2011' , 'dd.mm.yyyy' ) );
    To update the summary table, I used a view
    CREATE OR REPLACE VIEW HIST_AGG ( HIST_ALPHA_NR,  TOT_CT  , TOT_VAL )
    AS
    SELECT HIST_ALPHA_NR
    ,SUM ( NVL(HIST_CT, 0 ) ) TOT_CT
    ,SUM( NVL(HIST_VAL, 0) )  TOT_VAL
    
    FROM HIST
    GROUP BY HIST_ALPHA_NR;
    
    
    DECLARE
    
    CURSOR cur
    IS
    SELECT
    HIST_ALPHA_NR
    ,TOT_CT
    ,TOT_VAL
    FROM HIST_AGG
    ;
    
    BEGIN
    FOR rec IN cur
    LOOP
    
         UPDATE ALPHA
         SET ALPHA_TOTCT = rec.TOT_CT
         , ALPHA_FUND  = rec.TOT_VAL
         WHERE ALPHA_NR = rec.HIST_ALPHA_NR;
    
    END LOOP;
    
    END;
    First report should the line overview Alpha tracked table of all the detail records of
    HIST table and for each alpha_nr. At the end of report total overview
    alpha of the table.
    "SUMMARY";"ALPHA_NR";"ALPHA_TOTCT";"ALPHA_FUND";
    ;;;;
    ;7;5;50;
    ;7;1;10;01.02.2009
    ;7;1;10;01.05.2009
    ;7;3;30;
    ;11;0;0;
    ;11;1;10;01.03.2009
    ;11;-2;-20;01.06.2010
    ;11;1;10;01.02.2011
    ;15;3;30;
    ;15;2;20;01.03.2009
    ;15;5;50;01.06.2010
    ;15;-4;-40;01.02.2011
    ;17;1;10;
    ;17;1;10;01.03.2011
    "TOTAL_ALPHA_NR";4;9;90;
    Second report should display the overview by period (year), but the timeline
    for example the year 2009 begins from the year 2010. At the end of each year a summary for
    the current state.
    "YEAR";"ALPHA_NR";"ALPHA_TOTCT";"ALPHA_FUND"
    ;;;
    2009;7;0;0
    ;11;0;0
    ;15;0;0
    ;17;0;0
    "Total 2009";4;0;0
    2010;7;2;20
    ;11;1;10
    ;15;2;20
    ;17;0;0
    "Total 2010";4;5;50
    2011;7;5;50
    ;11;-1;-10
    ;15;7;70
    ;17;0;0
    "Total 2011";4;11;110
    2012;7;5;50
    ;11;0;0
    ;15;3;30
    ;17;1;10
    "Total 2012";4;9;90

    Hello

    wucis wrote:
    I now use this selection

    ...
    FROM       hist        h
    ,       alpha        a
    WHERE       h.hist_alpha_nr (+)     = a.alpha_nr
    AND       a.active          = 'Y'
    AND a.alpha_nr >=  NVL ( NULL  , 1 )
    AND a.alpha_nr <=  NVL ( NULL  , 10000 )
    AND a.alpha_date >= NVL ( TO_DATE( '02.01.2008'  , 'dd.mm.yyyy' ) , '01.01.2000' )
    --AND h.hist_date  >= NVL ( TO_DATE( NULL  , 'dd.mm.yyyy' ) , '01.01.2000' )
    --AND h.hist_date <= NVL ( TO_DATE( NULL  , 'dd.mm.yyyy' ) , '02.02.2222')
    ...
    

    The problem is now, if I limit the query about the h.hist_date, the lines disappear when there is no entry in HIST for this ALPHA_NR,
    in particular the line with alpha_nr = 12 disappears.

    When you use the old notation join, outer join, whenever a column of a table is marked with the + sign, then all the conditions in the WHERE clause that references the same table need a sign +. Otherwise, the effect is identical to an inner join.
    Using the old syntax, you must say something like:

    ...
    FROM       hist        h
    ,       alpha        a
    WHERE       h.hist_alpha_nr (+)     = a.alpha_nr
    AND       a.active          = 'Y'
    AND        a.alpha_nr          >=  1
    AND        a.alpha_nr           <=  10000
    AND        a.alpha_date           >=  TO_DATE ('01.01.2000', 'dd.mm.yyyy')
    AND        h.hist_date (+)     >=  TO_DATE ('01.01.2000', 'dd.mm.yyyy')
    AND       h.hist_date (+)     <=  TO_DATE ('02.02.2222', 'dd.mm.yyyy')
    ...
    

    Notice the + sign in the last 2 lines, after the columns in this table of reference h. I find the ANSI join syntax much more clear in this case.

    How you use NVL makes no sense. NVL (NULL, x) returns x, no matter what x is.
    What you trying to do? Perhaps you meant

    AND        NVL (a.alpha_nr, 1)          >=  1
    
  • Synchronization of photos for the records of several PC iPAD

    Hello

    I have pictures in several files in my PC.

    I would like to synchronize all at once to my iPAD.

    When I opened "Synchronize the Photos" - page in iTunes, it is possible to select only a single folder.

    Is it possible to select several folders?

    Peter

    If the records are directly under the same parent folder then you should be able to select this parent folder at the top of this screen of Photos and records of the child must be indicated below (if you select "Selected folders") for the selection and timing of the iPad for example

    If files are located on your computer, then no, you will not be able to select and synchronize them with your iPad - I created a folder separated (with specific subfolders for holidays/events) for the photos that I have synced my iPad

  • Thunderbird says it can't find the records that my message filters use and are present in the list of folders.

    The error message reads:

    The record [which] is not found, then the filters associated with this file will be disabled. Verify that the folder exists, and that the filters to point to a valid destination folder.

    If I manually edit the disabled message rules and try a mail run, the same error messages come up.
    

    I have the problem solved. The database of the service provider Internet Mozilla for some reason any returns the name of the server 'imap.gmail.com' when the account is set up in Thunderbird.

    Manually configure as "photoscape", and filters work very well.

  • Thunderbird eliminated most of the records online and will not let me create new ones to replace them and read email stored in them.

    In order to remove online a large number of files in a folder (a folder IMAP?), I deleted the folder and then created a new folder with the same name. The next time I open Thunderbird, all my online except sent and trash folders disappeared, and I could not re - create files that have been deleted. I can't access the files stored in these folders or move files in folders bearing the names of deleted files. I can create files with names not used before. But I can't create a new folder of Junk to hold files that Thunderbird regularly sends to junk. I do not receive e-mail in the process. Local folders are not affected hereby. What can I do? I have Thunderbird 24.5.0. Thanks for any help.

    Go to file / subscription and see if you just without subscription to records.

    Check folders and make sure EVERYTHING is checked.

    Learn how to use several methods of selection and do not delete the records that you want to keep.

    control + a = select all

    Click heading 1, move upwards or downwards several items and maintain the SHIFT key while clicking the point 2 = selects items 1 and 2, and between the two

    Hold down the CTRL key while clicking random objects = selects any element clicked on

    Hold down the CTRL key while clicking on a selected item = deselect this item

  • See primary e-mail profile (account) is not at the top of the records, only local folders pane, unable to auto receive.

    TB V - 24.4.0, Win XP32, fired from OE to the CT today on the friends system is about to run Win 7 64. Original e-mail account is lequipetv.fr and it was able to import all the mail and setting of address book correctly in TB. However, at the top of the pane of the records of the CT, his main account is not listed, only local files. When I sent a test email to his account, he has not received so I tried to click on the "Get Mail" button above the pane folder without success. Next to the right of the "Get Mail" button is a drop down and when I open, I see 'download all new messages at the top and his main account (complete address) below. Now when I click on his email in this button, his hand began to populate fine. Looks like the main profile (account) is not the default value and after 3 hours of reading tips, support, help files, etc... at my wits end trying to get it setup correctly if I can back it up with Mozbackup and restoration on the new system. I would like to include a screen shot, but could not find an option to do so at the moment, another question? Thanks in advance.

    Thanks Matt, you provided now settings TB download new default email opening of TB. One last question, I don't like having the pane complete message for security reasons, but when I go into this display/page/Message pane and uncheck it on every screen, every time that I reopen it TB, it gives the message pane on. Any way to save it permanently? Thanks again for your help!

Maybe you are looking for

  • Questions of G72 - "pinch" the Touchpad / compatible keyboard backlight

    Currently, I bought a HP G72-B66US.  I just have a few questions. I am able to "pinch" on the Touchpad zoom?Y at - it a backlit keyboard to this model? Any help would be greatly appreciated.

  • How to upgrade the software Motocast on PC?

    My backup phone is no longer on my PC because it indicates that I have to update my Motocast software. For the life of me, I can't understand how to do this. Help!

  • Suspension of a write operation to DAQmx

    Hi all I use a DAQmx with the cards NI9402 and 9264 to control current amplifiers for an MRI System. I intend to do using a waveform table raised on channel 3 of the NI9402 (high-speed digital input). The difficult part is I need to pause the write o

  • Problem DAQmx Read or PDM

    Hello Recently, I changed a series of Structures of cases in a more efficient Structure of the event. However, I'm no longer able to acquire the 4 analog inputs (OR-USB6251) terminals voltage signals with DAQmx Read and store them in a TDMS files. Th

  • H323:Cisco

    I get a large number of very short calls of 'h323:cisco' on my SX20 camera. Calls last for two or three rings and then stop - they are very annoying. I would like to know why--and how to stop them. They seem to have begun in the last two days - and h