<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Dummy data without dummy tables &#8211; just a little SQL trick with the TABLE operator</title>
	<atom:link href="http://technology.amis.nl/blog/1413/dummy-data-without-dummy-tables-just-a-little-sql-trick-with-the-table-operator/feed" rel="self" type="application/rss+xml" />
	<link>http://technology.amis.nl/blog/1413/dummy-data-without-dummy-tables-just-a-little-sql-trick-with-the-table-operator</link>
	<description>Weblog for the AMIS Technology corner</description>
	<lastBuildDate>Fri, 10 Feb 2012 16:47:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Rumesh</title>
		<link>http://technology.amis.nl/blog/1413/dummy-data-without-dummy-tables-just-a-little-sql-trick-with-the-table-operator/comment-page-1#comment-265112</link>
		<dc:creator>Rumesh</dc:creator>
		<pubDate>Wed, 17 Oct 2007 10:00:48 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1413#comment-265112</guid>
		<description>Is this possible with SQL2005. I tried this but it did not work.. 

I have a small problem. I need to create a view to generate a report. The view has one column called month. The values for this column do not come from any database table. It is coming from the report period (ex:- 01/01/2007 to 31/01/2007) - here month is january. If it is more than one month the values for the other fields must be properly distributed. That is there will be 3 months entries in the case of three months. How can i do this?</description>
		<content:encoded><![CDATA[<p>Is this possible with SQL2005. I tried this but it did not work.. </p>
<p>I have a small problem. I need to create a view to generate a report. The view has one column called month. The values for this column do not come from any database table. It is coming from the report period (ex:- 01/01/2007 to 31/01/2007) &#8211; here month is january. If it is more than one month the values for the other fields must be properly distributed. That is there will be 3 months entries in the case of three months. How can i do this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chirag</title>
		<link>http://technology.amis.nl/blog/1413/dummy-data-without-dummy-tables-just-a-little-sql-trick-with-the-table-operator/comment-page-1#comment-167361</link>
		<dc:creator>chirag</dc:creator>
		<pubDate>Thu, 07 Dec 2006 16:44:14 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1413#comment-167361</guid>
		<description>How can i do same thing in MS-SQL 2000
Please give me anser ASAP.

I can not able to execute 
select * from   table ( num_tbl(1,2,3,4,5,6) ) in MS-SQL
Please tell me what is correct syntax in MS-SQL ?

Thankx in Advance</description>
		<content:encoded><![CDATA[<p>How can i do same thing in MS-SQL 2000<br />
Please give me anser ASAP.</p>
<p>I can not able to execute<br />
select * from   table ( num_tbl(1,2,3,4,5,6) ) in MS-SQL<br />
Please tell me what is correct syntax in MS-SQL ?</p>
<p>Thankx in Advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Janusz Perek</title>
		<link>http://technology.amis.nl/blog/1413/dummy-data-without-dummy-tables-just-a-little-sql-trick-with-the-table-operator/comment-page-1#comment-163623</link>
		<dc:creator>Janusz Perek</dc:creator>
		<pubDate>Thu, 30 Nov 2006 17:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1413#comment-163623</guid>
		<description>Because there no condition after connect by. SQL&gt; select rn from ( 2 select rownum rn 3 from dual 4 connect by rownum select rn from ( 2 select level rn 3 from dual 4 connect by level </description>
		<content:encoded><![CDATA[<p>Because there no condition after connect by. SQL&gt; select rn from ( 2 select rownum rn 3 from dual 4 connect by rownum select rn from ( 2 select level rn 3 from dual 4 connect by level</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Sinke</title>
		<link>http://technology.amis.nl/blog/1413/dummy-data-without-dummy-tables-just-a-little-sql-trick-with-the-table-operator/comment-page-1#comment-163109</link>
		<dc:creator>Patrick Sinke</dc:creator>
		<pubDate>Wed, 29 Nov 2006 17:16:22 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1413#comment-163109</guid>
		<description>mydb&gt; select rownum
  2  from dual
  3  connect by rownum;
connect by rownum
                *
FOUT in regel 3:
.ORA-00920: invalid relational operator


Verstreken: 00:00:00.04
mydb&gt;


hhhm... this doesn&#039;t work here. Odd.</description>
		<content:encoded><![CDATA[<p>mydb&gt; select rownum<br />
  2  from dual<br />
  3  connect by rownum;<br />
connect by rownum<br />
                *<br />
FOUT in regel 3:<br />
.ORA-00920: invalid relational operator</p>
<p>Verstreken: 00:00:00.04<br />
mydb&gt;</p>
<p>hhhm&#8230; this doesn&#8217;t work here. Odd.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucas Jellema</title>
		<link>http://technology.amis.nl/blog/1413/dummy-data-without-dummy-tables-just-a-little-sql-trick-with-the-table-operator/comment-page-1#comment-161990</link>
		<dc:creator>Lucas Jellema</dc:creator>
		<pubDate>Mon, 27 Nov 2006 14:56:02 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1413#comment-161990</guid>
		<description>Thanks for all your comments. My reactions:

- Marco: the query against DUAL would be something like
SELECT &#039;Tobias&#039; FROM DUAL
UNION
SELECT &#039;Mike&#039; FROM DUAL
UNION
SELECT &#039;John&#039; FROM DUAL
etc.

I find that awkward.

- Francois: good point - although I probably would never remember the exact TYPE.

- Edwin: this would work but basically only for a set of numbers counting from 1 to somewhere. If you want to query strings or a specific set of numeric records, this does not help.</description>
		<content:encoded><![CDATA[<p>Thanks for all your comments. My reactions:</p>
<p>- Marco: the query against DUAL would be something like<br />
SELECT &#8216;Tobias&#8217; FROM DUAL<br />
UNION<br />
SELECT &#8216;Mike&#8217; FROM DUAL<br />
UNION<br />
SELECT &#8216;John&#8217; FROM DUAL<br />
etc.</p>
<p>I find that awkward.</p>
<p>- Francois: good point &#8211; although I probably would never remember the exact TYPE.</p>
<p>- Edwin: this would work but basically only for a set of numbers counting from 1 to somewhere. If you want to query strings or a specific set of numeric records, this does not help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edwin van Meerendonk</title>
		<link>http://technology.amis.nl/blog/1413/dummy-data-without-dummy-tables-just-a-little-sql-trick-with-the-table-operator/comment-page-1#comment-161978</link>
		<dc:creator>Edwin van Meerendonk</dc:creator>
		<pubDate>Mon, 27 Nov 2006 14:06:24 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1413#comment-161978</guid>
		<description>in the sector &quot;useless queries&quot;, my five cents


select rownum
from dual
connect by rownum </description>
		<content:encoded><![CDATA[<p>in the sector &#8220;useless queries&#8221;, my five cents</p>
<p>select rownum<br />
from dual<br />
connect by rownum</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francois</title>
		<link>http://technology.amis.nl/blog/1413/dummy-data-without-dummy-tables-just-a-little-sql-trick-with-the-table-operator/comment-page-1#comment-161928</link>
		<dc:creator>Francois</dc:creator>
		<pubDate>Mon, 27 Nov 2006 11:25:28 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1413#comment-161928</guid>
		<description>Hello,
You can obtain the same result without creating any type, but using existing ones:
SELECT * FROM   TABLE( sys.dbms_debug_vc2coll (&#039;John&#039;,&#039;Mike&#039;,&#039;Tobias&#039;) ) ;</description>
		<content:encoded><![CDATA[<p>Hello,<br />
You can obtain the same result without creating any type, but using existing ones:<br />
SELECT * FROM   TABLE( sys.dbms_debug_vc2coll (&#8216;John&#8217;,'Mike&#8217;,'Tobias&#8217;) ) ;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco Gralike</title>
		<link>http://technology.amis.nl/blog/1413/dummy-data-without-dummy-tables-just-a-little-sql-trick-with-the-table-operator/comment-page-1#comment-161927</link>
		<dc:creator>Marco Gralike</dc:creator>
		<pubDate>Mon, 27 Nov 2006 11:24:28 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1413#comment-161927</guid>
		<description>Could you explain why using DUAL is an awkward solution for the problem you demonstrated? Using the dummy table DUAL is, as you know, optimized for performance; Has this been changed; Are there equally good solutions now (like the ones which are mentioned above)?

Grz

Marco</description>
		<content:encoded><![CDATA[<p>Could you explain why using DUAL is an awkward solution for the problem you demonstrated? Using the dummy table DUAL is, as you know, optimized for performance; Has this been changed; Are there equally good solutions now (like the ones which are mentioned above)?</p>
<p>Grz</p>
<p>Marco</p>
]]></content:encoded>
	</item>
</channel>
</rss>

