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 AM

In 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.

Similar Messages

  • 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

  • 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...

  • IPad / iTunes sync gets stuck at the last step

    Whenever I sync my iPad and iTunes, it doesn't complete the last step and gets stuck on "Waiting for items to copy".
    First it was with "Step 7 of 7: Syncing Genius data to iPad", so I deleted all Genius stuff and links to it. Since then it gets stuck with: "Step 6 of 6: Synching Artwork to iPad" and just hangs with it forever.
    I am an Apple newbie, the iPad 3 is my first Apple appliance.  What can I do to avoid having to exit syncing by unplugging the iPad? (NB iTunes runs on a PC with Windows 7.)
    Thanks, Joseph

    It may be that you have a couple of problem files. I have a similar issue, where some music, that I purchased via iTunes, won't sync on to my iPod.
    I'd suggest that you start my turning off as much syncing as you can in iTunes. Use iCloud to transfer your calendars, contacts etc.
    Then try syncing some of your music and other media manually. If there are errors, then iTunes should flag them up by saying "Could not copy xxxx because ..."
    Personally, I only sync media manually, as I don't always want iTunes to perform a full sync every time I start it up. As my iPad is set to sync wirelessly, it connects to iTunes every time I open it.

  • When i connect my ipod touch to the computer and it brings up itunes, and it starts syncing, it just stays on the last step(6) and I can't download anything else to my ipod.

    I connected my ipod touch to the computer.  When it brings up itunes and start to sync, it stalls at the last step (6).  This keeps me from being able to add other songs from my library to my ipod.  I'm very new at this and maybe just don't understand how it works. 

    Try here:
    iPhone, iPad, iPod touch: Disabling digital camera notification in Windows XP

  • B500 .... stuck at the last step to open the back panel ...

    Hi
    I have completed this stage
    [IMG]http://i48.tinypic.com/14m80b9.jpg[/IMG]
    And last step which I never get to open the panel ..
    [IMG]http://i45.tinypic.com/2u7apsk.jpg[/IMG]
    I follow the (1) and cannot open .... anyone can share some light ?

    Hi guys,
    last week I exchanged my 1 TB HD with an 128GB SSD drive. Because I know how hard it is to open the back panel I documented my progress with pictures for you.
    To sum it up, you need:
    Fingernails (essential)
    two screwdrivers (essential)
    Paperclips (nice to have)
    fork (nice to have)
    The Trick is to use every millimeter you can between the back panel and the main frame. You stuff it with one of the mentioned tools and search for a new space between the back panel and the main frame. When you have a bigger opening use the screwdrivers. I don't have the time to describe every step of the opening, just look at the pictures - you should get the idea. Be careful to only leverage screwdrivers against the gray areas preferabel when you notice metal under it. Don't leverage against the orange parts, they might break.
    Hosted Pictures 
    I didn't change RAM/CPU/etc., but once you're in you should be able to figure it out for yourself.  
    If you have questions leave them here, I try to answer them.  

  • 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

  • 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

    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.

    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.

  • My ipod touch is stuck on a white screen and i did everything hold the home botton and sleep botton togher, but it wont respnd it is just stuck on the white flash scree HELP PLEASE!

    My ipod touch is stuck on a white screen and i did everything hold the home botton and sleep botton togher, but it wont respnd it is just stuck on the white flash scree HELP PLEASE!

    - Let the battery fully drain. The charge for an hour and see what happens,  Try resetting too:
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Connct to computer and restore if it shows in iTunes.
    - You can try placing the iPod in recovery mode and then trying to restore. See:
    iPhone and iPod touch: Unable to update or restore
    - Also see:
    iPod touch: Hardware troubleshooting
    Frequenly the white scree is due to a hardware problem.

  • How do I update Adobe as per my previous question. I have followed the 3 step process. Step one and Two fine but step 3 just directs me to purchase and application. I want the "Free" upgrade. How do I get It. ????????

    How do I update Adobe as per my previous question. I have followed the 3 step process. Step one and Two fine but step 3 just directs me to purchase and application. I want the "Free" upgrade. How do I get It. ????????

    YouTube does not use Adobe Reader. Videos do not use Adobe Reader.
    Adobe Reader is used only to show files in a special format called "PDF".
    What you are having problems with is probably Adobe Flash Player.
    So, if you are trying to solve problems with Adobe Flash Player by downloading Adobe Reader, or even Adobe Acrobat, it isn't going to help you in the end. Is that what is happening (we can't really tell without screen pictures, but it seems a likely guess).

  • HT1430 When i try to reset my iPad, i won't turn on! It's just stuck at the loading-circle!

    My freinds messed my iPad seriously up, and i wanted to reset it!
    But it's just stuck at the loading-circle thing, you know what i mean, and i don't know what to do about it!
    Please help me!
    It's an iPad 3, 16 Gb. Wi-Fi! IOs 5.1.1

    Jailbreaking is making unauthorised modifications to a device, and means that your iPad warranty is now void : http://support.apple.com/kb/HT3743
    You should ask your friend to restore it back to normal

  • TS3920 I have a problem after I lock my iphone or it is automatically locked , the time doesn't update. It just freezes at the last time of locking. Please help , it is iphone 5 running iOS7.1

    I have a problem after I lock my iphone or it is automatically locked , the time doesn't update. It just freezes at the last time of locking. Please help , it is iphone 5 running iOS7.1
    I check with my service provider as well as I synchronized with iTunes , changed time manually with the right time zone. Unfortunately the problem keeps showing

    Hi Courcoul
    Thanks for stepping by
    To tell the truth I forgot to mention that I already did what you said, even more I tried all "reset" options including:
    Reset all settings
    Erase All content and settings
    Reset Network settings
    Etc
    Even
    Reset location and Privacy
    It keeps showing the problem

  • 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/

  • I just downloaded a new version of OS7 to my iphone and when I try to sync with my mac book pro it will not finish and just spins around at the last step.  anyone help?

    I just downloaded a new version of OS7 to my iphone and when I try to sync with my mac book pro it will not finish and just spins around at the last step.  anyone help?

    It was telling you that you needed Mac OS 10.6.8 or later, not itunes 10.6.8
    Syncing with iTunes on a Mac or PC requires:
    Mac: OS X v10.6.8 or later"
    http://www.apple.com/iphone/specs.html

Maybe you are looking for

  • How To Find Oracle Home Directory Path...

    Hello, I am working on deployment of java web service on Oracle Application Server(LINUX) 10g, EBS - R12. I am working on other system and i want to deploy web service remotely on application server. And i am not getting the oracle home directory pat

  • Function module for BOM Update all line items at a time

    Hi, Please enlightenn us, which FM is do the update for BOM item datas. ( current FM is updated line item one item then come out and log in again updating another line item , thus cause more error are facing.) we want a FM to update one time all the

  • Audio MIDI Setup quits unexpectedly on startup every time I run it

    Help, I have an almost brand-new Mac Mini (2011), that I just got a few weeks ago.  I'm setting it up to be a home media server -- i.e. to output to my HDMI receiver.  I need to use Audio MIDI Setup to create a new package that will output to both th

  • Processor speed.

    this may be kind of a silly question but, I have a KT3 Ultra MS-6380E , and on the specs, it say "Support 600MHz up to 2100+ MHz processor and higher". My first question is, how can I tell if my processor is either a standard athlon, rev A, or rev B?

  • Mac Pro first generation can't load Mavericks. What is the technical reason?

    Someone I know has an original Mac Pro, from 2006. I know it says that Mavericks requires at least a 2008 Mac Pro. What is the technical reasons for not including older hardware? I understand the points about the G5 and before cannot go higher than L