<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Can you select another query in a query?</title>
		<link>http://www.peoplesoftwiki.com/forum/t-201897/can-you-select-another-query-in-a-query</link>
		<description>Posts in the discussion thread &quot;Can you select another query in a query?&quot; - i.e. SELECT A.FIELD1, &lt;PSQUERYNAME&gt;, A.FIELD2</description>
				<copyright></copyright>
		<lastBuildDate>Fri, 30 Jul 2010 05:13:37 +0000</lastBuildDate>
		
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-201897#post-648572</guid>
				<title>Re: Can you select another query in a query?</title>
				<link>http://www.peoplesoftwiki.com/forum/t-201897/can-you-select-another-query-in-a-query#post-648572</link>
				<description></description>
				<pubDate>Sat, 05 Dec 2009 00:05:32 +0000</pubDate>
				<wikidot:authorName>Praj</wikidot:authorName>				<wikidot:authorUserId>52320</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi, unfortunately I don't think this is possible in PeopleSoft Query. There's no way to reference a query in a select statement (you can of course use sub-queries in your criteria), and you can't have an expression with a <tt>FROM</tt> clause in it as it gives you an error (139,106). So that means you can't write <tt>(SELECT B.FIELDB FROM TABLE2&nbsp;B)</tt> as an expression and use it as a field.</p> <p>I think this is a pretty serious limitation. One way around this is to create a view that performs this sub-select and then to use that view in your query.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-201897#post-648352</guid>
				<title>Can you select another query in a query?</title>
				<link>http://www.peoplesoftwiki.com/forum/t-201897/can-you-select-another-query-in-a-query#post-648352</link>
				<description></description>
				<pubDate>Fri, 04 Dec 2009 17:41:39 +0000</pubDate>
				<wikidot:authorName>Mike B.</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>I'm trying to select the results of a select, e.g.<br /> SELECT A.FIELD1, (SELECT B.FIELDB FROM TABLE2&nbsp;B) FROM TABLE1&nbsp;A<br /> and it was suggested that I might be able to do this by making the embedded SELECT a separate query and then referencing it. Is this possible? If not, is there another way to do this?</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>