What is the difference between the two?
Hi Friends,
Though I know it would be a strange one for many of you,I would like to clarify myself with this.
1)
select *
from scott.emp
order by 8Execution plan for 1)
Execution Plan
0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=3 Card=14 Bytes=51
8)
1 0 SORT (ORDER BY) (Cost=3 Card=14 Bytes=518)
2 1 TABLE ACCESS (FULL) OF 'EMP' (TABLE) (Cost=2 Card=14 Byt
es=518)2)
select *
from scott.emp
order by (to_number('8')) Execution Plan for 2)
Execution Plan
0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=2 Card=14 Bytes=51
8)
1 0 TABLE ACCESS (FULL) OF 'EMP' (TABLE) (Cost=2 Card=14 Bytes
=518)In case 2,as per the execution plan,It does not perform an order by .What is the reason for this?
Why it is not treating 8 as position here?
They are different statements. In the first you are asking to order by the 8th column in the table. In the second you are asking that it order by the number 8
Similar Messages
-
Whats the difference between these two queries ? - for tuning purpose
Whats the difference between these two queries ?
I have huge amount of data for each table. its takeing such a long time (>5-6hrs).
here whice one is fast / do we have any other option there apart from listed here....
QUERY 1:
SELECT --<< USING INDEX >>
field1, field2, field3, sum( case when field4 in (1,2) then 1 when field4 in (3,4) then -1 else 0 end)
FROM
tab1 inner join tab2 on condition1 inner join tab3 on condition2 inner join tab4 on conditon3
WHERE
condition4..10 and
GROUP BY
field1, field2,field3
HAVING
sum( case when field4 in (1,2) then 1 when field4 in (3,4) then -1 else 0 end) <> 0;
QUERY 2:
SELECT --<< USING INDEX >>
field1, field2, field3, sum( decode(field4, 1, 1, 2, 1, 3, -1, 4, -1 ,0))
FROM
tab1, tab2, tab3, tab4
WHERE
condition1 and
condition2 and
condition3 and
condition4..10
GROUP BY
field1, field2,field3
HAVING
sum( decode(field4, 1, 1, 2, 1, 3, -1, 4, -1 ,0)) <> 0;
[pre]My feeling here is that simply changing join syntax and case vs decode issues is not going to give any significant improvement in performance, and as Tubby points out, there is not a lot to go on. I think you are going to have to investigate things along the line of parallel query and index vs full table scans as well any number of performance tuning methods before you will see any significant gains. I would start with the Performance Manual as a start and then follow that up with the hard yards of query plans and stats.
Alternatively, you could just set the gofast parameter to TRUE and everything will be all right.
Andre -
What is the difference between these two reports MC.1 and MB5L
Hi
what is the difference between these two reports MC.1 and MB5L?
what is the Purpose of each report?
Material ledger is activated for this plant, we found some amount difference between these two reports, my client accounting department used to compare these two reports while year end/month end closing
Thanks
RajuMC.1 will give you the report for plant analysis as per plant .
MB5L report will give you list of stock value as per G/L account wise. -
What is the difference between these two sticks of RAM?
I am upgrading my Macbook 2.2 GHz Intel Core 2 duo from 2GB of ram to 4GB
What is the difference between these two kits?
4GB Kit (2 x 2GB) 200 Pin DDR2-667 PC2-5300 256x64 CL5 1.8V SODIMM ($102.00)
4GB Kit (2 x 2GB) eRam 200 Pin DDR2-667 PC2-5300 CL5 1.8V SODIMM ($88.00)Probably nothing of any consequence. Some places can just negotiate better deals with suppliers. Or one of a million other factors that can affect price is in play here.
When buying RAM, I generally find it's better to pay a little extra to get a brand that's known for quality. I usually stick to Crucial myself. If you look around, you can probably find some real steals out there, but I don't know... With stories of people who literally go dumpster diving, salvaging stuff that was slated for disposal, then turning around and selling it... I prefer not to take chances. If you are, by all means, go for the cheaper one. -
What is the difference between these two portalapps folders on the Server?
Hello,
On the Server there are two portalapps folder:
1. Under: C:\usr\sap\JXX\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\portalapps
2. Under: C:\usr\sap\JXX\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps
Can someone please explain me what is the difference between these two portalapps folders and under which case will I turn to which folder?Hi Roy,
The one at this location
Under: C:\usr\sap\JXX\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\portalapps
has all the files from the WEB-INF folder i.e. these are the non-web resources and cannot be accessed via HTTP(S) examples would be imgaes, CSS etc that you want only your application to access
those under
Under: C:\usr\sap\JXX\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps
they have all the .JAR files, portalapp.xml, config properties etc. these are web resources and can be accessed via HTTP(S)
Hope this is of help.
Akhilesh -
What is the difference between these two commands?
What is the difference between these two commands?
DROP TABLESPACE users INCLUDING CONTENTS;
DROP TABLESPACE users INCLUDING CONTENTS AND DATAFILES;
--------No.202http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9004.htm#i2133717
-
What is the main difference between these two api
Hi
I am using portal 3.0.9.8.1 under NT environment.
I am planning to change the user's password programmatically.
Could someone advise me about the difference between these two
api:
wwsso_api_user_admin.change_password and
wwsso_api_user_mgr.change_password
Are these api the same?Are they affecting the same table?
Thanks in advance for any clarification
RegardsMichelle1892773 wrote:
What is the main difference between LOCAL VARIABLE, REFERENCE, PROPERTY NODE and INVOC. NODE?
Can u show this with an example in a VI using all these?
Basic overview. Someone can go into more depth if they want.
Local Variable - Correlates to some location in memory that holds information. Based on the data type, it looks at that location and interprets the 1's and 0's as either a double, integer, string, structure(cluster), etc.
Reference - ill leave the details of this to someone else I can't give a decent explanation.
Property node- sets different "properties" of a control/indicator etc. One of the properties is value so that works similar to a local variable. However, you can set much more than that. For example, with controls you can set the property of visible, not visible, color, etc etc.
Invoke node - invokes some "method." i.e. calls some function to act on something
These may not be the best explanations, or even 100% correct. But it should get you started. I'm sure someone else will build on this.
CLA, LabVIEW Versions 2010-2013 -
What is the difference between these two instant ink printers?
Looking to get one of the HP instant ink printers from Best Buy. Either the Envy 4500 or the Envy 5530. There is a $20 diference and I did a side-by-side comparison of them on the Best Buy site, but the only difference I can notice is the 5530 seems to have more memory than the 4500 (128MB vs 32MB).
Print speeds and resolutions seem to be the same. The cheaper one (4500) also seems to be able to do two-sided printing & reduction/enlargement (which I would have thought to be on the more expensive mode). So are there any other real differences between these two or have I pretty much covered them all?HI - great question, you identified a few of the differences. Some additional differences are:
4500 has a monochome display that is not touch enabled (you have to use scroll buttons on the side of the screen)
5300 has a touch enabled color display
Both printers can do duplexing (printing on both sides) and both have wireless.
We are excited about Instant Ink and hope you enjoy the service & whichever printer you chose!
Although I am an HP employee, I am speaking for myself and not for HP -
What is the Difference between these Two?
Hi All,
In Oracle University site i saw 2 Courses for Oracle Webcenter sites. Just i would like to know the difference between these two. Based on your input i can decide which one to take.
*1. Oracle Webcenter Sites for Developers*
http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=609&p_org_id=1001&lang=US&get_params=dc:D73886GC10,p_preview:N
*2. Oracle Webcenter Sites 11g for Developers*
http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=609&p_org_id=1001&lang=US&get_params=dc:D78300GC10,p_preview:N
Is the 1st one is Fatwire and the 2nd one is Fatwire+Oracle latest implmentation ? Is my understanding is right?
regards
SriIt's the same lens, just different sellers. The higher one is the MSRP, or close to it. But since they use this lens in a kit it goes for less. I have no idea who Celltime Inc is, but it's fullfilled by Amazon, so I'd feel reasonably safe. Just look into their return policy.
With the recent release of the 6D and somewhat recent 5d3, the market is flooded with these lenses from kits; I wouldn't pay more than 800 something for it. Getting it through Amazon is a bonus over eBay. If the seller checks out I'd go for it.
Edit: DH beat me to it. -
What's the difference between these two networks?
Have searched a lot but can not find a clear answer to the difference between these two networks.
(I'm using these as examples only)
Using Airport utility
* sometimes theres a dotted line "......"
*And sometimes there's a solid line like a " } "
I chose these as an example because ours is just like the first example above.
However sometimes our presents similar to the above example only with two devices, not three.Dotted line is wireless.. Solid line is ethernet..
Normally all ethernet should show as your lower picture since all are directly wired..
Wireless should show which Airport is the main base and which extend using wireless.
But it is 50% science and 80% voodoo (voodoo cannot count even!!) -
How to get the difference between these two dates
Hello Friends,
I need to get the difference between these two fields which store dates but with varchar2 data types
SELECT pac.segment1, pac.segment2 emp_no, pac.segment3 NAME,
pac.segment4 POSITION, pac.segment5 start_date, pac.segment6,
pac.segment7
FROM per_analysis_criteria pac, fnd_id_flex_structures_vl ffs
WHERE ffs.id_flex_structure_code = 'Employee Rejoin'
AND ffs.id_flex_num = pac.id_flex_num
AND TO_CHAR (TO_DATE (pac.segment7, 'YYYY/MM/DD HH24:MI:SS'))
- TO_CHAR (TO_DATE (pac.segment6, 'YYYY/MM/DD HH24:MI:SS')) > 1;
my query is something like this...
am trying to find the difference between the last two columns but with not much luck..
can some one suggest me a solution pleaseSELECT pac.segment1, pac.segment2 person_id, pac.segment3 NAME,
papf.employee_number, paaf.supervisor_id, pac.segment4 POSITION,
pac.segment5 start_date, pac.segment6, pac.segment7,
papf2.email_address,
( TO_DATE (TO_CHAR (pac.segment7), 'DD-MON-YYYY HH:MI:SS AM')
- TO_DATE (pac.segment6, 'DD-MON-YYYY HH:MI:SS AM')
+ 1
) difference,
POST.email_address
FROM per_analysis_criteria pac,
apps.fnd_id_flex_structures_vl ffs,
per_all_people_f papf,
per_all_assignments_f paaf,
per_all_people_f papf2,
(SELECT email_address, person_id
FROM per_all_people_f
WHERE person_id IN (
SELECT person_id
FROM per_all_assignments_f
WHERE position_id IN (SELECT position_id
FROM per_positions
WHERE NAME LIKE 'HR Manager.704.')
AND TRUNC (SYSDATE) BETWEEN effective_start_date
AND effective_end_date)
AND TRUNC (SYSDATE) BETWEEN effective_start_date AND effective_end_date
AND business_group_id = fnd_profile.VALUE ('PER_BUSINESS_GROUP_ID')) POST
WHERE ffs.id_flex_structure_code = 'Employee Rejoin'
AND TO_CHAR (papf.person_id) = pac.segment2
AND ffs.id_flex_num = pac.id_flex_num
AND TRUNC (SYSDATE) BETWEEN papf.effective_start_date
AND papf.effective_end_date
AND papf.current_employee_flag = 'Y'
AND papf.person_id = paaf.person_id
AND TRUNC (SYSDATE) BETWEEN paaf.effective_start_date
AND paaf.effective_end_date
AND papf.person_id = paaf.person_id
AND papf2.person_id = paaf.supervisor_id
AND paaf.primary_flag = 'Y'
AND TRUNC (SYSDATE) BETWEEN papf2.effective_start_date
AND papf2.effective_end_date
AND papf2.current_employee_flag = 'Y'
and ( TO_DATE(to_char(pac.segment7), 'DD-MON-YYYY HH:MI:SS AM')-TO_DATE (pac.segment6, 'DD-MON-YYYY HH:MI:SS AM')+1) >1
last line is giving me the error pls suggest a solution -
What are the two different rules for organizational data determination
What are the two different rules for organizational data determination???
Hi
1) Rule type Responsibilities
want to determine organizational data for individual responsibilities
have not created an organizational model but want to create one
have a lot of organizational units and must only assign a few attributes
2) Rule type Organizational Model
You would use rule resolution using organizational model if you
have created an organizational model or have distributed a plan to SAP CRM and also want to use this for determining organizational data
assign a lot of attributes to the organizational units and these are to be evaluated
Regards
Manohar -
What are the two XSLT tags, previously that could not be used in XI?
What are the two XSLT tags, previously that could not be used in XI?
Dear Niladri,
sorry I missed your question a little bit... my answer was about the XSD barriers.
About XSLT, it's the format-number() and unparsed-entity-uri() functions which are not supported.
Best regards,
Andras -
What are the two options of entering PLAN DATA?
Dear SAP Gurus
What are the two options of entering PLAN DATA?
AADear Friend AA
Such two options are :- FORM BASED ENTRY & FREE ENTRY.
FORM BASED ENTRY-Here you fill in th eplan data in the rows corresponding to the characteristic values displayed on the screen.But in free entry you have the freedom of inputting even the chrcteristic values.
Regards
Vivek -
What are the two mystery apps?
With my iPhone connected to my Macbook, under the apps tab (for my iPhone) - the top right says that I have 169 apps. However, when I count them I have 167. In addition, the apps tab (in the left of my iTunes for my Macbook) - the bottom says that I indeed have 167 apps.
What are the two mystery apps?Is it possible that you have an iPhone version and an iPad version of the same app?
MJ -
Color differences between these two files?
Could someone please tell me the color differences between these two files? What are the differences in general of these two files and how do I make a file identical to the blue cancel button?
I am working with signature pads and the BLUE CANCEL image works, but the other GREEN image does not. Both are 8-bit .bmp files... HELP!#1, obviously, would be to connect a mic that doesn't require phantom power.
And #2 comes with a 6 ft. USB cable, so you may not need a bunch more cables. Maybe just one standard XLR to connect a mic to it.
Message was edited by: p o'flynn
Maybe you are looking for
-
What's wrong with skype and banning my accounts?
I've had many accounts 8+ banned, I've had to switch aliases multiple times including [Removed for privacy] and others, I make an account and within a week it get's banned, idk if its a ban but when it happens my client crashes then when I try to rec
-
My app store won't let me download none of the older versions of apps for my ipod touch 2g.
My app store won't let me download any of the older versions of an app, but in my sisters case she can and she has an ipod touch 2g just like me. She was able to download kik, twitter, instagram, and some more apps that told me I had to have ios 4.3.
-
Hi, i updated to ios 8 I have several devices under my apple id account. 2 iPhones (me and my wife ). 2 iPads also me and my wife and my iMac The problem is that if somebody calls me for example for face time all the other devices are also ringing, b
-
Function module for Staffing in cProjects
Hi, Can anybody let me know which is the function module which gets called during "Staffing" from cProjects. Resource search functionality will be made use to staff the same. Thanks & Regards, Sujay G
-
Use checkbox to select rows in a table
Is it possible to use a checkbox on the first column of a table as row selection control? Just like most of the web email client (Yahoo, Hotmail...). Thanks, Samson Fu