If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > SQL Random Sampler

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-26-07, 14:21
laxonator laxonator is offline
Registered User
 
Join Date: Oct 2006
Posts: 8
SQL Random Sampler

I have a column containing the days of the year and all I want to do is run a code to pick out 10% of them at random and populate another column (or sheet). I believe the below code would work but I don't even know where to put it or how to run it. If there is an easier way of doing this please someone let me know. Please help me, I know it's probably an easy thing to do. Thanks

Code:
GET
     FILE='C:\whatever.xls'.
FILTER OFF.
USE ALL.
SAMPLE 37 FROM 365.
EXECUTE.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On