Help with the situation where a simple group by statement does not work

There is a table with two columns, which is memo (varchar2), another is recording_date (date). This table is used to recode an every day event. Right now, I need to know how many events registered each day during the time period (between any of the given day and any given end day). the result by selecting should have two columns the numeration of the event, the recording_date. chances are one day it is not just any event, in this situation there not all inserted rows so far here, but the result by selecting must contain also that day with the column count is set to zero.
between 2010-4-5 and 2010-4-8
Count   recording_date
2             2010-4-5
0             2010-4-6
1             2010-4-7
9             2010-4-8
Can anyone help with this? Thank you in advance!
Kind regards!

Hello
See if this helps:

I create a dummy cursor that contains one row for each day of the last year - I then outer join the result of the query against the log_table.

Here are my RAW file
Select * from log_data

07/05/2010 1, TEST
TEST 2 05/05/2010
02/05/2010 3, TEST
30/04/2010 4, TEST
TEST OF 5 30/04/2010
30/04/2010 6, TEST
7-30/04/2010 TEST
8 TEST 06/05/2010
9 TEST 06/05/2010
10 06/05/2010 TEST
11 06/05/2010 TEST
06/05/2010 12, TEST
13 TEST 06/05/2010
2010-05-06 14, TEST
15 06/05/2010 TEST
16 06/05/2010 TEST
2010-05-06 17, TEST

And here's the query

with date_ranger as (select trunc (sysdate-) level datecol
from dual connect by level<= 365="">
RAW_DATA as)
Select recording_date, count (*) numrows in log_data
Group of recording_date)
Select datecol, date_ranger numrows, raw_data
where = date_ranger.datecol raw_data.recording_date (+)
and datecol sysdate-10-sysdate
order by 1

And the result

1 28/04/2010
2 29/04/2010
30/04/2010 3, 4
4 01/05/2010
02/05/2010 5, 1
6 03/05/2010
7 04/05/2010
8 05/05/2010 1
9 06/05/10/2010

What you want?

See you soon,.
Harry

Tags: Database

Similar Questions

  • my iPhone 6s has problems with the GPS when I use some applications, it does not work well and give especially the bad road. Can someone help me?

    my iPhone 6s has problems with the GPS when I use some applications, it does not work well and give especially the bad road. Can someone help me?

    My iphone 6 has started having the same problem. Its literally the GPS. Saying that it does not find me at all. Ive seen say location for more than an hour in the suburbs of chicago. It started to happen to me after I downloaded the latest update for the iphone. I hope they react and let you know what is happening because I'm dying to know as well.

  • Frustration with the cat...  My serial number does not work on installing new hard disk

    Can someone please HELP...  I don't know what to do...

    Transcript of the chat...  May 11, 2016

    Info: thank you for your patience.
    In the meantime, you can try our community forums, where experts are available 24 hours a day, 7 days a week to answer your questions.
    You can also chat with the experts from Adobe live on the contraction. Check out our Calendar for Ask the Experts LIVEand get 'How To' video stream live, ask questions and learn new skills!

    Info: now you are chatting with Chidananda.
    Please do not close the discussion window or browser tab because it will end our chat session.

    Sylvain: Hello! Welcome to the Adobe Customer Service.
    Sylvain: Hey Michael
    Sylvain: I'm reviewing your question. Please stay on the line and do not close the chat window or browser to ensure our chat session is not interrupted.
    Sylvain: I understand you have a problem with the installation of the Acrobat 9 product. I'm wrong?
    Michael Schiavone: it is installed very well... it does not accept my serial number.
    Sylvain: I have the serial number of the product maybe?
    Michael Schiavone: your file was uploaded successfully: Capture.PNG.
    Michael Schiavone: your file was uploaded successfully: Capture2.PNG.
    Sylvain: Please be sure your details online.
    Michael Schiavone: OK
    Sylvain: thank you for your stay online.
    Sylvain: you need to post your query on the Adobe Forums. Our competent team will solve your problem.
    Sylvain: because we do not have information about the activation of the older products version.
    Sylvain: is there anything else I can help?
    Sylvain: we are always connected?
    Michael Schiavone: I am very frustrated... I paid for the product. It was working fine until my computer quit. I had to reinstall on a new drive hard should not because I have to buy AGAIN. The forum was not able to help me. ADOBE is holding me ransom.
    Sylvain: I understand your frustration. We have not the older version product information. So I offered you for the Adobe forums.
    Michael Schiavone: Adobe forums were not able to solve this problem. When I purchase the software for $650.00 8 years ago, Adobe did NOT indicate that it was an END of LIFE.
    Michael Schiavone: I want an activation code that will allow me to use my software. I KNOW that your technicians have a usable code.
    Info: you will receive your chat transcript at [email protected] at the end of your cat.
    Sylvain: I suggest that get you the latest version of Acrobat Pro DC where we can help you download and install it. Given that we don't have an older product version information.


    Michael Schiavone: is NOT acceptable... I don't want to buy something I paid already dedicated give Me a refund and then I'll buy!
    Sylvain: I'm sorry to inform you that Adobe no longer supports older products version.
    Sylvain: we are always connected?
    Michael Schiavone: Yes... I don't know what to do. It's like I bought a car and the wheels fell. I do not support need only a serial number
    Sylvain: your serial number given is valid.
    Michael Schiavone: so why now work?
    Sylvain: due to a technical error.
    Sylvain: so I offered you to post your query on the Adobe Forums.
    Sylvain: to get your problem.
    Michael Schiavone: bye

    Capture2.PNGCapture3.PNG

    When you ask a question you will need to provide some basic information

    -Forum quick start https://forums.adobe.com/docs/DOC-5601

    Mac or Windows and EXACTLY what version of the operating system?

    Recent Mac AND Windows operating systems have been known to cause problems "weird."

    Using a full account of computer administrator with read/write permission?

    Invalid License http://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html

    -http://helpx.adobe.com/creative-suite/kb/invalid-serial-number-cs4.html

    - and http://forums.adobe.com/thread/1038761

  • OfficeJet 4630: brand new officejet 4630 with the problem of black ink and ok button does not work

    Hello! Today, I bought a new printer, officejet 4630 and it included ink cartridges in the box.

    ISET it upward as the sheet in the box said. After I had filled in date etc, I put in the ink (and Yes, remember to check it was compatible and take the Ribbon), then this message showed on the screen and still doesn't work:

    "Problem of ink cartridges. The following ink cartridges need to be replaced"and a black dot.

    The cartridges were brand new and came in the same area as the printer.

    I tried a reset (taking the power cord, wait 60 s etc) I saw in the Hp support you need to press 'ok' to get rid of the message before restarting. I can't press ok. It sounds right. I press any button.

    Suggestions? Of course, I can try it with a new cartridge, but to pay $20 for a new cartridge, when it was included in the box and should work is not correct.

    Hi @Candykuma,

    Welcome to the HP Forums!

    I understand that you ar get the error, the "problem of ink cartridges. The following ink cartridges need to be replaced"with your black cartridge on your printer HP Officejet 4630. I am pleased to address this error of cartridge for you!

    Please, try the steps in this guide, a "missing cartridge", 'cartridge problem,' or 'not compatible ink cartridges' Message error for HP Officejet 4630 and HP Deskjet Ink Advantage 4640 e-all-in-one printer series.

    If this guide does not solve your problem, please Contact HPtelephone support for further assistance, as the ink cartridges are under warranty. (After you fill out the information, you will receive a phone number.) If you do not live in the United States / Canada region, please click the link below to get help from your region number. Language-country selector.

    Good luck!

    "Please click the Thumbs up icon below to thank me for having responded."

  • Internet Explorer also displays the part where I can enter data, FF does not work.

    When I enter the URL below IE shows a header and then a part where I can enter my data of payer of tax and a trailer. FF shows only the header and the trailer.

    Hi cor - el,.
    -OK, I checked it...
    that looks like bad luck, and I'm afraid I have to use IE for this task.
    -You can find the...
    I have installed that already have a couple of weeks without result.
    -You can try the...
    I think that's too much effort to not use IE, and my time is somewhat limited.
    In any case, thanks much for investing your time to help me with this problem. I understand now what it is, and this is the first time that I had a problem with FF during all these years that I used it.
    Thanks again and good luck!

  • recommended security cumulative ie8 and compatible display updates fail. can install it with the installer of standalone download but then ie8 does not connect. If I remiove update ie8 works very well

    recommended security cumulative ie8 and compatible display updates fail. can install it with the installer of standalone download but then ie8 does not connect. If I remiove update ie8 works very well

    Hi mikedav,

    Thank you for using the Microsoft Windows Vista Forums.

    Method 1:

    Microsoft has released a new "Fix it" solution that should automatically solve your problems with Windows Update.  Just click on the link below and follow the instructions.

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058

    If you are not able to connect to the internet after you install the update, you need to optimize Internet explorer by following the instructions below.

    Method 1:

    Follow the instructions in the link below which will help you solve the problem.

    Tips for solving problems with Internet Explorer

    http://windowshelp.Microsoft.com/Windows/en-us/help/8038f9ac-9bf9-4809-8d75-fc42818d8af71033.mspx

    Method 2:

    Follow the instructions in the link below to optimize Internet Explorer.

    How to optimize Internet Explorer

    http://support.Microsoft.com/kb/936213

    Please post back and let us know if it helped to solve your problem.

    Kind regards

    KarthiK TP

  • Hi, I have installed sqldeveloper - 4.0.3.16.84 - x 64 with JDK and tried to run SQLDeveloper.exe its does not work. A flash comes and goes. It worked fine until two days ago. Don't know what happened all of a sudden its not working. Need help.

    Hi, I have installed sqldeveloper - 4.0.3.16.84 - x 64 with JDK and tried to run SQLDeveloper.exe its does not work. A flash comes and goes. It worked fine until two days ago. Don't know what happened all of a sudden its not working. Need help.

    I use Windows 7 Pro.

    I have read other threads and tried to launch SQLDeveloper.exe from the CMD prompt, nothing is shown a flash comes and goes.

    Tried to change of SetJavaHome sqldeveloper.conf to the path JDK that it didn't work.

    Please guide me.

    Thank you

    Maybe there is a problem with SQL Developer, being able to write to the network share of desktop directory.  Add the following to your sqldeveloper.conf file to force the settings of the user to store locally also:

    AddVMOption - Dide.user.dir = some_local_dir_to_own_system4.0.3.16.84

    I hope this helps...

  • My Inbox to view the sender for each message and now it does not work... How do I get it back to where it was?

    My Inbox to view the sender for each message and now it does not work... How do I get it back to where it was?

    Right-click on the header at the top of the list of messages and select from the list of options.

  • the webcam built into my Medion Akoya laptop does not work with Skype

    the webcam built into my Medion Akoya laptop does not work with Skype... Thanks in advance

    Do Skype supported say when contact you?

  • I need help. I updated Adobe cc and now my photoshop does not work. Here is the error message:

    ' I need help. I updated Adobe cc and now my photoshop does not work. Here is the error message:


    Problem event name: APPCRASH

    Application name: Photoshop.exe

    Application version: 16.0.0.88

    Application timestamp: 55681d 39

    The default module name: StackHash_76b2

    The default module version: 0.0.0.0

    The default module timestamp: 00000000

    Exception code: c0000005

    Exception offset: 0000000000000006

    The system version: 6.1.7601.2.1.0.768.3

    Locale identifier: 3084

    Information extra No. 1: 76 b 2

    Information extra No. 2: 76b2e5a7b24373bbe6f47563f13e47b1

    Information extra No. 3: 51ff

    Information extra No. 4: 51ff68a42cf4d2164e10e22e1f794f34


    Hi Oscar,.

    Please see the thread below:

    Photoshop CC 2015 crashing?

    You can also check: 2015 release of Photoshop CC: FAQ

    Kind regards

    Sheena

  • The right side and express USB card reader does not work

    Hello

    The USB 3.0 right on my rMBP does not work. I have can´t to connect any device to this side. No connection or power.

    Express card reader doesn't work or the other. Finder or disk utility will not show map of mountain.

    I can´t find the card express under system reports reader.

    I ran a test for diagnosis of Apple without any problem.

    I have reset the SMC & LANDAU.

    I reinstalled the operating system without success.

    Anyone who knows how to fix this?

    MacBook Pro with OS X El Capitan 10.11.5, Retina display

    Can someone help me here, please!

    Based on what you have tried and if can't see any device in disk utility, you are dealing with a hardware problem.  Your best option is an appointment at an Apple store for a FREE genius bar.

    Ciao.

  • My CD-ROM/DVD-Rom drive & the Bison Webcam built into my laptop. Does not work after I upgraded from Vista home premium to Windows 7 Home premium.

    My readers Optiarc DVD - RW AD-7530 ATA Device DVD/CD-ROM & the Bison Webcam built into my laptop. Does not work after I upgraded from Vista home premium to Windows 7 Home premium.
    Although of course, the CD-ROM drive worked during the upgrade.
    I noticed that when I turn firstly on the laptop, the last two lines of the front entry from Windows 7 are the following.
    PXE - E6i:Media Test Failure, Check Cable
    PXE - MOF: Exit PXE Rom
    During the audit of each Properties in Device Manager devices", I learned that they both work correctly.  In the list in the printers and the @Devices the only Webcam shown is also a "USB 2.0 Camera"
    Can someone help me please?
    Best regards
    John

    Besides what abdelhak says:

    The message of PXE boot that you receive when you start your computer has nothing to do with your CD/DVD-Rom drive. Your computer uses a PXE boot method to attempt to load Windows from a location on your network. Since you do not have this configuration, it is safe to ignore it. If it slows down the startup time of your system, contact your manufacturer and ask them for instructions on how to "disable PXE Network Boot of the BIOS.

    Hope this helps,

    Thank you! Ryan Thieman
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • After VO extension update the page for some fields on a page does not work

    After VO extension update the page for some fields on a page does not work. The message arrives the data are saved, but the values is the same as that of the former. And this happens with only a few fields, other fields are working well.

    Any pointer to solve problems will be of great help.

    Thank you in advance.

    Check if the standard VO has a RowImpl and it overrides the methods getter and setter for fields that is affected. If so, you will need to call super() in your custom extended RowImpl to call this logic.

    See the link below for how to call great from the extended RowImpl.

    Johny tips: OAF: transient attributes not getting filled extended vo

    Example Code:

    public String getAttribute1() {
       //return (String) getAttributeInternal("Attribute1");
      return super.getAttribute1();
     }
    

    If the above did not help, attach standard and custom VO files. We can have a look.

    See you soon

    AJ

  • I downloaded Multi Access Tool from Mcafee with Firefox Mozilla, how do I reinstall if it does not work properly?

    I downloaded Multi Access Tool from Mcafee with Firefox Mozilla, how do I reinstall if it does not work properly?

    My sincere apologies, my Mcafee came via the Optimum/Cablevision, not Mozilla. I now managed to solve my problem and appreciate the 2 above responses. Thank you.

  • The product key on my Satellite Pro P300 does not work

    The product key on my Satellite Pro P300 does not work.
    I entered the key from the sticker on the back of the computer. What I am doing wrong?

    Hello

    Why use this product key?

    Firstly the Toshiba recovery image is already enabled and you don t need this key more activations.

    Second, it's an OEM key and it will not work with other versions of Vista!

    Cheers mate

Maybe you are looking for