What is the defference between select single * from and select * from Where

What is the defference between select single * from and select * from Where
which is prefferable and best one.

Hai,
*Difference Between Select Single and Select * from table UpTo One Rows:*
According to SAP Performance course the SELECT UP TO 1 ROWS is faster than SELECT SINGLE because you are not using all the primary key fields.
select single is a construct designed to read database records with primary key. In the absence of the primary key, it might end up doing a sequential search, whereas the select up to 1 rows may assume that there is no primary key supplied and will try to find most suitable index.
The best way to find out is through sql trace or runtime analysis.
Use "select up to 1 rows" only if you are sure that all the records returned will have the same value for the field(s) you are interested in. If not, you will be reading only the first record which matches the criteria, but may be the second or the third record has the value you are looking for.
The System test result showed that the variant Single * takes less time than Up to 1 rows as there is an additional level for COUNT STOP KEY for SELECT ENDSELECT UP TO 1 ROWS.
The 'SELECT SINGLE' statement selects the first row in the database that it finds that fulfils the 'WHERE' clause If this results in multiple records then only the first one will be returned and therefore may not be unique.
Mainly:  to read data from
The 'SELECT .... UP TO 1 ROWS' statement is subtly different. The database selects all of the relevant records that are defined by the WHERE clause, applies any aggregate, ordering or grouping functions to them and then returns the first record of the result set.

Similar Messages

  • What`s the defferences between DirectSoundCapture and JavaSound audio Captu

    I use JMF 2.1.1 API and get two audio devices in my pc. One audio device named DirectSoundCapture, the other named JavaSound audio Capture. For every audio devices, it has many audio formats. I want to study to record through MIC, But I don`t know which audio device listed above was MIC. and I want to know what`s the defferences between the two audio device. I am new to JMF. Thx. Bob

    I would imagine a lot of difference. First of all, DirectSound could be accelerated in hardware and would offer more features, better quality, etc. I'm not sure if JavaSound can use hardware the same way. I would choose to use DirectSound if possible.

  • What is the differenec between 'sap list viewer' and 'abap list viewer'

    hi
    what is the differenec between 'sap list viewer' and 'abap list viewer'

    Hi,
    There is no difference between them.SAP List Viewer (ALV) is the new name of the ABAP List Viewer (ALV).
    The SAP List Viewer unifies and simplifies the use of lists in the R/3 System. A uniform user interface and list format is available for all lists. This prevents redundant functions.
    The SAP List Viewer can be used to view both single-level lists and multilevel sequential lists.
    Single-level lists contain any number of lines that have no hierarchical relationship to each other.
    Multilevel sequential lists consist of any number of lines that have two hierarchical levels. Multilevel lists have header rows and item rows; the item rows are subordinate to the header rows. For each header row there can be any number of subordinate item rows.
    You can view subtotals and totals rows in both single-level lists and multilevel sequential lists
    From End User Point it is SAP LIST viewer , From Developer Point of View it is ALV .
    Check the Below Link
    http://help.sap.com/saphelp_nw04/helpdata/en/66/bc7aab43c211d182b30000e829fbfe/frameset.htm
    Regards,
    Satish

  • What is the difference between qued delta  update and serialized delta upda

    what is the difference between qued delta  update and serialized delta update?

    Hi Ks Reddy,
    Queued Delta:
    In case of Queued delta LUW's are posted to Extractor Queue (LBWQ), by scheduling the V3 job we move the documents from Extractor queue to Delta Queue(i.e. RSA7) and we extract the LUW's from Delta Queue to BW side by running Delta Loads. Generally we prefer Queued Delta as it maintain the Extractor Log which us to handle the LUW's which are missed.
    Direct Delta:
    In case of Direct Delta LUW's are directly posted to Delta Queue(i.e. RSA7) and we extract the LUW's from Delta Queue to BW side by running Delta Loads. If we use Direct Delta it degrades the OLTP system performance because when LUW's are directly posted to Delta Queue (RSA7) the application is kept waiting untill all the enhancement code is executed.
    Non-serialized V3 Update:With this update mode, the extraction data for the application considered is written as before into the update tables with the help of a V3 update module. They are kept there as long as the data is selected through an updating collective run and are processed. However, in contrast to the current default settings (serialized V3 update), the data in the updating collective run are thereby read without regard to sequence from the update tables and are transferred to the BW delta queue.
    https://websmp102.sap-ag.de/~sapdownload/011000358700007535452002E/HOWTOCREATEGENERICDELTA.PDF (need id)
    http://help.sap.com/saphelp_bw33/helpdata/en/3f/548c9ec754ee4d90188a4f108e0121/frameset.htm
    Business Intelligence Performance Tuning [original link is broken]
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cccad390-0201-0010-5093-fd9ec8157802
    How to load data
    /people/sap.user72/blog/2004/12/16/logistic-cockpit-delta-mechanism--episode-one-v3-update-the-145serializer146
    /people/sap.user72/blog/2004/12/23/logistic-cockpit-delta-mechanism--episode-two-v3-update-when-some-problems-can-occur
    /people/sap.user72/blog/2005/01/19/logistic-cockpit-delta-mechanism--episode-three-the-new-update-methods
    Delta Types and methods;�
    Hope this helps.
    ****Assign Points if Helpful*****
    Regards,
    Ravikanth

  • What is the diffrence between OMB plus command and OMB command

    what is the diffrence between OMB plus command and OMB command?
    are they both TCL command?

    Hi Alena,
    Welcome to SDN.
    Check this
    EXIT in Loops and Modularization Units
    Basic form
    EXIT.
    Effect
    Within a loop structure:
    Terminates looop processing (DO, WHILE, LOOP, SELECT).
    Within subroutines and other modularization units (but not in a loop structure):
    Leaves the subroutine or modularization unit (FORM, MODULE, FUNCTION, TOP-OF-PAGE, END-OF-PAGE).
    Outside loop structures and modularization units (report processing):
    Terminates report processing and triggers list display.
    But not sure about
    atexit() .. ,may use in Object Oriented Programming.
    (C++)
    "At exit-command in module pool."
    Mohinder
    Edited by: Mohinder Singh Chauhan on Aug 1, 2008 8:06 AM

  • What is the difference between Wine, Wineskin, Winery and Wine Bottler, and how do I get Wine to *ACTUALLY* work in Mountain Lion?

    Ok, so this is my first post here and I am admittedly terrible at forums. Someone might say, "This was addressed in the ___________ thread by __________! Go read it!" --- that may be so but I've spent enough hours trying to google this problem into submission to no avail based on what is apparently working for others, so I would like a chance to get specific answers to specific questions that aren't from Mar 2011, etc.
    So first of all, I'm confused by all the various Wine programs/apps/whatevers. I've seen Wine, Wineskin, Winery, Wine Bottler, and at this point I wouldn't be surprised if there are even more than that. What's the difference between all of these and how do they work with one another? What do I actually need to get windows programs working?
    All of my google searches have led me to people giving out fish, but no one giving out fishing lessons. I'm not a pro at mac and windows and all that, but I'm a fairly bright individual who gets VERY frustrated, very quickly, when I don't understand the why and how of something I'm attempting.
    I've also found "answers" where the person attempting to help starts off helpful enough, but degrades into the most archaic of techno-babble after about 5-6 sentences. On the other hand, I've watched tutorials on youtube where the poster decides to skip (apparently crucial) sections of the tutorial, and mutters such gems as: "... you might wanna have to run Wine first before you can do anything, cuz I think it has to configure it and set up a bunch of stuff" 
    O.o
    A happy medium between techno-babble and the most basic of explanations would be ideal for me, and I'd imagine for others as well.
    Here is a summarized history of my relationship with Wine:
    Diablo II - I downloaded this awesome thing which ended up being... uh... I guess Diablo II in a Wineskin "wrapper". I'm not sure, all I know is that it's a D2 icon, and if I go to 'show package contents', it's got C drive, Program Files, et cetera inside of it. I double click it, it launches D2, and it works like a dream. <3
    'Vanilla Install' - That's what I heard someone call it. It was the command/terminal style install using xquartz and xcode found at http://www.davidbaumgold.com/tutorials/wine-mac/. I followed every instruction to the letter, and got all the way to '$ sudo port install wine', at which point it started going smoothly, free from the possible error he described regarding the installation of xcode, and then just failed after I left the room to use the restroom and came back. Please don't ask me to repeat what the error was, because honestly, after reading more things on the interwebs, I'm confused as to why it's even necessary to go through all of that, so I'd rather not try that route again anyways, rendering the error message quite possibly irrelevant.
    Wine + Wine Bottler - So I decided to try to seek out an easier method, as I know that one must exist that doesn't involve command lines. I found a video tutorial at http://www.youtube.com/watch?v=m0BBkISOcEA, and oh man would it be great if that method had actually worked. Again, I followed all instructions provided to procure my free fish, and at the point in the video where he declares that "xquarts or x11 will open" - it doesn't open. Nothing opens. I was trying to install Star Sonata, btw.
    So here I am, thoroughly worn out, frustrated at all the random places Wine is installed on my mac now, and just want someone to explain it all, from top down, without getting toooooooo technical on me. I know that might be asking a lot...

    ## I know that the poster has already found a solution, but the following is a possible answer for others that have similar issues.
    For Winebottler, just go to their website and download it. Run the program. Choose .wine as your prefix (best choice) or whatever suits you best. You'll need a functional X11. If you can't use the one that comes with your mac, download the latest one from the website.
    If your issue is one with Winebottler's Wine not running correctly due to X11, then you have a pretty ugly problem, although a simple upgrade is the best solution (Upgrade XQuartz.app).
    http://www.davidbaumgold.com/tutorials/wine-mac/#part-1
    The above website is the easiest way to get REAL wine on your computer. First of all, Wineskin WInery, etc. are NOT WINE. They are 3rd party apps that may use Wine or may have originally part of Wine, but they are no longer up to date with Wine. WineBottler is currently up to date with the stable releases of Wine (but not the maintenence releases).
    For the website tutorial and to run Wine on your mac without using a thrid party app, you will need to know a few things.
    First, you will need to know basic control of the command line. That means, sudo (you must know the administrator password to your computer), and the forms of cd (change directory).
    Second, you will need Xcode. Download 4.2 (stable) or whatever other versions you want, but beware: It is over 1 GB, and you will need time for it to work.
    Third, you will need to get MacPorts and configure it. The tutorial should have this data.
    When you download wine (use sudo port install wine-devel for the latest development release of wine), it will first download a lot of dependencies. This will take a while. After that, it will download wine itself.
    After obtaining wine, to run a program, open the terminal.app window.
    cd desktop/XYZ/ZYZ\ WRQ
    The above will first enter the desktop, then folder XYZ, then folder ZYZ WRQ. From here,
    wine th11e.exe
    Or whatever executable you are trying to open. (Using Subterranean Animism as my example).
    It should, in theory, run the program. Watch the terminal for errors. If there is an X11 problem, then it's not wine acting up. If the app crashes or has other issues, check the Wine Application Database to see if your app is compatible with wine.
    If you have any further questions or other things, feel free to reply; I may or may not get back to you, but there's a good chance that someone will come in eventually. Otherwise, the Wine Wiki should have some information.

  • What is the difference between Safari 6.0 and 6.0.2?

    What is the difference between Safari 6.0 and 6.0.2?

    here is a copy of the text from Software Update
    Safari 6.0.2 is recommended for all users running OS X Lion v10.7.5
    and includes security updates.
    For more information, please visit: http://support.apple.com/kb/HT1222

  • What is the difference between Component,Server,Tool and Software?

    HI,
    What is the difference between Component,Server,Tool and Software?
    SHABEER

    Hi
    Every individual part that constitutes in making an SAP System is called a COMPONENT.e.g DB instance, Java CI, ABAP CI etc
    SERVER is the actual composition of different components of SAP.e.g. a database alongwith can instance would constitue an application server.
    TOOLS are the products from different organisations (SAP or Non SAP) that can be used for different functionalities like keeping a check on jobs, monitoring of the system , e.g Tivoli
    SOFTWARES are a kind of tool that help you to bring up results from the system in a user acceptable format. These are utilities that act as interfaces between the user and the system.
    regards
    Chen

  • What is the different between payment methods Wire and EFT

    Hi All
    can anybody tell me What is the different between payment methods Wire and EFT ?
    Regards ;

    WIRE:
    Wire is transfer of amount due directly to the supplier's bank it is an electronic transfer of funds
    This mode of payment is used for international suppliers.
    It can be paid in foreign currency or USD.
    Wire payments are same day payments.
    EFT:
    EFT ensures funds transfer from one bank account to another using electronic links.
    Can be used to make payments into domestic banks (within US) in USD only.
    It is faster than check payments.
    Hope this helps.

  • *what is the difference between web flow engine and sap business workflow?*

    Hi,
    Can any please guide me by telling what is the difference between web flow engine and sap business workflow?

    >
    Arghadip Kar wrote:
    > Check this link
    >
    > http://www.workflowing.com/id35.htm#1__what_is_the_difference_between
    ... which is exactly where the FAQ item came from!

  • What is the difference between Ps CC 2014 and Ps CC?

    What is the difference between Ps CC 2014 and Ps CC? Ps CC seems to work well, with OnOne Suite 9, but Ps CC 2014 won't load OnOne Suite 9, because it says it isn't properly signed. Any help with these issues? Thanks.

    Get a suitable version from OnOne and install it.
    Mylenium

  • What is the difference between quicktime 7 pro and quicktime x

    What is the difference between quicktime 7 pro and quicktime x

    QuickTime Pro 7 is a very useful video tool.  You can make simple edits to video files, cut-n-paste multiple video files together into one, save the video or transcode it into a variety of common video formats, use it to analyze a video to see which codec it's in, and even play videos in professional settings.
    QuickTime X is completely useless.
    With QT X and Final Cut X, Apple has completely abandoned the professional video market.  Both of these software packages are dumbed down for Windows users, and are intentionally designed to anger and alienate the professional user that has come to rely on Apple software for their video needs over the last 20 years.  Final Cut X is really just iMoviePro. If I wanted iMovie, I'd use iMovie, but I need a professional video app, not a kiddie video app.  Therefore I can not use FCPX.
    I have work to do, under strict deadlines and budget limits.  FCPX and QTX actively prevent me from getting any work done at all.  Apple has left me no choice.  I have to go back to Adobe Premiere or Avid Media Composer since these are still professional applications.  Final Cut and QuickTime have been turned into kiddie-style iMovie-like apps that have no functionality whatsoever.
    Apple is heading in a very disappointing direction.  They have a history of cutting off legacy items without notice.  They have decided that optical media is over and everything is online.  But my clients don't have that luxury.  I still have to deliver products on DVD and increasingly Blu-Ray.  Apple's obstinate refusal to support Blu-Ray has cost me clients, and I've had to resort to third-party software and hardware.
    Apple has abandoned the professional video market.

  • What is the difference between organisation payment method and Assignment payment method?

    What is the difference between organisation payment method and Assignment payment method?
    As i am a new bie, i am curious to know this though it might sound a silly question.
    Thank you,
    Kuton

    You can create an Organization payment method of any Payment type(Cash, Check, BACS, NACHA etc) under the same country.
    All these will be valid payment methods on the payroll description form.
    And you can even attach these to a person.
    In which case you will have a Base currency (say USD) and payment currency (say GBP).
    These cases are not normal and only used by people who use a single BG for paying employees in 3-4 countries.
    So, unless you need to pay in different currencies, do not use it.
    Cheers,
    Vignesh

  • What is the difference between lock mode E and X.

    what is the difference between lock mode E and X.

    Hi
    The lock mode controls whether several users can access data records at the same time. The lock mode can be assigned separately for each table in the lock object. When the lock is set, the corresponding lock entry is stored in the lock table of the system for each table
    Lock modes:
    S (Shared):
        Several users (transactions) can access locked data at the same time in display mode. A request for another shared lock is accepted, even if it comes from another user. An exclusive lock set on an object that already has a shared lock will be rejected.
    E (Exclusive).
    An exclusive lock protects the locked object against all types of locks from other transactions. Only the same lock owner can reset the lock (accumulate).
    X (eXclusive non-cumulative):
      Exclusive locks can be requested several times from the same transaction and are processed successively. In contrast, exclusive but not cumulative locks can be called only once from the same transaction. Each further lock request will be rejected.
    O (Optimistic):
      Optimistic locks initially behave like shared locks and can be converted into exclusive locks.
    If it is helpful rewards points.
    Regards
    Pratap.M

  • What is the difference between base method 0002 and 0011

    Hi,
    could you please explain what is the difference between base method 0002 and 0011?
    0002: Ordinary: no automatic depreciation
    0011: Ordinary: percentage from useful life
    if we assing base method: 0002 in dep. key? what will happen in future?
    if we assing base method: 0011 in dep. key? what will happen in future?
    please clarify my doubt.?
    Thanks
    Indu

    Let me clear, I have bought WinSL 8.1 SNGL OLP NL Acdmc Legalization GetGenuine (part
    No - 4HR-00400). It means my machine has legal OS and I can use it and I dont need to buy WinPro
    8.1 SNGL Upgrd OLP NL Acdmc (Part no. - FQC-08173).
    is it?
    I believe that is correct. There should be no reason to buy both licenses for one machine. You should verify this with your reseller or MS.
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

Maybe you are looking for