Can  you explain the difference

Hi,
Gurus, I have executed two queries, using TKPROF took output, unfortunately, I couldnt see the difference, can you please tell me is there any difference between these two queries ... ?
sql>exec dbms_monitor.session_trace_enable( waits=>true );
Case 1
=====
SQL> select count(*) from afe_reports;
COUNT(*)
6
Execution Plan
Plan hash value: 2793097447
| Id | Operation | Name | Rows | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 2 (0)| 00:00:01 |
| 1 | SORT AGGREGATE | | 1 | | |
| 2 | TABLE ACCESS FULL| AFE_REPORTS | 6 | 2 (0)| 00:00:01 |
Statistics
0 recursive calls
0 db block gets
3 consistent gets
0 physical reads
0 redo size
227 bytes sent via SQL*Net to client
240 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
1 rows processed
Case 2
======
SQL> select count(1) from afe_reports;
COUNT(1)
6
Execution Plan
Plan hash value: 2793097447
| Id | Operation | Name | Rows | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 2 (0)| 00:00:01 |
| 1 | SORT AGGREGATE | | 1 | | |
| 2 | TABLE ACCESS FULL| AFE_REPORTS | 6 | 2 (0)| 00:00:01 |
Statistics
1 recursive calls
0 db block gets
3 consistent gets
0 physical reads
0 redo size
227 bytes sent via SQL*Net to client
240 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
1 rows processed
Select count(*) from afe_reports ---- 1st query
Select count(1) from afe_reports ----- 2nd query
Regards

S both of us already told you there is no difference between the two. So, it is upto you to decide - whether you want to use count(*) or count(1).
It hardly matters.
After all it consumes the same resource and perform the same task.
So, It is your choice.
Enjoy!
Regards.
Satyaki De.

Similar Messages

  • Can someone explain the difference between TIER_WEB and TIER_WEBDEV

    Hi All,
    We have two sets of values in Context file as below.
    <TIER_ADWEB oa_var="s_isAdWeb">NO</TIER_ADWEB>
    <TIER_ADFORMS oa_var="s_isAdForms">NO</TIER_ADFORMS>
    <TIER_ADFORMSDEV oa_var="s_isAdFormsDev">NO</TIER_ADFORMSDEV>
    <TIER_ADWEBDEV oa_var="s_isAdWebDev">NO</TIER_ADWEBDEV>
    Could you explain the difference between
    TIER_WEB and TIER_WEBDEV
    and
    TIER_ADFORMS and TIER_ADFORMSDEV

    These values in a shared APPL_TOP system. Pl see ML Doc 745580.1 (Apply Patches in a Shared Application Tier File System Environment) for an explanation.Not necessarily in Shared APPL_TOP, even in traditional multi-node installation you will find these values in the application context file.
    I never came across any document which describes the difference between TIER_WEBDEV and TIER_WEB, I just can say that these variables always have the same value.

  • Can someone explain the difference between width, maxWidth, explicitWidth, explicitMaxWidth?

    Can someone explain the difference between width, maxWidth,  explicitWidth, explicitMaxWidth of the UI component? I read the API and I  have no idea what do they mean.

    Width is the current width.  ExplicitWidth is set if you give an component
    an explicit width vs a temporary width via setActualSize.
    MaxWidth and minWidth factor in either the measuredMax/MinWidth or one set
    explicitly.

  • Can anybody explain the difference REDOLG vs ARCHIVE log files

    can anybody explain the difference REDOLG vs ARCHIVE log files?
    and the relation between redolog files and redolog buffers?
    thanx in advance

    Changes made to the database are recorded in the Redo log buffer. This Buffer contains Redo records or entries, which are a description of changes made to the database.
    The Redo Logs are critical in order to recover the database or to reconstruct data files and undo segments after a system crash or hardware failure.
    Each Oracle instance has only one log writer process (LGWR). The log writer operates in the background and writes all records from the Redo log buffer to the Redo log files. When the database operates in Archivelog mode, the redo logs are are archived before overwritten.

  • Hi, can anyone explain the difference between the models A1457 and ME432B/A of the iPone 5s. Thanks

    Hi, can anyone explain the difference between the models A1457 and ME432B/A of the iPone 5s.

    Hi Gary,
    Model # A1457 designates that it's the European market model, which I believe works on EE, Vodafone and O2 in the UK.
    ME432B/A is the part # that, in your case, I believe, desginates a 16GB Space Grey Unlocked version...
    Someone can correct me if I'm wrong on that
    Kev

  • In ical, how can you tell the difference between a meeting invite and email?

    When you send a meeting invite in ical, does the recipient receive a different icon in their inbox to differentiate from an email?

    For service stock you can't tell the difference between a new iPad and a refurbished one. Both will come in a plain brown box with the same pattern in model numbers. If you mean between a refurbished one and one new at retail, then other than the obvious difference in packaging, I've read that the model number on refurbished units starts with the letter "F", though I've not confirmed that.
    Regards.

  • How can you tell the difference between ipad 2 and ipad 3 ?

    I need to know how can you tell the defferance between the Ipad 2 and Ipad 3 by just looking at it ?

    Well it hard to tell if you don't have the two side by side and compair it to...

  • Can someone explain the difference in HDS & RMTP

    I am needing someone to explain the difference in HDS (live streaming & vod) video compared to RMTP (live streaming & vod).
    My end goal is to have video formats for ALL devices Android/iPhone/iPad/BlackBerry/Apple Mac and Windows to view.

    Hi,
    Following link may be useful in understanding HDS and difference from rtmp:
    http://www.adobe.com/devnet/adobe-media-server/articles/beginning-fms45-pt06.html

  • Can someone explain the difference between these to kerberos AFP listings

    I have been doing quite a bit of digging to solve a widespread AFP idle disconnect issue, and while comparing settings among multiple servers, I noticed a kerberos recond variation that I don't understand.
    Most of the servers under the APF settings list a record like this:
    afp:kerberosPrincipal = "afpserver/[email protected]"
    One in particular, lists a record like this that is comepletely different from the other servers:
    afp:kerberosPrincipal = "afpserver/LKDC:SHA1.F4848D1138AE9704A1A67C3F2F25AE98465D6465@LKDC:SHA1.F4848D1138AE9704A1A67C3F2F25AE98465D6465"
    Can anyone explain to me why the difference and what it means?

    Basically it's the Local Key Distribution Centre ostensibly used for peer to peer file sharing and Access Control Lists etc as compared to SSO in a Networked Directory environment such as OD, AD, eDirectory, OpenLDAP etc. Wikipedia explains it fairly well if you're interested?
    https://dreness.com/wikimedia/index.php?title=LKDC
    In practical terms I have seen it cause confusion sometimes when authenticating file shares. It usually happens when File Sharing has been started prior to configuring DNS Services properly and starting PM and/or OD. The AFP server preference file appears to be 'locked' with the LKDC info instead of the server one and networked users fail to authenticate when accessing a share. It's a rare-ish occurence (I've seen it happen a few of times) but can take a while to troubleshoot because defining shares and applying ACLs in the GUI shows no problems.
    However this may not be the case with whatever problems you may be having? It's easy to 'fix' though, simply unshare whatever you've shared, stop the service, remove the preference file, reboot the server, restart the service. Check the information in the preference file is what it should be.

  • Can anyone explain the difference between these 2 versions?

    I don't understand why Version 2 works and Version 1 does
    not. Both are on the main timeline, however Version 2 nests one
    clip inside the other. They both display correctly, however
    mouse-dragging only works on the Version 2. The events don't get
    fired for Version 1. Can anyone explain what's up?
    Version 1:
    this.createEmptyMovieClip("thisClip",getNextHighestDepth());
    thisClip.loadMovie("man.swf");
    thisClip.onPress = image_press;
    thisClip.onRelease = image_release;
    Version 2:
    this.createEmptyMovieClip("thisClip",getNextHighestDepth());
    thisClip.createEmptyMovieClip("man",
    thisClip.getNextHighestDepth());
    thisClip
    .man.loadMovie("man.swf");
    thisClip.onPress = image_press;
    thisClip.onRelease = image_release;
    The handlers are defined as simple calls to
    startDrag/stopDrag:
    function image_press() {
    this.startDrag(false);
    trace("man press");
    function image_release() {
    this.stopDrag();
    trace("man release");

    handlers applied to a movieclip (like your thisClip.onPress
    handler) is removed when that movieclip is the target of a
    loadMovie() statement. when loading is complete you can assign an
    onPress handler that functions as you expect. or you can use
    version 2 to target the child of a movieclip and assign handlers to
    the parent.

  • Can someone explain the difference

    Hi
    1.SYSADM,VP1,Own user profile
    what is the difference while logging in.where to change different pwds for this profiles and how.
    2. installed cobol on a server but still cobol report runs to error. need help in this issue badly.
    3. in reference to question 1 , app designer has no bootstrap access , so one has to go with user profile
    datamover has bootstrap and non-boot strap , where to change non boot-strap pwd.
    Thanks!
    --Sunny                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    user7348560 wrote:
    1.SYSADM,VP1,Own user profile
    what is the difference while logging in.where to change different pwds for this profiles and how.SYSADM : it is a database user, the owner of the Peoplesoft objects
    VP1 : it is an application user (FSCM or CRM), it is the "master" user, in most of case it is disabled on production application, but very useful because it is allowed to do almost everything in the application.
    Own user profile : I think you mean an application user, your own, generally with only the rights for the transaction which you are allowed according to your position.
    2. installed cobol on a server but still cobol report runs to error. need help in this issue badly.There is not enough information, what Peopletools version, what application, what OS, what error...
    3. in reference to question 1 , app designer has no bootstrap access , so one has to go with user profile
    datamover has bootstrap and non-boot strap , where to change non boot-strap pwd.Since bootstrap mode connection means connection with in the database user which host the Peoplesoft objects, it is not possible to connect to Application Designer which work only through the Peoplesoft metamodel, not on the database datamodel.
    Generally, we change the non-bootstrap password - or application user password - through the front end application, and the menu Peopletools/Security/Profile. However in some circumstances, it can be helpful to do that through datamover with the following commands :
    update psoprdefn set encrypted=0,operpswd='NEW_PASSWORD' where oprid='USERID';
    encrypt_password USERID;Nicolas.

  • Can u explain the difference between album book calendar icloud in iphoto

    In iphoto u have some different options to group photos, can someone tell me the difference between albums books calendar icloud and slideshows, i don't know which of them to use to group my photos.
    Thanks

    Albums are arbitrary collections of photos. You decide what photos go in what albums. In your list these are the only items for grouping photos.
    Books are exctly that. Books you design based on templates and buy in printed from from Apple. Ditto with Calendars
    iCloud is an online syncing service offered by Apple. In terms of iPhoto you're thinking of Photostreams. See
    http://support.apple.com/kb/PH2604
    or
    http://support.apple.com/kb/HT4486

  • Can You Hear the Difference?

    Seriously. I can hear the difference between 16 bit and 24 bit and 44.1 and 48kHz. I recorded the same acoustic guitar part through a Line6 PodXT Pro this evening at 96kHz and 48kHz, both at 24 bit - I can't hear it. I can crank it and of course I lose the objectivity (but it sounds good) and at low volumes I'm not hearing the voodoo that makes 96kHz so 'magical'.
    When I record in 192kHz I get a Core Audio Overload. Go figure. But seriously, am I alone here or is this level of hearing for mastering engineers supreme? What do you record at, and if it's 96kHz or more, do you just pass it on at that rate to your mastering guys?

    Hi The Black Room.
    Here's the "skinny" in high sample rates,et al...:
    1.Anyone CAN tell the difference between low and high sample rates.that is not difficult at all.The catch is that if you have source material that does NOT have frequencies above 22kHz (the limit of 44.1kHz sample rate recording) then you will absolutely not hear any difference at a higher sample rate.Why? Because there is no more information there,it is identical.
    2.You have to be VERY careful when attempting to do listening tests.The first consideration to look at,is your MONITORING equipment.If you have equipment that is NOT capable of reproducing high frequencies,and I mean frequencies above 20kHz,there is NO POINT in playing back anything above 20kHz,because the reproduction equipment will NOT play it back.This includes mixers,amplifiers,speakers,monitor routing boxes,et al.
    So,my friend,if you REALLY want to listen to differences in sample rates,you will have to make some effort in doing one of two things:
    1.Go to a professional studio that has equipment capable of reproducing high frequencies.
    OR
    2.Purchase some test equipment such as a signal frequency generator that does output frequencies ABOVE 22kHz,plus an oscilloscope that can also "see" frequencies above 22kHz.also,you will need a sound source that is KNOWN to contain more than 22kHz of info.Your Logic Pro internal oscillator will not be good enough,and forget CDs.You will need to make a fresh recording of an acoustic instrument such as piano,violin,or the like.to do this,you will NEED a microphone capable of passing through it's circuitry Freqs. above 22kHz. (Neumanns can) and also a mic preamplifier capable of passing thru above 22kHz as well.Neve preamps can do this.
    Electric guitars is a no-no,as they rarely go much above 15kHz.Acoustic guitar,maybe...the upper harmonics on an acoustic "might" show up,if they are loud enough.
    Cheers

  • Hello, can someone explain the difference between........

    The mailboxes that are "on my mac" and ".mac"
    I would like to know the difference. Will both sync to iPhone/other mac computer using mobileme (.mac)? Or do only the ".mac" mailboxes sync to all devices?
    Thanks
    Steve

    On My Mac literally means the email that is on your Mac's hard drive, while .Mac (MobileMe) is a mail service from Apple, completely separate from your Mac.
    The MobileMe service offers syncing ability of email to other enabled devices, such as an iPhone, or other Macs, when connected to the MobileMe server. Any other email is not synced to any other device, unless that service provider, such as Google Mail, offers IMAP mail service and you choose to read the same mail over and over again from the server.
    Mulder

  • Can anyone explain the difference ...

    We are encouraged to buy movies through iTunes to put on our iPods. But doing so results in: one copy on our computer under iTunes, one copy on the iPod/touch, and if we're fastidious, one copy on whatever device we use to perform routine backups. So we pay once and have THREE copies. Syncing makes sure at least two are always present. No one complains - Apple, the movie studios, the government.
    But if we buy a DVD, then rip it onto our computer and sync a copy to the iPod everyone is up in arms. But what's the difference? In both cases one purchase has been made (either through iTunes or the DVD), and two copies are generated (if you have the new Apple time capsule, maybe 6 copies are made!)
    One seems fine, the other forbidden - why? I know the legal position on DVDs, but the net result is the same, no?

    Hey!
    I would assume that any Backup/Mac/iPT version bought from iTMS would be DRM'd.That to me is the only way they would allow you to make Backups.
    Interesting the comment from Fox Studios CEO in the Keynote.....you buy the official DVD and hey,you get a Digital version for your mac/PC FREE!
    Only, not really.... cos you've just shelled out £14 for the DVD!Hahahaha you gotta hand it to 'em!
    John

Maybe you are looking for

  • Oh can I duplicate a page in a PDF file?

    How can I duplicate a page in a file? I thought I could just drag it down but that doesn't seem to work.

  • BSP / Web-Dynpro (Java / Abap)  what to use in this case ?

    Hi all, i have some questions about all this BSP/Web-Dynpro stuff. We have an application (for health care written in Visual Studio) out there at our customers. Some of these customers are using SAP as their backend system. So we've writte some backe

  • Printing in a printer connected to a PC

    I need some explanation... Umm from my mac... Is it possible to print in a printer that is connected to a PC laptop? OR is it only possible to print FROM the PC laptop if I connect the printer to my mac? :/ Please help me.

  • I want to set up security for my linksys network.  I foll...

    I want to set up security for my linksys network.  I followed the directions outlined on the linksys web site.  I get through the process, create a password (key) and I save the settings.   When I try to log on from my laptop, I am asked for a passwo

  • Need to call a repaint from another class

    I need to call a repaint from another class, but since I can't make the paint() method a static one, it will not let me access the repaint method, any ideas? thanks guys Conor