Different order in the results
I have a problem with order consistency in the data set on the screen vs. the sequence of records being selected one by one behind the screen.
Say, in the first form I select certain "where clause" and several "order by". I pass parameters to the second form, compile query in runtime and start bringing records into the form for update, one by one. That's when the original first screen order is being messed up.
Say, we have a group of records sorted by type, received_date. The set on the screen (user can only 2,3 and 4th columns) and in SQL*Plus would display:
Rownum Unique # Type Date
11 100 E 10/10/2005
13 103 E 10/10/2005
12 102 E 10/10/2005
14 104 E 10/10/2005
15 105 E 10/10/2005
Records retrieved by the second screen via cursor, one by one, would appear in the following order:
Rownum Unique # Type Date
11 100 E 10/10/2005
12 102 E 10/10/2005
13 103 E 10/10/2005
14 104 E 10/10/2005
15 105 E 10/10/2005
Basically, Oracle adds rownum as a last Order by to the customized Order By. Has anyone run into the similar problem and what did you do to fix it?
And Rownum is an internal number that is applied AFTER the rows are sorted, so no matter how you order your records, Rownum will always start with 1.
Does my result have something to do with subquery?
SELECT rownum, unique#, report_type, received_date
FROM table x
WHERE condition blah-blah-blah
AND unique# IN (subquery from table y)
ORDER BY report_type ASC, received_date DESC
My query above gives the result as follows:
rownum unique# report_type received_date
1 4630093 E 4/8/2005
2 4630095 E 4/8/2005
3 4630096 E 4/8/2005
11 4629916 E 4/8/2005
4 4630099 E 4/8/2005
62 4631257 E 4/8/2005
64 4631286 E 4/8/2005
66 4631288 E 4/8/2005
68 4631290 E 4/8/2005
218 4630693 E 4/8/2005
196 4630163 E 4/8/2005
195 4630599 E 4/8/2005
194 4630580 E 4/8/2005
193 4631309 E 4/8/2005
192 4631308 E 4/8/2005
191 4631307 E 4/8/2005
167 4630012 E 4/8/2005
166 4630011 E 4/8/2005
165 4629997 E 4/8/2005
164 4629996 E 4/8/2005
163 4629989 E 4/8/2005
162 4630574 E 4/8/2005
67 4631289 E 4/8/2005
65 4631287 E 4/8/2005
63 4631259 E 4/8/2005
And then when retrieving one by one sorts by rownum (or unique #)
Similar Messages
-
Problem in order of the result
Hi,
I am facing an issue which seems to be confusing. I have a query from which i am spooling the results
SELECT SUPPLIER_ID || '-' <br>
FROM SUPPLIER <br>
WHERE SUPPLIER_CODE IN (SELECT SUPPLIER_CODE <br>
FROM SUPPLIER_ACCOUNT <br>
WHERE SUPPLIER_CODE IN ('5771','5790','6436','8389','416') <br>
AND COUNTRY_ID = 205) <br>
AND COUNTRY_ID = 205; <br>
Usually I get the results as
5678-<br>
5789-<br>
till dec 2006
But suddenly from Jan 2007 the order of the result is changed to
5789- <br>
5678-.<br>
There is also no change in data.
What could be the problem?
thanks in advance.Sorry i made a mistake in my query
SELECT SUPPLIER_ID || '-'<br>
FROM SUPPLIER<br>
WHERE SUPPLIER_CODE IN (SELECT SUPPLIER_CODE<br>
FROM SUPPLIER_ACCOUNT<br>
WHERE SUPPLIER_CODE IN ('5771','5790','6436','8389','416')<br>
AND COUNTRY_ID = 205 <br>
AND ACCOUNT_NUMBER='891274')<br>
AND COUNTRY_ID = 205; <br>
Usually I get the results as <br>
5678-<br>
5789-<br>
till dec 2006 But suddenly from Jan 2007 the order of the result is changed to <br>
5789-<br>
5678-.<br>
There is also no change in data.<br>
Can plz help me why the order changes? <br>
Thanks for advace help -
Why is the thumbnail images placed in different order than the xml?
Hi all!
This same code I have asked about before, and got excelent help, but this is a different problem so I just start a new thread.
This is a code that open a XML file, containing a small list of images, and place them as thumbs on the page.
It kinda work now, but the funny thing is, the order of the thumbs is totally scrambled compared to the xml list, and I can't just see why!
It has something to do whith when the loaders gets transfered via addEventListener to the placePics function, more than that I cant find out!
There may be the better way to put up this code. I just feel putting it up in two nested addEventListeners like this is not the best of practice. But I see no other way here...
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class thumbHolder extends MovieClip {
var xmlRequest:URLRequest;
var xmlLoader:URLLoader;
var imgData:XML;
var numberOfChildren:Number;
var currentImgNum:Number;
var imgLoader:Loader;
var imgContainer:Array = [];
var currentImg:String;
public function thumbHolder() {
currentImgNum = 0;
xmlRequest = new URLRequest("images.xml");
xmlLoader = new URLLoader(xmlRequest);
xmlLoader.addEventListener(Event.COMPLETE, handlePics);
public function handlePics(e:Event):void {
imgData = new XML(e.target.data);
numberOfChildren = imgData.*.length();
for (var i:int = 0 ; i < numberOfChildren ; i++) {
currentImg = imgData.image[i].imgURL;
imgLoader = new Loader;
imgLoader.load(new URLRequest(currentImg));
imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, placePics);
function placePics(e:Event):void {
var oldH:Number = e.target.loader.height;
var oldW:Number = e.target.loader.width;
e.target.loader.height = 100;
var prosent:Number = (e.target.loader.height / oldH) * 100;
e.target.loader.width = (prosent * oldW) /100;
imgContainer.push(e.target.loader);
imgContainer[currentImgNum].x = (e.target.loader.width * currentImgNum) + (currentImgNum * 5) + 6;
addChild(imgContainer[currentImgNum]);
currentImgNum++;Never mind! I finally managed to see what to do. Thanks for the help
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class thumbHolder extends MovieClip {
var xmlRequest:URLRequest;
var xmlLoader:URLLoader;
var imgData:XML;
var numberOfChildren:Number;
var currentImgNum:Number;
var imgLoader:Loader;
var imgContainer:Array = [];
var currentImg:String;
public function thumbHolder() {
currentImgNum = 0;
xmlRequest = new URLRequest("images.xml");
xmlLoader = new URLLoader(xmlRequest);
xmlLoader.addEventListener(Event.COMPLETE, handlePics);
public function handlePics(e:Event):void {
imgData = new XML(e.target.data);
numberOfChildren = imgData.*.length();
adToArray(currentImgNum);
private function adToArray(currNum:Number):void {
currentImg = imgData.image[currNum].imgURL;
imgLoader = new Loader;
imgLoader.load(new URLRequest(currentImg));
imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, placePics);
function placePics(e:Event):void {
var oldH:Number = e.target.loader.height;
var oldW:Number = e.target.loader.width;
e.target.loader.height = 100;
var prosent:Number = (e.target.loader.height / oldH) * 100;
e.target.loader.width = (prosent * oldW) /100;
imgContainer.push(e.target.loader);
imgContainer[currentImgNum].x = (e.target.loader.width * currentImgNum) + (currentImgNum * 5) + 6;
addChild(imgContainer[currentImgNum]);
if (currentImgNum < numberOfChildren) {
currentImgNum++;
adToArray(currentImgNum); -
Can I buy 2 different orders at the same time?
I am planning to buy a new iMac and some stuff included (hopefully tomorrow!)
I happen to be a college student, so I will get the education discount for the iMac.
My question is, can I buy the iMac with education discount in one order, and then buy another order of things at the same time period and with the same credit card?
Sorry if this is in the wrong category. Couldn't find a good place to ask this questionYou aren't addressing Apple store personnel here - these are user to user technical forums. However, having said that, it seems to me that you cannot place two orders at the same time - that is simply not possible: you process one order and when you're finished checking out and getting a confirmation with that, I don't see why you can't place another order, using whatever payment option you choose. But that is not placing two orders at the same time - it is placing one order after another.
-
When I burn a playlist to a CD, the songs come out in the wrong order. They appear to be in the order I want in the playlist. Any ideas what's wrong? I am using a dell laptop with Itunes for windons.
WOW. That's a new one...
Check out: https://discussions.apple.com/message/3972820#3972820
Something to do with having the shuffle button enabled.
Otherwise...
Are you sure you didn't accidentally hit the "Name" header before burning?
Does it actually PLAY in alpha order or are you looking at the disk in Windows explorer...?
If none of the above is true, the most likely possibiltiy is that the playlist is corrupt. (I've been using iTunes since V1- have over a hundred playlists and that's never happened) Anyway, there's no way to "fix" a CD once it's been burnt.
So... create a NEW playlist (you might even try with a couple different songs first just as a test) if that works, just copy desired songs to a new Playlist, and burn again.
If THAT doesn't work, it's possible your iTunes files (Library.itl / .xml) are corrupt. There's an article in the knowlegebase called something like "Recreate? or rebuild? your iTunes Library" that explains exactly where these files dwell, and how to reconstruct it. -
VOB converted to AVI audio files imported to premiere play in different order than the video files
Hello there,
I extracted the VOB files from a burned dvd created with Adobe Premiere pro 1.5, I converted the files into AVI files, then I imported it to Premiere CS4. The video sequence on the timeline plays in the correct order but a very fast speed, and the audio sequence plays all the individual clips in a random order, not in the order that they were originally edited in.
What did I do wrong while importing or converting?
Elio38Hi Elio,
What program, or utility did you use to convert the .vob files to .avi, and what was your target codec? I typically use SUPER Converter, which is free and very versatile, to convert program stream .vob files to a useable format that PPCS4 is compatible with. You can also directly import and edit a .vob file from a DVD in PPCS4 by simply changing the file extension to .mpg. However, doing so will eliminate the audio channel from the video clip in PPCS4.
I was able to recreate what I believe was your issue when I tried converting a .vob file to an .avi file, regardless of what codec I used. I had no issues what so ever when converting the .vob file to a .mov file using the DV codec, for example. It could be a bug with PPCS4 because the same .avi file I created with the DV codec played back fine in WMPlayer, and VLC, but played back almost in slow motion in PPCS4. It might be advantageous for you in the meantime to re-convert the .vob files to .mov files and just choose the standard DV codec.
Remember, you are trying to edit files that are intended for delivery and that were not originally designed to be edited. Attempting to edit inter-frame formats such as MPEG-2, MPEG-4, FLV, etc...has caused many a headache and even today, are not the easiest to work with. -
After creating a playlist, it becomes locked or frozeen and I cannot move the songs around in different order.
Select the very first column header (above the numbers) and then try it.
-
Why don't my photos appear as they do in iPhoto on my Apple Computer. Even though I specify to sync all Events, Faces, etc. the iPad 2 is missing Faces categories and the Events are in a different order.
1) The best way to relocate the iTunes library folder is to move the entire iTunes folder with all subfolders to the new path, then press and hold down shift as start iTunes and keep holding until prompted to choose a library, then browse to the relocated folder and open the file iTunes Library.itl inside it.
If you've done something different then provide some more details about what is where and I should be able to help.
2) Purchases on the device should automatically transfer to a Purchased on <DeviceName> playlist, but it my depend a bit on whether automatic iCloud downloads are enabled. If there is a cloudy link then the transfer might not happen. You can use File > Devices > Transfer Purchases. In iTunes you should also check out iTunes Store > Quick Links > Purchased > Music > Not on this computer.
3) Backup the device, then immediately restore it. In some cases you need to add a restore as new device into that equation. Obbviously not to be attempted until you're sure all your media is in your library. See Recover your iTunes library from your iPod or iOS device should it be needed.
4) I believe there is complimentary 1 incident 90-day support with hardware purchases, but no free software support for iTunes itself. AppleCare gets you a different level of support.
tt2 -
Aperture performs adjustments in a different order depending on file type
Aperture performs Adjustments in a different order depending on file type.
Here's an example:
Starting with two copies of an image, one in RAW format (Canon CRW from a D60), the other in TIFF (opened the .crw file in Preview and exported an 8bit tiff file).
{The test image is a photo of my copy of Aperture on the floor of my studio (which, for reference, is a few points of Cyan off of a neutral grey).}
The original Image.
http://members.arstechnica.com/x/adrien/testRAW_originalImage.jpg
Adjustments
http://members.arstechnica.com/x/adrien/adjustments.jpg
The RAW file adjusted
http://members.arstechnica.com/x/adrien/testRAW_adjusted.jpg
The TIFF files adjusted
http://members.arstechnica.com/x/adrien/testTIFF_adjusted.jpg
Import both of these files (testRAW.crw & testTIFF.tiff) into Aperture.
Make adjustments to the RAW and TIFF images:
- Exposure: Saturation -> 0 (lowest possible value).
- White Balance: Temp -> 3500K (from 5000K).
It doesn't matter what order you perform these operations in.
The RAW file is now a neutral greyscale image. With the Saturation set to 0, the White Balance makes no major difference in the image, it stays grey.
The TIFF file, however, is now a blue tinted greyscale image - much like a sepia-tone effect. Moving the White Balance slider changes the color of the image.
It appears that Aperture is performing the Saturation and WB operations in a different order: for the RAW file it first performs the WB, then the saturation; while in the TIFF file it performs the saturation first, then the WB.
The result is the same for a JPEG image.
The RAW behavior is the 'expected' behavior in photography - White Balance should happen 'before' the Saturation setting.
I've filed the bug with Apple (number 4394125 at bugreport.apple.com). hopefully they'll fix this.
Cross posted from this discussion at the MacAch on ArsTechnica forums:
http://episteme.arstechnica.com/groupee/forums/a/tpc/f/8300945231/m/893007866731 /r/832001796731#832001796731Well, there are different ways of achieving this.
Solution 1:
You can create a new output type which will be triggered and call a same driver program and the new smart form. I am sure you can customize as to what Purchasing document type will trigger which output type. Get in touch with someone in the function team to get this configured.
Solution 2:
No Customizing, let the configuration be the same, but in the driver program change the value of "TNAPR-FONAM" immediately after the form entry_neu to the new form name based on the Purchasing document type. -
What order are find results in?
When I use Spotlight and then select the "show in finder" option, what order
are the results supposed to be in? Alphabetical, you'd think, if "name" was
selected. But there seem to be many sublists in a large set of result, each
restarting some sort of order every so many lines. And why wouldn't clicking
"name" again simply resort these? It seems the only sort that affects the
entire list in a predictable manner is sort by "type". Have I inadvertently
selected something wrong or am I missing something? This makes spotlight
much less useful to me.
Anyone notice this?
MarkHi Ves,
The AFCS dev guide mentions this in passing (3.1.5.1) but doesn't go into quite enough detail - we'll make a note to improve this for the next go-round.
Essentially, all items for a given CollectionNode (from all of its nodes) are synched in the order that they were published, irrespective of which node they were published to. You can actually put a breakpoint down in MessageManager.receiveItems to watch this - all items for the entire collection are received in one big blob, then pushed onto an array, then sorted according to their timestamps and order, then sent as itemReceive up to the collectionNode.
So yes, you could easily end up with an itemReceive for EVERYONE, followed by an itemReceive for HOSTS, then another one for EVERYONE. We make sure that they essentially come in the same order they did for people who were actually in the room at the time. For example in the chat pod, if I asked a question to the HOSTS node, which they answered on the public EVERYONE node, I'd want the items to be received in the right order, or the collective history wouldn't make sense.
For separate CollectionNodes, their synchronization are kept separate (one at a time), since they're the result of individual subscribe() requests - the advice here is that if you have a series of items that have some dependency on order of arrival, you should make sure they're part of the same CollectionNode (which makes sense). If you need A to finish synching before B begins, put those items on different collectionNodes and call their subscribe() methods in that order. So, you can have it either way, depending on how you want to set it up.
hope that helps
nigel -
Suppose we have a series of fills:
service1.fill(list1);
service2.fill(list2);
service3.fill(list3);
etc. Is there any guarantee about the order that the result
or fault handlers on the clients will be called? Thanks.Calls executed in the same "flash frame" (i.e. in the same
execution path) are guaranteed to be processed in the same order on
the server no matter what channel you are using. RTMP provides an
order guarantee in general since everything gets queued up in the
order in which they are executed and put into the socket in that
order and then processed synchronously (one at a time) on the
server. There is a small risk of getting out of order calls when
you are using HTTP based channels and you make the calls in
separate flash frames. In this case, each call may not be batched
into the same HTTP request... instead they are executed
independently by the player and the browser may open up 2 or more
sockets at the same time. That means there is not a 100% guarantee
of the order of execution on the server.
This is something we hope to address in future versions of
LCDS - i.e. add an option to make sure things are received and
processed in the right order on the server . -
Two orders for the same Accordion
Hey!!
I'd like to set two different orders for the same Accordion
varibale heights and duration of time should be change
if I use just one of them like this
var Accordion1 = new Spry.Widget.Accordion("Accordion1", {
useFixedPanelHeights: false })
It works
or
var Accordion1 = new Spry.Widget.Accordion("Accordion1", {
duration: 100, fps: 90 });
it works, too!
But when I want to combine them
var Accordion1 = new Spry.Widget.Accordion("Accordion1", {
useFixedPanelHeights: false })
var Accordion1 = new Spry.Widget.Accordion("Accordion1", {
duration: 100, fps: 90 });
It doesnt work
or like this
var Accordion1 = new Spry.Widget.Accordion("Accordion1", {
useFixedPanelHeights: false, duration: 100, fps: 90 })That is not possible.
Are you sure Inits were done for same selections ??? -
When I submit a music disc to be copied into my iTunes library, the order of the tracks is scrambled. How can I fix this so that the album track order in my library matches that of the cd itself?
Click the heading above the left most column of numbers.
Regardless of the order displayed during the rip the tracks should be correctly sorted when the library is sorted by Album, Album by Artist or Album by Artist/Year. Sorting on any other column will give different results. See Grouping tracks into albums for details.
tt2 -
I recently purchased FaceTime from the Application Store. After approx. ±10 meg, the application resets and starts downloading again. I have tried to download it at different times of the day but with the same results. I have been in contact with Apple support and have tried different options with the same result. I cannot download a new Version because in my Purchased List the applicaiton (FaceTime) is still there, and because I have halted it it tells me to resume. I can’t, because the same thing is going to happen. I have tried all the various troubleshooting tips supplied by my ISP and also Apple Support with no luck. I am currently working on a IMac OS 10.6.7. Has anybody got any ideas? Any suggestion would help. Thanks
Amol Soni wrote:
As I said, I tried everything what the manual says, but hard luck. I have taken an appointment for today, lets see what happens.
Also there is no activity on unit when I use the remote. The unit is stuck on the first page itself where we have to choose the language. The unit seems to be fine to me but the real problem is remote does'nt have activity. The IR is not responding while pressing any of the button.
Good luck with your appointment.
Not much consolation but even new products can have issues and might need a trip to a store to return/replace.
The reason i asked about the LED on the AppleTV is that occasionally it thinks it's paired with a specific remote and ignores others - the unpair keypress I described is quick and free.
AC -
How to display the results in order by based on search value
Hi All,
how to display the results in the below order.
CREATE TABLE TEST( SONGID NUMBER, TITLE VARCHAR2(200))
INSERT INTO TEST(SONGID,TITLE) VALUES (10,'AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)');
INSERT INTO TEST(SONGID,TITLE) VALUES (11,'CICCONE, MADONNA (CA)');
INSERT INTO TEST(SONGID,TITLE) VALUES (12,'DALLIN, MADONNA LOUISE/STOCK');
INSERT INTO TEST(SONGID,TITLE) VALUES (13,'MADONNA');
INSERT INTO TEST(SONGID,TITLE) VALUES (14,'MADONNA (A)/ AHMADZAI, MIRWAIS (C)');
INSERT INTO TEST(SONGID,TITLE) VALUES (15,'MADONNA (CA)');
INSERT INTO TEST(SONGID,TITLE) VALUES (16,'MIRWAIS AHMADZAI, MADONNA');
INSERT INTO TEST(SONGID,TITLE) VALUES (17,'MIRWAIS (CA)/ MADONNA (CA),AHMADZAI');
INSERT INTO TEST(SONGID,TITLE) VALUES (18,'MADONNA (CA),CICCONE');
SELECT *FROM TEST WHERE INSTR (TITLE, 'MADONNA') > 0
output:
SONGID TITLE
10 AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)
11 CICCONE, MADONNA (CA)
12 DALLIN, MADONNA LOUISE/STOCK
13 MADONNA
14 MADONNA (A)/ AHMADZAI, MIRWAIS (C)
15 MADONNA (CA)
16 MIRWAIS AHMADZAI, MADONNA
17 MIRWAIS (CA)/ MADONNA (CA),AHMADZAI
18 MADONNA (CA),CICCONE
Expected output :
13 MADONNA
14 MADONNA (A)/ AHMADZAI, MIRWAIS (C)
15 MADONNA (CA)
18 MADONNA (CA),CICCONE
...if user searches with 'MADONNA' , I have to display the results like title starts with 'MADONNA' first then rest of the records.
Please let me know is it possible to display the results in that order.
Regards,
RajasekharThis may be a bit more accurate:
SQL> SELECT *
2 FROM TEST
3 WHERE INSTR (TITLE, 'MADONNA') > 0
4 ORDER BY INSTR (TITLE, 'MADONNA')
5 ,TITLE
6 ;
SONGID TITLE
13 MADONNA
14 MADONNA (A)/ AHMADZAI, MIRWAIS (C)
15 MADONNA (CA)
18 MADONNA (CA),CICCONE
12 DALLIN, MADONNA LOUISE/STOCK
11 CICCONE, MADONNA (CA)
17 MIRWAIS (CA)/ MADONNA (CA),AHMADZAI
16 MIRWAIS AHMADZAI, MADONNA
10 AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)
Maybe you are looking for
-
How to delete Software Component in XI ?
Hi, I have created a Software component with a NameSpace Containing Some Scenarios. Now i would like to delete this Software Component as a whole from the IR. I tried deleting : 1.From the SLD Software catalog - Deleted the s/w product and associated
-
Hi Folks, Problem statement: how to update the values in look up table [imported as a checktable from R/3]. eg. values in of material group Can an IDOC [sent, from say a prodn r/3 client] update the values ? Regards, Vinay
-
HT1495 I have accidentally synced my friends iPad to mine. How can I undo this?
I have accidentally synced my iPad with a friends. How can I undo this?
-
Why does cloud copy pictures more than once
everytime I download a picture it gets copied three or four times. it does it on my phone and computer. How do I stop it from doing this.
-
Hello I have a compaq presario SR1130UK and had to put a new hard drive in, everything is working fine other than the multimedia audio controller which has a yellow question mark next to it. This website will recognise my PC but says that it can't ch