<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: sampling with TOS? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/sampling-with-TOS/m-p/2325138#M94766</link>
    <description>&lt;P&gt;thanks for your answers.&lt;BR /&gt;yes i´m a java programer. not the best but i can implement a random sampling. &lt;BR /&gt;i asked because i want to evaluate the function from tos that are given by the components.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Feb 2010 09:48:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-02-04T09:48:39Z</dc:date>
    <item>
      <title>sampling with TOS?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/sampling-with-TOS/m-p/2325132#M94760</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;Are there any other methods to create a sample apart from tSampleRow?&lt;BR /&gt;I want a random sample or better a stratified sample.&lt;BR /&gt;if there is only tSampleRow please give me the reply that it isn´t possible to do it on an easy way.&lt;BR /&gt;thanks and best regards&lt;BR /&gt;matte&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 13:34:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/sampling-with-TOS/m-p/2325132#M94760</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: sampling with TOS?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/sampling-with-TOS/m-p/2325133#M94761</link>
      <description>&lt;P&gt;Hello&lt;/P&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I want a random sample or better a stratified sample.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;&lt;BR /&gt;Would you like to get some randow rows? Can you give us an example?&lt;BR /&gt;Best regards&lt;BR /&gt; shong&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2010 14:33:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/sampling-with-TOS/m-p/2325133#M94761</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-01T14:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: sampling with TOS?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/sampling-with-TOS/m-p/2325134#M94762</link>
      <description>&lt;P&gt;for example i have 1.000.000 Customers with different attributes and to optimize the processing time i want to get only 30 % of the whole Data. i dont want the first 300.000 customers. i want any of the customers (random).&lt;BR /&gt;and with stratified sample mean for example:&lt;BR /&gt;i have 1.000.000 customers too but i want a random sample that contains 40 % men and 60 % women.&lt;BR /&gt;like this:&lt;BR /&gt;Database:&lt;BR /&gt;id Name Gender ...&lt;BR /&gt;1 a m&lt;BR /&gt;2 b m &lt;BR /&gt;3 c f&lt;BR /&gt;4 d m&lt;BR /&gt;5 e f&lt;BR /&gt;6 f f&lt;BR /&gt;7 g f &lt;BR /&gt;8 h m&lt;BR /&gt;9 i m&lt;BR /&gt;10 j f&lt;BR /&gt;11 k m&lt;BR /&gt;12 l m &lt;BR /&gt;13 m f&lt;BR /&gt;14 n m&lt;BR /&gt;15 o f&lt;BR /&gt;16 p f&lt;BR /&gt;17 q f &lt;BR /&gt;18 r m&lt;BR /&gt;19 s m&lt;BR /&gt;20 t f&lt;BR /&gt;&lt;BR /&gt;Sample 50 % with 40 % men and 60 %&lt;BR /&gt;id Name Gender ...&lt;BR /&gt;2 b m &lt;BR /&gt;3 c f&lt;BR /&gt;7 g f &lt;BR /&gt;8 h m&lt;BR /&gt;10 j f&lt;BR /&gt;12 l m &lt;BR /&gt;15 o f&lt;BR /&gt;17 q f &lt;BR /&gt;18 r m&lt;BR /&gt;20 t f&lt;BR /&gt;i hope this is more understanable&lt;BR /&gt;&lt;BR /&gt;best regards&lt;BR /&gt;matte&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2010 14:51:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/sampling-with-TOS/m-p/2325134#M94762</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-01T14:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: sampling with TOS?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/sampling-with-TOS/m-p/2325135#M94763</link>
      <description>&lt;P&gt;i think there dont't have a componet can do this, i think you can use first get the ids of m and f&lt;BR /&gt;like &lt;BR /&gt;M's ID in DB&lt;BR /&gt;id &lt;BR /&gt;1 &lt;BR /&gt;2 &lt;BR /&gt;4 &lt;BR /&gt;8 &lt;BR /&gt;9 &lt;BR /&gt;11 &lt;BR /&gt;12 &lt;BR /&gt;14 &lt;BR /&gt;18 &lt;BR /&gt;19 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;F's ID in DB&lt;BR /&gt;id &lt;BR /&gt;3 &lt;BR /&gt;5 &lt;BR /&gt;6 &lt;BR /&gt;7 &lt;BR /&gt;10 &lt;BR /&gt;13 &lt;BR /&gt;15 &lt;BR /&gt;16 &lt;BR /&gt;17 &lt;BR /&gt;20 &lt;BR /&gt;and difine a java method, use it to get random ids&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2010 16:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/sampling-with-TOS/m-p/2325135#M94763</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-01T16:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: sampling with TOS?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/sampling-with-TOS/m-p/2325136#M94764</link>
      <description>&lt;P&gt;Hello matte&lt;BR /&gt;As ylp_1 said, it need to define a Java method in a routine to get the random ids as your required, and then call this routine and get some random ids before quering data from table. Are you a Java programmer? If not, I can create a demo for you later.&lt;BR /&gt;Best regards&lt;BR /&gt; shong&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2010 10:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/sampling-with-TOS/m-p/2325136#M94764</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-02T10:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: sampling with TOS?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/sampling-with-TOS/m-p/2325137#M94765</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;TABLE border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;Hi!&lt;BR /&gt;Are there any other methods to create a sample apart from tSampleRow?&lt;BR /&gt;I want a random sample or better a stratified sample.&lt;BR /&gt;if there is only tSampleRow please give me the reply that it isn´t possible to do it on an easy way.&lt;BR /&gt;thanks and best regards&lt;BR /&gt;matte&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;If you are using a sql db as source, you can specify your select as &lt;BR /&gt;select * from mytable where rand() &amp;lt; 0.3&lt;BR /&gt;to fetch an approximate sample 30% of rows&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2010 15:32:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/sampling-with-TOS/m-p/2325137#M94765</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-03T15:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: sampling with TOS?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/sampling-with-TOS/m-p/2325138#M94766</link>
      <description>&lt;P&gt;thanks for your answers.&lt;BR /&gt;yes i´m a java programer. not the best but i can implement a random sampling. &lt;BR /&gt;i asked because i want to evaluate the function from tos that are given by the components.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2010 09:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/sampling-with-TOS/m-p/2325138#M94766</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-04T09:48:39Z</dc:date>
    </item>
  </channel>
</rss>

