I have a question in groups to help decode and case in pl/sql
my request is something like this but with more column in select. When I shot this request it gives result but it's not goodMy problem is, as if there are more than 3 values for uh.sflowtype (0,1,2) then group by does not work for them and those coming in different line, I need them to be combined
query is:
Select substr (uh.sstartdatetime, 1, 8) DateTime,
(case
When uh.sflowtype = 7 then "sms".
When uh.sflowtype = 9 then 'mms'
When uh.sflowtype = 10 then "gprs".
another "voice".
end)
as e_vpn_usagehistory flowtype UH where 1 = 1 and uh.nspid = '1' AND ((substr (uh.sstartdatetime, 1, 8) > = 20130507))
AND (substr (uh.sstartdatetime, 1, 8) < = 20130606)) GROUP BY substr (uh.sstartdatetime, 1, 8), uh.sflowtype
substr(uh.sstartdatetime,1,8) DESC order
result:
DATETIME FLOWTYPE
-------- --------
20130507 voice
20130507 voice
20130507 voice
20130507 sms
20130507 mms
but I need
20130507 voice
20130507 sms
20130507 mms
so, what should I do?
Please suggest me
select to_char(uh.sstartdatetime,'DD-MON-YY') DateTime
, ( case when uh.sflowtype=7 then 'sms'
when uh.sflowtype=9 then 'mms'
when uh.sflowtype=10 then 'gprs'
else 'voice'
end ) as flowtype
from e_vpn_usagehistory uh
where uh.nspid='1'
AND ((substr(uh.sstartdatetime,1,8) >= 20130507 )
AND (substr(uh.sstartdatetime,1,8) <= 20130606))
GROUP BY to_char(uh.sstartdatetime,'DD-MON-YY'),
( case
when uh.sflowtype=7 then 'sms'
when uh.sflowtype=9 then 'mms'
when uh.sflowtype=10 then 'gprs'
else 'voice' end )
order by to_char(uh.sstartdatetime,'DD-MON-YY') DESC
Try this.
If it doesn't work thanks for posting data.
p.s. Your order will be not that useful as a varchar either
Tags: Database
Similar Questions
-
I have two questions that I need help.
The first is that I can not use Ctrl alt Z to take a step back. I have to go to the Edit menu and select not backward. The second question I have is with the groups break. I'm trying to place an image inside the text. The image layer above the text layer and is selected. I click alt and hold it down, I move my cursor between the layer of the image and the text layer, instead of Figure 8, double circle thingy that I'm supposed to see I see a box with an arrow pointing downwards. I click and nothing happens. I can still see the image and the text below the image, partly hidden by the image, but the image is not inside the text.
Can someone help me?
What version of Photoshop are you using?
What is your operating system?
Reset the Photoshop preferences preferences > General
Or see How to remove/reset the Photoshop preferences
~ Assani
-
What should I do to make the click on touchpad work look once again?
Strange. The driver list appears for me. Even foreign - it lists the Synatics and Alps Touchpad drivers. Can you confirm that you have?
Try one of these direct download links that you have.
Synaptics:
http://ftp.HP.com/pub/SoftPaq/sp72001-72500/sp72088.exe
Alps:
-
I don't know what I did wrong. I have loaded a bunch of photos on my hard drive from an SD card. I've renamed bridge of lot. Somehow all the images files ARW turned the XMP files and I do not see any of the images. I tried to delete the folder on my hard drive, then reloaded my SD card. Half of the photos are back, but half of them are still just the xmp. And some have simply gone all together. I checked the trash. Isn't there. What can I do? Now, my card is too empty.
Post a screenshot of footage as xmp
Check what size these xmp files are.
Bridge cannot delete files in all, but if the files are name and file extension changed, the files will not be recognized in any application
Solution is to add the same file name extension
~ Assani
-
Cannot set up internet access. Have yellow question mark points of network adapters and other devices (other drivers)
Hello
Maybe this can help, http://www.ezlan.net/faq.html#ghost
Jack-MVP Windows Networking. WWW.EZLAN.NET
-
I usually have my updates installed automatically, but this time he asked me, I told it to install, and it took hours and never finished to download. I have reset FF according to your help article and I now get the "the opereation could not be completed because the item Firefox.app is I use. When I close FF and try to install the update is says that I do not have authorization to ensure that the lock is open and file sharing is on. It still does not work. I need help. I don't know what to do. It never happened all these years to have. I'm on Intel iMac and use Lion 10.7.5.
If he has problems with the update or the permissions then simpler is to download the full version and trash the version currently installed to do a clean install of the new version.
Download a new copy of the Firefox program and save the file on the desktop disk image (dmg)
- Firefox 19.0: http://www.mozilla.org/en-US/firefox/all.html
- Basket of the current application of Firefox (for example, open the Applications folder in Finder and drag the Firefox application to the trash) to do a clean install (re) -
- Install the new version you downloaded
- https://support.Mozilla.org/KB/installing+Firefox+on+Mac
Your profile data is stored in the Firefox profile folder, so you will not lose your bookmarks and other personal data if you uninstall and (re) install Firefox.
-
I have not remenber my SECURITY QUESTIONED this ACC, please help me
I have not remenber my SECURITY QUESTIONED this ACC, please help me. I have remenber login pasword.
You must ask security team account Apple to reset your security questions. To contact them, click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.
(143383)
-
I have a question why U removed the session of keyboard spelling checker is a very useful sit Apple give it in products. It helps a lot in communicting with others from different countries, even in our studies and communication with our teachers.plz it back... .hope you will do
Nothing has been deleted. Perhaps if you explain better what it is you are looking for, a person might be able to help. You mean maybe predictive text? All these settings are in settings > general > keyboard.
-
Hi I HAV a question... I use PS cs6 m having major problem can you please help me... whenever I have use the filter on sumthng Gallery or if I use a Quick Selection over all things low RAm error levonorgestrol tool... Although I have a huge memory?
-
Hi team, I have a question about Ad lightroom, can someone help me please?
Hi team, I have a question about Ad lightroom, can someone help me please?
I'm sure that you need to access the original to "Edit in photoshop" NEF files Smart insights are not good enough for that.
If you do just adjustment and cropping, you don't need photoshop.
-
Hello, I would just remove my ADOBE ID but I have not found the right place to post my question! Could you help me?
What do you mean by "delete my ADOBE ID"?
The following link might be useful.
To the link below, click on the still need help? the option in the blue box below and choose the option to chat...
Support of Adobe ID and registration of chat (non - CC)
http://helpx.Adobe.com/x-productkb/global/service-C1.html ( http://adobe.ly/19r6ZDp )
-
I downloaded AI CC today, when this has been done with instalation it works great, I have been valid to launch the software normally and after it starts to appear again and again whenever I wanted to start again, I have 18 diagnostic test and the safe mod seems not only once! Please help me I really bad need adobe illustrator for my freelance business
HI Filip,
Can you please follow following steps.
1. tap on the window + R
2. type %appdata%\microsoft\windows\sendto and press enter
3. in the open file Explorer window, double-click Adobe to go to the Adobe folder
4. rename or remove the file "Adobe Illustrator 19 parameters.
Launch of I.
When I plant, (when you see that Illustrator does not message).
1 open the Task Manager
2 right-click Illustrator.EXE
3. Select Create dump file
4. the dump file is normally created in a temporary file, you will see a message with the path to the dump file.
5. share the dumpfile via some storage, for example Creative Cloud service or box of deposit etc.
6. send the link of the dumpfile to [email protected].
Sanjay.
-
Original title: "Autoplay, group policy and CD/DVD"
Hello
I have two questions actually worry,
First of all, I have Windows Vista Home Premium Service Pack 1 installed on my PC
My first problem is that whenver I insert a USB in my PC it doesn't autoplay and the option is not available at all even when I get clich the drive itself, I went Microsoft support and installed security update 950582 and still no hope. I also can't find the NoDriveAutoRun or NoDriveTypeAutoRun in the registry because I don't have the key explore in both policies.
In addition, I have not available to all group policy.
My second question is that I can't read or write CD/DVD even if I have the driver installed, I tried the DVD Microsoft repair but it shows that the repair failed.
Thanks in advance and hope to receive a solution soon.
SAS ING.
Hi Sas Eng,
There are a few solutions to the question of automatic playback on the following link:
http://Windows.Microsoft.com/en-us/Windows-Vista/Troubleshoot-AutoPlay-problems
And if the solutions provided for the DVD ROM Lorien did not help, as you say, it is probably a hardware fault.
Try the steps are on the link and let me know if it helps!
Cody C
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
Email from bad security. Cannot reset security questions. catch 22! Help.
Email from bad security. Cannot reset security questions. catch 22! Help.
Try to use the service of Julian inconu of Apple. If you cannot reset their through it, you'll have to ask security team account Apple to reset your security questions. To contact them, click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.
(144529)
-
Hello. I have several questions on start using the iTunes U.
We want to create the official account of our University (it is not the official request yet) and we would like to ask a few questions at the beginning.
(1) the future into account our Universioty will we have the opportunity to add teachers accounts to this account of the University so that they could view their cruises as part of our Univesty?
(2) the University must pay any amount of money to be a member of Itunes U?
(3) overall how Itunes U functions once you have the University added?
(4) how students and teachers can be added?
(5) is there than no limitation language in which cruise is displayed?
Looks like you're asking on the iTunes U Public Site Manager. Your best bet is to contact your Apple account manager or the seller. If you do not, contact AppleCare. Only Apple can provide canonical answers to posted questions.
To help you prepare for the conversation with someone from Apple, I offer you my non-canonical answers:
- Admin Site Manager at your University will be able to link accounts at school.
- I don't believe it.
- ITunes U teacher accounts will be all deleted limitations and able to publish courses on the iTunes Store U see http://help.apple.com/itunesu/instructor/#/itu16F92805-A89F-4DCA-9BF7-8B6AC9F563 6 d for more details.
- I believe that unlimited (or "reasonable number").
- Published courses can be in any language. If you browse through the store, you will find courses in English, Spanish, German, Japanese, thai, Russian, Chinese...
For more information on Site management, see its help:
Maybe you are looking for
-
I have been emailing the address; [email protected] for almost a year and a few months ago it stopped. And I've been e-mail address [email protected] for a month and all of a sudden, it stopped? I chatted with the girl at the last addres
-
Assistance of a UK Satellite L500-1XL in New Zealand
I have a friend to NZ soon. What she should use her laptop. Just a UK NZ plug adapter or new power supply? TIATrevor
-
Sharing notes iCloud, do not sync on devices of my wife
My wife and I have an iPhone, iPad and Mac. My account main iCloud is JeffCloud@iCloud and I use it as my account real iCloud on my 3 devices and Notes turned on. His main iCloud is [email protected] and it's what it uses as its real iCloud accou
-
HP 500 - c60: glitch [SOLVED] every week My Realtek drivers.
This issue has been driving me crazy last month. My speakers begin stuttering or acting glitch. I have download the latest drivers from the Realtek site. Everything is OK... but only for a week, causing me to reinstall the driver updates AGAIN. Today
-
Update Windows Vista comes crashing my computer
Windows Vista today put to update (05/08/09) just crashed my main desktop computer so that all I get is a black screen and automatic troubleshooting help who do not work. I called my repair shop and they had 5 calls today on this same problem. Help