<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - coldfusion - 6.1 - htmldocs - functa59.htm</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-25T03:03:37</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functa59.htm#13511" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functa59.htm#13511">
		<title>coldfusion/6.1/htmldocs/functa59.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functa59.htm#13511</link>
		<description>Editing the example as follows better illustrates what the QuotedValueList function does:&lt;br /&gt;&lt;br /&gt;&lt;!--- use the contents of one query to create another dynamically ---&gt;&lt;br /&gt;&lt;cfset List = &quot;'BIOL', 'CHEM'&quot;&gt;&lt;br /&gt;&lt;!--- first, get the department IDs in our list ---&gt;&lt;br /&gt;&lt;cfquery name = &quot;GetDepartments&quot; datasource = &quot;cfsnippets&quot;&gt;&lt;br /&gt;   SELECT Dept_ID FROM Departments&lt;br /&gt;   WHERE Dept_ID IN (#PreserveSingleQuotes(List)#)&lt;br /&gt;&lt;/cfquery&gt;&lt;br /&gt;&lt;!--- now, select the courses for that department based on the&lt;br /&gt;quotedValueList produced from our previous query ---&gt;&lt;br /&gt;&lt;cfquery name = &quot;GetCourseList&quot; datasource = &quot;cfsnippets&quot;&gt;&lt;br /&gt;   SELECT *&lt;br /&gt;   FROM CourseList&lt;br /&gt;   WHERE Dept_ID IN ('#GetDepartments.Dept_ID#')&lt;br /&gt;&lt;/cfquery&gt;&lt;br /&gt;&lt;!--- now, output the results ---&gt;&lt;br /&gt;&lt;br /&gt;List the course numbers that are in BIOL and CHEM (uses semicolon (;) as the delimiter:&lt;br&gt;&lt;br /&gt;&lt;cfoutput&gt;&lt;br /&gt;   #QuotedValueList(GetCourseList.CorNumber,&quot;;&quot;)#&lt;br&gt; &lt;br /&gt;&lt;/cfoutput&gt;</description>
		<dc:creator>tzimmerman</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-04-28T07:37:45</dc:date>
	</item>
	</rdf:RDF>

