How do I get this query into Discoverer Plus
Hi all,
I have the following query:
SELECT h.hrs, NVL(Quantity, 0) Quantity
FROM (SELECT TRIM(to_char(LEVEL - 1, '00')) hrs
FROM dual
CONNECT BY LEVEL < 25) h
LEFT JOIN (SELECT TO_CHAR(event_date, 'HH24') AS during_hour,
COUNT(*) Quantity
FROM user_activity u
WHERE event_date BETWEEN
to_date('15-JUN-2010 14:00:00', 'DD-MON-YYYY HH24:MI:SS') AND
to_date('16-JUN-2010 13:59:59', 'DD-MON-YYYY HH24:MI:SS')
AND event = 'user.login'
GROUP BY TO_CHAR(event_date, 'HH24')) t
ON (h.hrs = t.during_hour)
ORDER BY h.hrs;
Which produces the number of actions performed (from an event table, user_activity) grouped by the hour of the day they occurred (including displaying hours that have zero records - this bit is important!). I want to be able to put this into Discoverer plus as a worksheet, but I'm having trouble trying to figure out how.
I was able to create a custom folder in Administrator for the select from DUAL, but I cannot link it to the user_activity table because there's no relationship between to two tables to create a join.
The user_activity table is:
USER_ID - VARCHAR2(8 CHAR)
EVENT_DATE - DATE
EVENT - VARCHAR2(100 CHAR)
The custom folder is this part of the SQL:
SELECT TRIM(to_char(LEVEL - 1, '00')) hrs FROM dual CONNECT BY LEVEL < 25
Any suggestions would be greatly appreciated.
Thanks.
Edited by: Cyntech on Aug 12, 2010 10:41 AM
KK wrote:
hi,
In the custom folder we can join tables,but the thing is you said ther is no join between them.
I would suggest you to built this query into a view and use this view in the DUAL table by writing inline query or subquery what ever way.
This is the only possibility i can think off.
Hope it helps you.
By,
KKHi,
Thanks for the reply, though I'm not sure that I understand what you are suggesting.
Which query would you turn into a view? If you are referring to the select from dual, then how would the view be any different from the custom folder? You still would not be able to join it to user_activity as there are no common columns.
Edited by: Cyntech on Aug 12, 2010 2:49 PM
Similar Messages
-
How do I get this code into iBook Author?
I would like to add an accordion menu to my iBook that will reveal a list of web links when clicked. Here is a link to an example with example code. I'm just not sure how to get this code and it's required external javascript file into iBook author.
http://www.dynamicdrive.com/dynamici...m?expandable=3
Any help would be appreciatedOops. Thanks. Here is a new link:
http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-bullet.htm -
I recently turned my handwriting into a font that I want to use on my artist website. The font works just fine in photoshop but it is the ONLY font that isn't coming up in Muse. All of my other downloaded fonts are there, just not the one I want. How do I get it into muse?
Which font format?
-
Read FAQ's but did not see how I was to proceed to restore the data in the Old FireFox Data folder on my desktop. It should hold all of my bookmarks, passwords and other data that I would like to recover into this new install of FireFox.
Look on your desktop. Do you see a folder called; '''Old Firefox?'''
'''https://support.mozilla.org/en-US/kb/recovering-important-data-from-an-old-profile'''
'''https://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles''' -
How can I get this query to work?
HI
SELECT TOP 200 [word] ,COUNT(word) AS count
FROM [COMMENT_WORDS]
where word NOT in (SELECT wordText FROM word)
GROUP BY word
ORDER BY COUNT desc
gives me this error:
Msg 468, Level 16, State 9, Line 1
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS" in the equal to operation.
please helpThanks I changed the count name but I am still getting
Msg 468, Level 16, State 9, Line 1
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS" in the equal to operation.
I also went into the word database and ran
ALTER DATABASE [word] COLLATE
Latin1_General_CI_AS
and now both databases have the same colaltion but I still get the error:
Msg 468, Level 16, State 9, Line 1
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS" in the equal to operation.
I am using ms sql 2005 -
I had to change my e-mail address and therefore also my Apple ID & Password - I had about $100 in Credits from Apple Vouchers which I redeemed - with the new ID this amount is gone - is it possible to regain it?
Tks
gerhard RudolfNot on your own. Click here and ask the iTunes Store staff to put it back onto the cards; they'll only do this for completely unspent ones.
(93896) -
I have alot of loose photos at home (old) and I would love to make a bunch of iphoto books and make the pages like whole page collages? How do I get my photos into iphoto in order to do this? Can I make a DVD at the drugstore and add them to iphoto?
You can make the collages easily if you have iWork. Just open a letter sized page in landscape mode and drag the photos onto the page, rotate and postiion as necessary. Then do a Print ➙ PDF ➙ Save PDF to iPhoto to get a 200 dpi jpeg version of the Pages page into iPhoto. From there you can add it to your book and use a blank page with the option to have an image as the backbround.
If you have a 3rd party image editor that supports layers you can create the collage with it.
OT -
Somehow my iTunes app has been put into the trash. How can I get this and all of the stuff that was in it back to my Application folder? I try to drag it out of trash, but it won't work.
Also, when I do try to drag it out of the Trash to put it back into Applications (on the Finder sidebar), it asks me to authenticate with the administration password. I enter it, and then a window appears saying that I can't do that because I do not have permission to modify iTunes. Please help.
-
i recently got IOS 8 and I like it but there is one problem on my camera roll it says i have 600 photos but i went into setting general and about and it says i have 2,743 photos my photos keep on duplicating how do i get this to stop. i have a iPhone 5c
Hi Bpaitin,
Go to Settings>General>Usage, and under iCloud, click on Manage Storage>click on your device, then under Backup Options, turn Photo Library off and then back on. See if that clears it up.
If it does not, reset your device (nothing will be lost): Hold down the Home and Power buttons at the same time and continue to hold them down until the Apple appears (up to 30 seconds). Once the Slide to Unlock screen redisplays, see if the issue is resolved.
Cheers,
GB -
Background noise removal takes about 3 seconds into each clip in timeline to kick in, so each clip has noise in the first few seconds. How do you get this to remove noise from the very start of the clip?
insert a 5 second gap in the beginning of the timeline.
-
I downloaded an app on my PC, signed into my iTunes account, but when I connect my iPhone and click sync, it won't copy to my phone. How can I get this app to install on my phone?
Your phone connected, iTunes running, under the "Apps" tab, you've selected this app to install on your phone, correct? Hit the "Apply/Sync" button, lower right on the Apps tab, what happens?
-
How can i get this variable value into second page IN BSP
Hi friends
I have variable wk_matnr value 'ABC' in first page of BSP.
How can i get this variable value into second page.
MoosaHi,
you can define variable (page attribiue) on the second page with the same name. You can realise the Navigation with Button ther started onInputProcesing routine. In onInputProcesing you have to call navigation->set_parameter with attribut name as parameter and then starting the navigation. If you have checked the auto property on the variable on second page and varable have same name, the value of variable should be transported.
[See this tutorial|http://help.sap.com/saphelp_erp2005/helpdata/DE/1a/c5133a62983c0ae10000000a114084/frameset.htm]
Best regards
Bogdan -
In version 3.x.x I used to be able to type search terms into the address bar and the page would load, similar to Google's "Feeling Lucky" button. Now it just brings up a Google search for the terms I typed in. How can I get this time saving feature back?
The change between Firefox 3.6.* and Firefox 4 is how location bar search works. In Firefox 3.6 it uses Google "Browse by name" search. With the browse by name search, it performs a Google search and if there is a clear match it will take you to the site, otherwise it shows the Google search result. With Firefox 4 it just performs a Google search if you type something which is not recognised as a URL.
To get the Firefox 3.6 behaviour on Firefox 4 you need to change a hidden preference.
# Type '''about:config''' into the location bar and press enter
# Accept the warning message that appears, you will be taken to a list of preferences
# Locate the preference '''keyword.URL''', double-click on it and change its value to the link shown below
[http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q= http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=]
If you prefer, you can also do this by installing the Browse by Name extension - https://addons.mozilla.org/firefox/addon/browse-by-name -
I downloaded my digital copy of Star Trek Into Darkness, but it's HD and I can't play it. I didn't see anything about whether I wanted HD or Standard. How do I get this changed?
Check the mute switch on the side above the volume rocker. If the red dot shows, the phone is muted. You'll still be able to play the ringtones to select one.
I find that the switch can be thrown to "mute" by accident when I put my iPhone in my belt holster. -
Just installed CS5 onto new computer. Adobe bridge and CS5 do not recognize CR format. How can I get this installed. I have tried up dating and downloading the CR6.7 update, but can not get it to install. What do I do?
Product updates
Maybe you are looking for
-
iPhone 5 pixelated images in various apps problem- occurred within last 2 months and must be a result of apple network driver update What's the fix? Tried reset, restart, reboot, reopen of apps same problem
-
Personal tags in Retention Policy only working in OWA, not Outlook 2010 client
Version: Exchange 2010 SP2 Client: Office Professional Plus 2010 SP1 As we don't want to enforce retention or archiving policies, but still give users the options to add tags to folders I set up new Retention Policy with the following tags only: -Per
-
Single Node RAC on 11.2.0.3
Hi All, i have implemented Rac One node with two machine(dbtest01,dbtest02) in 11.2.0.3 Redhat 5.3 one for online another one for offline. i have created TAF also. dbtest01 is online and created one query DECLARE i number(36):=1; begin while(i<100000
-
Hi Experts, I am trying to print PO's through transaction ME91F and the problem is for the first PO 1 spool is created and for the second PO 2 spools are created and so on.... Actually our configured custom program is not getting triggered and we hav
-
Photoshop delay while opening images
Hi. Just one quick qestions to all CS5 users here. If I open up an image (small or large does not matter) it pops up into photoshop CS5, but i have a delay of 3-5 seconds before i am able to move the image window, use a brush or any other tool on it.