Just stuck on the final step
somebody asked me to extract the alternate alphabets from the string. Now the thing is I have extracted the alternate alphabets but I am getting a space between them , Could somebody provide me a better solution or trim the spaces in my outermost query.
Output I am getting : a c e g i k m o q s u w y
Desired Output : acegikmoqsuwy
select max(sys_connect_by_path(b.letter,' '))
from
(select a.letter , rownum curr , rownum-1 prev
from
(select rownum count,SUBSTR('ABCDEFGHIJKLMNOPQRSTUVWXYZ',rownum,1) letter
from All_Objects
where rownum <= LENGTH('ABCDEFGHIJKLMNOPQRSTUVWXYZ')) a
where mod(a.count,2)=1) b
start with b.CURR = 1
connect by prior b.curr = b.prev
Regards
Rahul
SQL> select REPLACE(max(sys_connect_by_path(b.letter,'.')),'.')
2 from
3 (select a.letter , rownum curr , rownum-1 prev
4 from
5 (select rownum count,SUBSTR('ABCDEFGHIJKLMNOPQRSTUVWXYZ',rownum,1) letter
6 from All_Objects
7 where rownum <= LENGTH('ABCDEFGHIJKLMNOPQRSTUVWXYZ')) a
8 where mod(a.count,2)=1) b
9 start with b.CURR = 1
10 connect by prior b.curr = b.prev;
REPLACE(MAX(SYS_CONNECT_BY_PATH(B.LETTER,'.')),'.')
ACEGIKMOQSUWY
select REPLACE(max(sys_connect_by_path(b.letter,' ')),' ')
from
(select a.letter , rownum curr , rownum-1 prev
from
(select rownum count,SUBSTR('ABCDEFGHIJKLMNOPQRSTUVWXYZ',rownum,1) letter
from All_Objects
where rownum <= LENGTH('ABCDEFGHIJKLMNOPQRSTUVWXYZ')) a
where mod(a.count,2)=1) b
start with b.CURR = 1
connect by prior b.curr = b.prevEdited by: Saubhik on Sep 20, 2010 1:42 AM
Similar Messages
-
Hey Guys, please let me know if anyone of you faced such problem when buying the Muse program. Thanks in advance.
Hi,
What problem are you facing exactly in completing Step 4?
You can directly call our Customer Service for this issue at 1 800 833 6687.
Regards,
Aish -
Help , initial question solved , just stuck on the last step , I seek help
Hi All,
I have a string : 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
Now I want each alphabet in a single row , giving me 26 different rows.
I want to achieve this :
1) without using connect by clause.
2) with using connect by clause
my connect by clause query is working fine in oracle 10G(my friends database) but not in oracle 9i
here it is:
select substr(a.string,rownum,1)
from
(select 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' string from dual )a
connect by rownum <= length(a.string)
PS : I want queries for oracle 9i only
Regards
Rahul
Edited by: Mac_Freak_Rahul on Sep 19, 2010 6:21 AM
Edited by: Mac_Freak_Rahul on Sep 19, 2010 8:10 AM
Edited by: Mac_Freak_Rahul on Sep 19, 2010 8:27 AMIn 9i CONNECT BY LEVEL can't be in main query. It must be in an inline view. But there is no need for that many inline view levels like in ManishB's example:
SQL> select substr(a.string,rownum,1)
2 from
3 (select 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' string from dual )a
4 connect by rownum <= length(a.string)
5 /
S
A
SQL> select *
2 from (
3 select substr('ABCDEFGHIJKLMNOPQRSTUVWXYZ',level,1) letter
4 from dual
5 connect by level <= length('ABCDEFGHIJKLMNOPQRSTUVWXYZ')
6 )
7 /
L
A
B
C
D
E
F
G
H
I
J
K
L
L
M
N
O
P
Q
R
S
T
U
V
L
W
X
Y
Z
26 rows selected.
SQL> And if you always need 26 letters you can change
connect by level <= length('ABCDEFGHIJKLMNOPQRSTUVWXYZ')to
connect by level <= 26Other method could be:
select substr('ABCDEFGHIJKLMNOPQRSTUVWXYZ',rownum,1) letter
from all_objects
where rownum <= 26
/But it relies on all_objects having at least 26 rows.
SY. -
My iPad gets stucked in the last step of the sync with the computer.
When connecting the iPad to the computer the iTunes starts, reconizes my iPad and starts the sync of the iPad.
It syncs the contacts, calendars, pictures, music, etc, but in the last step (7th; "finishing Sync") it stucks and stays for ever without finishing.
I cannot load a previous backup because as soon as I connect the iPad to the computer the Sync process starts and no button is available.
I've tried to load again iTunes to start from the begining but it is still saying the same, that the Sync process is finishing and is blocked there.
Any help?
Thanks a lot.Hi Demo,
I've tried what you say but, if I'm doing it right, it doesn't work because after rebooting it goes again to syncing and stucks on the last step.
Nevertheless let me check if I'm doing it right; When you say "Before you restore from the backup, quit iTunes, ...." you mean "Before" or "After" because I don't understand how I could reboot the iPad BEFORE I restore from the Backup if it is already restoring.
Just let me write down the procedure to check that it is the right one:
1- I launch iTunes (iPad not connected) and go to Edit>Preferences>Devices, and I check the box to Prevent the iPad to syncing automatically. I click OK.
2- I quit itunes.
3- I connect the iPad to the computer.
4- I launch iTunes.
5- I go to Restore from Backup
6- Restore from Backup is finished
7- I quit iTunes
8- I disconnect the iPad from the PC
9- I reboot my PC
10- I reboot my iPad by holding down on the sleep and home buttons... iPad stars.
11- I connect the iPad to my PC.
12- I launch iTunes
13- I click on sync button.
If the procedure is right then my problem must be another one because when I do it and it starts syncing again the same problems comes back again and the syncing never stops at the last step.
Thank you anyway for your time and support.
Best regards,
Francisco -
How do I sync my iPod to iTunes? I've used the final steps from Article HT1329, but when I open my iPod there is no "iTunes" folder. Please help!
Ah I see. That folder would only be there if you had perfomed the earlier steps in that section.
Recover media from iPod
See this post from forum regular Zevoneer for options on moving your iPod data back to your computer.
tt2 -
when I start my laptop it loads a third of the way and shuts down automaticallyI've tried to safe boot, repairing discs and clearing RAM but nothing has worked. basically I've come to the final step of having to a erase my hard drive and reinstall mountain lion however Apple support suggest that I install from a disc however I installed mountain lion from the App Store. can anyone help me go about this?
Install or Reinstall Lion/Mountain Lion from Scratch
Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
Boot to the Recovery HD:
Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
Erase the hard drive:
1. Select Disk Utility from the main menu and click on the Continue button.
2. After DU loads select your startup volume (usually Macintosh HD) from the
left side list. Click on the Erase tab in the DU main window.
3. Set the format type to Mac OS Extended (Journaled.) Optionally, click on
the Security button and set the Zero Data option to one-pass. Click on
the Erase button and wait until the process has completed.
4. Quit DU and return to the main menu.
Reinstall Lion: Select Reinstall Lion/Mountain Lion and click on the Install button.
Note: You will need an active Internet connection. I suggest using Ethernet if possible
because it is three times faster than wireless. -
ipod touch 4g wont connect to itunes or come out of recovery mode, its just stuck on the connect to itunes screen and will not come out, i tried doing a restore but something happened and now it wont finish or do anything else please help and my itunes will not see that its connected. i also tried going though control panel and restarting the service and nothing happens. also i tried redoing the driver but its saying it cannot find any drivers for it
lol ok nvm i fixed it
-
My iTouch will not restore becuase for some reason it won't reconize it. I merely tried to update it with the newest software and every thing went to sh--. Now it is just stuck on the screen showing the apple sign. Can anyone help me.
There's a whole lot to read in your post, and frankly I have not read it all.
Having said that, this troubleshooting guide should help:
http://support.apple.com/kb/TS1538
In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it. -
I can't sync my ipod, it's stuck on the second step
when i plug my ipod in and try to sync the music i get from cd's, my ipod gets stuck on the 2nd step of the syncing process. I always get an error message that says to reconnect or try again later because the syncing services aren't working. pleeeeeaaaaase help me.
Try:
"Waiting for changes to be applied": Apple Support Communities -
Why is my syncing (ipad2) seem to be stuck on the last step?
Why is my syncing (ipad2) seem to be stuck on the last step?
Perform a Reset ( No Data will be Lost )
Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
Wait for the Apple logo to Appear...
Usually takes about 15 - 20 Seconds... ( But can take Longer...)
Release the Buttons... -
During the final step of installing after download, I get an error - The Installer encountered an error that caused installation to fail.
Nobody can tell you anything. You have not provided any proper system information or even told us what you are actually downloading.
Mylenium -
Keyboard just stuck in the screen whether you are writing or not..!
Some times in the massaging app keyboard just stuck in the screen whether you are writing or not (using it or not); why it does not have the option of dropping the keyboard down when you don’t use it; will give more room to read previous massages..!
“Whats App” have this option for god sake..http://www.apple.com/feedback/
-
everything went well until the final step "uploading files to server" -- it's been spinning for an hour, "status" still reads 0%, "pause task" and "cancel task" buttons are grayed out in Activity window. Any ideas?
everything went well until the final step "uploading files to server" -- it's been spinning for an hour, "status" still reads 0%, "pause task" and "cancel task" buttons are grayed out in Activity window. Any ideas?
-
I am trying to transfer my cellular plan from my old ipad to the new one and get stuck after the second step. I currently log in, choose the plan which is the same as the old plan and nothing happens from there. The only way to get out of the screen is to cancel.
Any ideas?Hello Deannefromco,
Thanks for using Apple Support Communities.
For more information on this, take a look at:
When you enable the "Manually manage" option, you can use Autofill to quickly sync audio content from your music library or a selected playlist.
iTunes: Syncing media content
http://support.apple.com/kb/ht1351
Best of luck,
Mario -
I am needing help with the final steps in restoring my iPod Touch 5
I need help with the final steps in restoring my iPod
I was told that the iPod would automatically go to restore mode when connected to wifi. It did not do that
Maybe you are looking for
-
The volume on my ipod touch as stop working
ok after i updated to 2.01 the volume on my ipod stop working its stuck up to the max. i try setting the volume limit to like half way and it was up as high as it could go. so when 2.02 came out i thought if i updated it mite fix it but it didnt. but
-
IWork won't allow small text to be antialiased in PDFs
Are there any PDF / iWork / OS X experts out there who can please help with this one? I have three documents which were to be printed as A5 booklets. As a result I formatted them on A5 pages using small text (7 and 8 point). I know this sounds small
-
I need to backup my entire library to dvd, and would like to be able to play the dvd on the tv. is there any special way or format this needs to be done so they will play through the dvd player to the tv? Thanks, Jim
-
I have been trying to use the Samsung app, Smart Switch Mobil to transfer a lot of contacts, photos etc from my Galaxy S3 to my new Galaxy S5. I have the app on both phones and have followed the directions exactly. The files begin to transfer, but
-
How to check if document is still open
I have the following problem with Adobe Acrobat Standard 9: I have a Java Applet that uses Adobe Acrobat to present documents to the user. The user is able to edit and save the document. When the user closes the document the document is stored in a d