Repeating numbers in a sequence as n=many times as the number
I gave myself a small puzzle, to try to get the numbers 1-5 repeating as many times as their values: 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5
My first attempt was quite simple. But i do not understand the results. Can someone explain to me why these are the results?
SQL> SELECT
2 Rownum,
3 A
4 FROM
5 (SELECT Rownum A FROM Dual CONNECT BY Rownum <= 5)
6 CONNECT BY
7 Rownum <= A;
ROWNUM A
1 1
2 2
3 3
4 4
5 5
6 2
7 3
8 4
9 5
9 rows selected.
Another way, probably what i was originally trying to figure out. It's backwards, but it relies on rownum, and the complete processing of the TABLE:
SQL> SELECT
2 A
3 FROM
4 (SELECT Rownum A FROM Dual CONNECT BY Rownum <= 5)
5 CONNECT BY
6 Rownum BETWEEN ((A * A) - A) /2 + 1 AND ((A * A) + A) / 2 - 1;
A
1
2
2
3
3
3
4
4
4
4
5
5
5
5
5
15 rows selected.
[pre]
Similar Messages
-
How to avoid the event has been repeated many times in the background
Application, the main screen is divided into two containers:left and right container,
The right side of the container is divided into two containers:top and bottom container,
There is a button in the left container.
Click the button, the container at lower right will using ModuleManager load Module, The following container load of the right of the screen has been monitoring the container above the action.
Problem:
When you click the button repeatedly to load the container in the lower right, it will create multiple instances, and can not be freed immediately. When the above container do an action or event, there are multiple instances of monitoring exist.
The background will be repeat the action or event many times.
How to avoid the event has been repeated many times in the background?
ThanksFlex harUI
multiple instances of a mxml, maybe ? -
Pages on my iPad3 has become very slow to open documents after upgrading to ios7.
I posted on here about this a few weeks back and someone suggested force-closing Pages -- and that does indeed enable me to open things -- but I have had to force-close many times in the last 24 hours, which is worrying. Are there any other suggestions?
I am sometimes also finding that, when I have been writing something and then click on "documents" the screen goes blank, there is a wait of around a minute and then the same document is re-displayed, before clicking "documents" again lets me look at other documents -- which is a pain if I am trying to move between documents repeatedly. Again, words of wisdom on this would be great.
Pages under iOS6 opened quickly, and there was an immediate loss of performance when I upgraded. I am finding this very frustrating because I don't feel that the new Pages has added to the facilities I was using, but a slowness to open documents is frustrating.
Thanks
MarkPages on my iPad3 has become very slow to open documents after upgrading to ios7.
I posted on here about this a few weeks back and someone suggested force-closing Pages -- and that does indeed enable me to open things -- but I have had to force-close many times in the last 24 hours, which is worrying. Are there any other suggestions?
I am sometimes also finding that, when I have been writing something and then click on "documents" the screen goes blank, there is a wait of around a minute and then the same document is re-displayed, before clicking "documents" again lets me look at other documents -- which is a pain if I am trying to move between documents repeatedly. Again, words of wisdom on this would be great.
Pages under iOS6 opened quickly, and there was an immediate loss of performance when I upgraded. I am finding this very frustrating because I don't feel that the new Pages has added to the facilities I was using, but a slowness to open documents is frustrating.
Thanks
Mark -
Basically the title explains my question. How many times can the photos hop code be used? Like can I download it on one computer then later download it on a different computer?
You're allowed two installations/registrations. Anything above that requires deregistration on one of those computers.
Take note that if this is Photoshop CC, it's as easy as signing out on a system; there aren't any serial numbers involved as it's all tied to your Adobe ID. -
In ST03 , how can i see the Query name, user id,how many times executed the
HI Experts,
In ST03 , how can i see the Query name, user id,how many times executed the query.
these details how do i get from the above transaction.
EX:-if there is one report name X,I want to know how many users had executed X report today,weekly,monthly.
ex:-query userid total number of execution
sales order 0000555 5 times
custmer 05855 2 times
fast reply will be appreciated,Hi,
Look here:
http://help.sap.com/saphelp_nw04/helpdata/en/3b/54df4204892a78e10000000a155106/frameset.htm
Also check these:
http://help.sap.com/saphelp_nw2004s/helpdata/en/2d/b8be3befaefc75e10000000a114084/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/25/ece73a39e74d27e10000000a114084/frameset.htm
Hope this helps..
Bye
Dinesh -
My grandsons new Apple refurbed 35g ipad keeps locking up with a black screen amd nothing else. I have reset it many times pressing the home and off buttons together but it keeps locking up. Help,please!
Thank you for trying to help. I followed your instructions, it took 6 hours to download, and then said it could not solve the problem (something to do with error 9?). It will have to go back to Apple - its only 3 days since it came out of the package and its very disappointing for him. Looks like I have to hang around in the Apple store in Plymouth all tomorrow until they can fix it, or will change it. Thanks for your help.
-
I disabled my iPhone 4 and while doing a restore via iTunes, it is downloading and timing out so the download is not completing. any idea how to get past that? I have tried many times and the same error keeps happening.
You need to force the phone into recovery mode, as described here, & restore it:
http://support.apple.com/kb/ht1808
Sorry, you've already lost all data on your phone. -
How many times does the JDBC sender adapter retry ?
Hi All,
How many times does the JDBC sender adapter retry in the ' Retry Interval' specified .
I know that it retries after the time specified in the ' retry interval' , but if it again fails after the first retry will it retry again and again .And while doing it will it block the next Select query which should get executed.
Thanks & Regards,
RahulHi,
The no of times to be retired on failure of message is default 3 times.
You can set this in Visual Administrator->Server->Services----> SAP XI Adapter
Thanks
Swarup
Edited by: Swarup Sawant on May 30, 2008 7:19 PM -
I have just upgraded to PSE 12 and Premier E 12, and tried to installed many times. The pop up says "Configuration Error"; contact Adobe Tech Support(?); and "mention error code 1"! Help please!
Install appeared to run okay up to,, and including "shared Technologies"....Troubleshoot installation | Photoshop Elements, Premiere Elements | Windows
-
HT1926 i've tried so many times but the problem still exists! please help!!
i've tried so many times but the problem still exists! please help!!
Could you describe what your problem is, please?
-
I have itune on my first computer, but i cant download it for my other one, how can i do that, i tryed many time with the link it says you download it but nothing follows thank you
I'd first try downloading an installer from the Apple website using a different web browser:
http://www.apple.com/itunes/download/
If you use Firefox instead of IE for the download (or vice versa), do you get a working installer? -
Had same problem with 10.7. I've followed all the suggestions I can find, restored my computer many times, cleaned the registry... this is the worst software install I've ever seen!
I kept getting the reminder to update itunes 11.1.4 on my Windows 7 laptop. I now forget the error message other than it would stop and say something that itunes has stopped working and to do a manual d/l from itunes. That did not work either.
The suggestion to remove the Apple Software Updater from my programs solved this problem. -
Two days ago, I have a new iphone 4S. After I installed the OS and start the iphone, I found a strange screen says "!9D/JC" that blocks the iphone and I can not access the iphone until click many times on the "Desmiss" button at the botom of the screen.
I appreciate if you could provide me support to solve this problem especially it consumes the battery a lot.Another post originally dated 5th Feb, 2012 with a slightly different unheard of error "%7D/JC".
https://discussions.apple.com/thread/3710903?start=0&tstart=0
The user also claimed that he didn't meddle with iOS. No solution could be found though. -
How can i increase the height of the navigation toolbar to make my persona more visible?
adding toolbars puts them all below the navi bar and it looks weird.
i know this has been asked many times but the answer's always "add toolbars".Look here.
http://support.apple.com/kb/index?page=answerlink&url=http%3A%2F%2Fsupport.apple .com%2Fkb%2FHT1495&answerid=16777216&src=support_site.home.search -
my ipad mini is keep on crashing. reboot many times. after the apple logo shows up, the screen will turn into black again.
Try the following:
1. Reset
Hold the Sleep and Home button down until you see the Apple logo
2. Restore:
http://support.apple.com/kb/HT1414
3. Recovery:
http://support.apple.com/kb/HT1808
Maybe you are looking for
-
Can you use a php variable to filter a recordset?
I've got a table of 'events', which have a description and more importantly for this a month ID number. (1-12 for the months of the year, when the event takes place) . I've used php's date function on a page to fund out numerically what month it is n
-
Itunes 10.5.1 doesn't open with windows 7 64 bit
i have just purchased a new HP laptop with windows 7 64bit and have installed itunes. all the files have installed correctly but the program doesnt open. any ideas ?
-
Address Book contacts disappeared after Mac OS X 10.4.8 upgrade
I opened my address book this morning to find it blank except for me and Apple. I did not delete anything at any time - the only thing I can think that happened between now and the last time everything was there was the 10.4.8 upgrade process. The li
-
MacMini as centre of Home Cinema System
I am looking to use a MacMini as the centre of my Home Cinema system. The intention is to connect the MacMini to my existing Sony Projector (VLP CX85). I know this is not the best projector for this kind of things, but it is one I have had for some t
-
Safari ignoring proxy username and password
I have an iPad2 and an iPad1. If I enter a username and password in the proxy settings for our company WiFi network, the iPad1 works flawlessly, the iPad2, however, ignores the username and password, and prompts for it onscreen. If I enter the userna