<?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: How to display combinations using the table format in a SQL statement</title>
	<atom:link href="http://oraqa.com/2007/02/14/how-to-display-combinations-using-the-table-format-in-a-sql-statement/feed/" rel="self" type="application/rss+xml" />
	<link>http://oraqa.com/2007/02/14/how-to-display-combinations-using-the-table-format-in-a-sql-statement/</link>
	<description>Oracle Question and Answer</description>
	<lastBuildDate>Mon, 19 Dec 2011 14:21:07 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: newkid</title>
		<link>http://oraqa.com/2007/02/14/how-to-display-combinations-using-the-table-format-in-a-sql-statement/comment-page-1/#comment-296</link>
		<dc:creator>newkid</dc:creator>
		<pubDate>Mon, 05 Jul 2010 20:55:49 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2007/02/14/how-to-display-combinations-using-the-table-format-in-a-sql-statement/#comment-296</guid>
		<description>&lt;pre&gt;
variable input number
exec :input := 4

SELECT CASE WHEN BITAND(ROWNUM,1)&gt;0 THEN &#039;#&#039; END
      ,CASE WHEN BITAND(ROWNUM,2)&gt;0 THEN &#039;#&#039; END
      ,CASE WHEN BITAND(ROWNUM,4)&gt;0 THEN &#039;#&#039; END
      ,CASE WHEN BITAND(ROWNUM,8)&gt;0 THEN &#039;#&#039; END
  FROM DUAL 
CONNECT BY ROWNUM&lt;=POWER(2,:input)-1;

C C C C
- - - -
#
  #
# #
    #
#   #
  # #
# # #
      #
#     #
  #   #
# #   #
    # #
#   # #
  # # #
# # # #

15 rows selected.
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<pre>
variable input number
exec :input := 4

SELECT CASE WHEN BITAND(ROWNUM,1)&gt;0 THEN '#' END
      ,CASE WHEN BITAND(ROWNUM,2)&gt;0 THEN '#' END
      ,CASE WHEN BITAND(ROWNUM,4)&gt;0 THEN '#' END
      ,CASE WHEN BITAND(ROWNUM,8)&gt;0 THEN '#' END
  FROM DUAL
CONNECT BY ROWNUM&lt;=POWER(2,:input)-1;

C C C C
- - - -
#
  #
# #
    #
#   #
  # #
# # #
      #
#     #
  #   #
# #   #
    # #
#   # #
  # # #
# # # #

15 rows selected.
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>

