How good is the SAMPLE function?

I need to get a sample set from a database. Thankfully, ORACLE in the modern versions provides the SAMPLE function which does exactly that. Now, my question is how good is this function? As in, would the SAMPLE function pass the random number certification tests? If so, how do we test that?
~SB

Hello,
The SAMPLE function lets you select from a random sample of data from the table, rather than from the entire table. It depends what option or attribute you are using with
BLOCK : attempt to perform random block sampling and possible only during full table scans or index fast full scans.
sample_percent: specify the percentage of the total row or block count to be included in the sample and value must be in the range .000001 to, < 100. This percentage indicates the probability of each row, or each cluster of rows in the case of block sampling, being selected as part of the sample. .
SEED seed_value: return the same sample from one execution to the next. The seed_value must be an integer between 0 and 4294967295.
More information and examples can be found under ORacle 11g documentation
http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_10002.htm#SQLRF01702
http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_10002.htm#i2105143
Regards

Similar Messages

  • How good is the Airport Express inbuilt Digital to Analogue converter?

    How good is the Airport Express inbuilt Digital to Analogue converter?
    I have just purchased a 2012 dual band Airport Express which has the combined optical/3.5mm analogue jack audio output.
    This is to connect to my hifi seperate amplifier, which does not have an optical input.
    This gives me a couple of options
    a) just use a standard 3.5mm jack to phono cable (and use the built in DAC in the airpor express)
    or
    b) purchase a seperate DAC to convert the optical from the Express into phono and connect that to the amplifier
    I will be sending 250-320kbps music to the airport express wirelessly.
    Will I see much/any benefit in sound quality with option B vs option A?
    I ask because option A is free (I already have the cable) and option B will be around £20-£30 depending on which DAC I were to buy (I would also need a new TOSlink optical cable).
    These are the sort of DACs I was looking at.
    Thanks, Chipstix

    How good is the Airport Express inbuilt Digital to Analogue converter?
    Please check out this stereophile article on the earlier AirPort Express. I understand that the newest version may use basically similar audio hardware.
    I will be sending 250-320kbps music to the airport express wirelessly.
    The AirPort Express Base Station (AX) works only with iTunes v4.6+ and is limited to music files that iTunes can read; ie, 16-bit data only. (An exception is you can use a third-party product like Rogue Amoeba's AirFoil to stream other non-iTunes sources.) These data, though, can be in any file format that iTunes recognizes, from lossy MP3s at the low-quality end of the spectrum to Apple Lossless and lossless AIF or WAV files at the high end. It is also important to note that the AX functions only at a 44.1kHz sample rate. When you play 32kHz or 48kHz data, iTunes sample-rate-converts the data in real time before sending it to the AX.
    iTunes uses a QuickTime CODEC to convert audio files to Apple Lossless, and then, uses AirPlay to send them to the AX. In turn, the AX uses built-in software that converts the Apple Lossless to an Encoded Digital Audio format. From there, digital audio is sent to a optical transceiver to convert the electrical signal to an optical one before sending it to the innermost part of the audio port. As you already know for analog, the AX has a built-in DAC to convert the Encoded Digital Audio to Analog which is sent to the same audio port.
    One operational glitch is the fact that, as the AX doesn't have a local clock circuit, when the incoming data is interrupted, as it is when you change songs in iTunes, there is no longer a digital output to feed the DAC, which loses lock as a result. Using an external DAC, which may offer better audio performance, may have issues with this glitch. Some DACs are more sensitive than others.

  • How to use the divide() function in bpel

    Hi All,
    How to use the divide() function in bpel.
    pls can u give the one sample example

    2 div 4
    Eg;
    <assign name="Assign_1">
    <copy>
    <from expression="2 div 4"/>
    <to variable="outputVariable" part="payload"
    query="/client:testProcessResponse/client:result"/>
    </copy>
    </assign>
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How good is the audio jack?

    In the past I've connected my iPod to my stereo using a mini to RCA adapter. It gave me a weak signal (even with the volume turned all the way up). How good is the Mac Mini's audio when plugging into a stereo? Thanks.

    Optical out to a DAC supports 24-bit (and even 32-bit on the new mini, whatever that is for, I guess DSP). It shares the analogue headphone jack out, but when you put a mini Toslink in it, you get the light out.
    You can also use USB out or use a USB/coax converter (which I am messing around with). Others have told me that the USB/coax converter is better because it externally clocks the signal, but I cannot hear any difference between that and the optical out. Optical goes up to 96kHz sampling frequency. To get higher, you need the USB/coax adapter.
    The NOVA that I have, linked to above, supports 16-bit output from USB and 24-bit output from optical toslink and coax. I think the USB limitation might be imposed by the software in the DAC, however, not at the mac end.

  • How to block the 'save' function when the required fields are not filled?

    Hello, Everyone
    I am new for this scripting. My question is:
    How to block the 'save' function when the required fields are not filled?
    I designed a PDF file with some required fields and I do not want the user to save the document until all required fields are filled. My idea is to write some scripts in Willsave method like:
    if (this.getField("Family Name").value == ""){
    app.alert('You should fill the Family Name field firstly!');
    But I do not think it works as finally the document is saved after all.
    Please help me on that!
    So much thanks.

    Dear Randybearwang,
    I am a Rocky myself and I know how though it is to establish some good codes. Since I created some forms with validation options myself I might have a code for you. The code also creates an alert box (Yes/no option) if the user chooses yes the form will be validatet, if he chooses "no" the alert window will be closed.If  everything is filled out correctly the form will be saved otherwise the textbox will be higlighted and gets focus.
    If you need further assistance , please let me know
    Have fun with the code.
    P.s I don´t know how to upload the "PDF" document. I wrote you an email, please get back to me if you still need the file.

  • How to remove the sort function on the drill down and then save

    how to remove the sort function on the drill down and then save in the  change local view of the Query
    Is it possible to change the porperties of any characteristic in the local view and then save?
    If so please post the answer.

    I do not think that option is possible.
    Regards,
    Venkata Boga.

  • Does anyone know how to use the bcc functionality for apple mail while accessing it on the cloud from my PC?

    I am currently away from my MAC and want to send an email through apple mail with the bcc functionality.  I am using the cloud to get to my mail, however, I can't figure out how to use the BCC functionality, please help.  Thanks!

    Open your mail,
    lower left corner click on settings,
    go to composing and check BCC, save and your done

  • How to Use the language function for assignment and validation

    Hi All,
    If anyone can explain me in details with example ,how to use the language function for assignments and validations?
    Thanks
    Arnab

    Hi Arnab,
    The expression is checked only for the current MDM session.
    If u login with the ABC language it will always show the ABC language no matter how many times u execute it.
    Try connecting to the DM with the XYZ language.
    It should go to the if part rather than else.
    Hope it helps.
    Thanks,
    Minaz

  • How to use the CMS functionality in Sun Portal Server 7.2

    Hi All,
    How to use the CMS functionality using the ccd.war(Portlet) which is available in the library as i could add it to my channel but not able to show the functionality as it is showing the error msg "You are currently not logged in. Please login." should I create userid and there respective roles inorder to use the CMS functionality.
    Has any one used this as I could this in glass fish server.
    Any Input is appreciated.
    Thanks & regards
    Srikanth

    Have a look at the "*Roles*" section of the portal server 7.2 content management system guide
    http://docs.sun.com/source/820-4275/index.html . You can also look at [project mirage|https://mirage.dev.java.net] for some screencasts
    Alternatively,
    1. ccd.war has 3 portlets in it:
    (a) custom content definition portlet
    (b) custom content portlet
    (c) workflow portlet
    2. Inorder to work with these portlets, user needs to be in anyone of the below roles:
    (a)Consumer (b) Editor (c) Approver (d) Administrator (e) Submitter (f) Contributor (g) Publisher
    3. By default ccd.war gets deployed using a default roles file (/var/opt/SUNWportal/tmp/ccd.roles.properties)
    Note: In windows, you may not find this file
    4. Access the portlets as a user in any of the role mentioned in the ccd.roles.properties
    (OR)
    you can use a new roles file which has mapping to your custom roles. For this , undeploy existing ccd.war and deploy again with a new roles.properties file
    Hope this helps!

  • How to get the current function name in java

    How to get the current function name in java.
    In c it is done as
    printf("%s",__func__);
    Thanx in advance.

    j0o wrote:
    System.out.println("Class Name: " + new Exception().getStackTrace()[0].getClassName() +
    "/n Method Name : " + new Exception().getStackTrace()[0].getMethodName() +
    "/n Line number : " + new Exception().getStackTrace()[0].getLineNumber());
    I pointed the OP at this approach yesterday in one of his multi-posts. I still have not been given my Dukes!

  • How to install the Sample Apps in Hyperion Financial Management 11.1.2.2?

    Hi,
    Could please anybody tell me how to install the Sample Applications in Hyperion Financial Management 11.1.2.2?
    The following is written in the Administration guide:
    If you did not install the sample files, you can obtain them by reinstalling Financial Management
    and selecting the Sample Applications component.
    I cannot find the “Sample Applications component” among components during installation process.
    There are only “Financial Management ADM driver”, “Financial Management Web Application” and “Financial Management: services”.
    Hope this helps,
    Thank you,
    Vadim

    After you install the sample application, all of the application extracts can be found under the below location.
    Oracle_Home\Middleware\EPMSystem11R1\products\FinancialManagement\Sample Apps and Starter Kits\Sample Apps

  • How to disable the purchase function?

    Anyone know how to disable the purchase function from the ipad2? How to disable and empty the payment credit card inform? If not, is it secure?

    None for payment
    After establishing the Credit Card account (i.e. after you have made purchases), you can remove the credit card information by editing your payment info, choosing "None".

  • How to use the set functions effectively in webi ,please let me know with detail

    how to use the set functions effectively in webi ,please let me know with detail

    Hi,
    we use use set functions on heirarchies with aggregate functions mostly .
    If you include member_set, Min returns the minimum value of the aggregated data for all members in the member set.
    Member_set can include multiple sets separated by semicolons (;).
    The list of member sets must be enclosed in {}.
    If the member set expression does not specify a precise member or node, the hierarchy referenced must be present in the table, then the member set expression references the current member in the hierarchy in the table. If the hierarchy is not in the table, the function returns the message #MULTIVALUE.
    Eg .
    1)     Ancestor
    =Sum([YTD] ; {Ancestor([Test Hierarchy];2)})
    2)     IsLeaf
    =[Test Hierarchy].IsLeaf
    You can use this function when you want to show your Measure only at lower level .
    3)     .Depth
    =[Test Hierarchy].Depth
    This is also function used with hierarchy to find Level of Members .
    Follow this link for PDF reference .
    Page 147
    https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&ved=0CDIQFjAB&url=https%3A%2F%2Fhelp.sap.com%2Fbusinessobject%2Fproduct_guides%2Fboexir4%2Fen%2Fxi4sp5_ffc_en.pdf&ei=nBAUU-iUM4WWrAeMuoCoDg&usg=AFQjCNHakXsEjd_yUk2y3lVdibf3PXpEOA&bvm=bv.61965928,d.bmk
    search on SCN this question was discussed before also one those links .
    http://scn.sap.com/thread/3183380
    Hope this will help you .

  • How good is the 3G arial on the iPad?

    How good is the 3G arial on the iPad? For example is it better than the iPhone 4 one?

    I'm using the IGP on 2 networked pc's and to be honest have had no problems with it. Runs all my games at ease inc the network games, (some are very power hungry too). Ok not as fast as the latest all singing cards but costs you nothing. You can always stick another card in if you get problems. One thing though, gotta make sure you make use of the Dual channel memory, this really speeds things up with the IGP in use.

  • How good is the Stock Cooler

    Hi ppl.
    As u prob know I am building a PC for my friend. It will be a AMD 64 3200
    My question is if I bought the retails then how good is the cooler? Also will it come with a Thermal Pad  
    If I bought the retail could I scrap off the Pad and used Thermal Paste Supplied with my Zalman 7000Al/Cu as this isnt silver based. Would this boid the warrenty.
    Or I would buy the OEM version and get a Thermaltake Silent Boost along with Artic Silver 3.  
    Wot would u guys do because u get a warrenty with the one and not with the other. I think the Silent Boost would be a much better option for cooling.
    My friend will be doin now otherclocking but wants a stable cool running system without being very loud (so no TORNADOS lol)  
    Cheers
    SAspaz  

    Quote
    Originally posted by RLiu818
    Quote
    Originally posted by skank
    The stock cooling is very adequate if you are not overclocking, enable cool and quiet and it will be pretty silent when not under load as well.  The thermal pad it comes with is fine too.  I used the stock cooler before I got my new mobo and HSF, kept my A64 at 38 deg idle, 43 deg under load.  Perfectly fine temps.
    what does cool n quiet do exactly?
    i enabled it in my BIOS and i dont notice any difference,
    i have a SLK948U with a Panaflo L 80mm
    You need to have your fan plugged into the motherboard CPU fan header for it to reduce fan speed, I guess you don't with that fan as it draws too much current.
    Oh and even if you are going to Overclock you will find the stock cooler is actually fine for mild overclocks of a couple of hundred mhz, I tried it with my Clawhammer and got it to 2200 mhz with 41 deg idle and 48 deg under load, temps that are fine in my opinion.

Maybe you are looking for

  • My Finders not working and my Desktop items are gone on my MacBook Pro!?

    Basically yesterday I had a debugger state: panic or something like that and i couldnt get passed the apple logo on load up before this whole bunch of numbers and letters come up and my whole macbook just blew up pretty much. I went into recovery hd

  • DME - Multiple Vendors in single DME file not appearing

    Hi there, I have created a DME structure  and created PMW format , as required by bank, to generate DME text file. When i run the APP (F110) for single vendor ,,  one DME text file is generating correctly, Now problem is when i run F110 for    multip

  • Debit Memo Request with Reference to Service Order

    Hi Team, I need to create the following business process Service Notification -> Service Order -> Debit Memo Request -> Debit Memo. I'm able to create the notification and the service order. However while creating the debit memo request with referenc

  • How to override methods in JDeveloper simply!????

    Hi Having just used Eclipse for the 1st time, I am now very frustrated by JDeveloper!!! In Eclipse, if I create a class that extends another, I can simply right click and import methods from the super class to override! This is great and I can't do t

  • Vendor Update log capturing

    Hi all i pulled some vendors from ECC into SRM one month back and i wanted to know  who and all modified my vendors data in SRM by maintain business partner menu. i want a list who changed /data changed in the vendors in SRM . i believe there is no s