﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 7,2000 / T-SQL  / using outer query column name in subquery while doing order by / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 18 May 2013 05:13:31 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: using outer query column name in subquery while doing order by</title><link>http://www.sqlservercentral.com/Forums/Topic855974-8-1.aspx</link><description>Please post table definitions, sample data and desired output. Read this to see the best way to post this to get quick responses.[url]http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]</description><pubDate>Sat, 30 Jan 2010 05:14:52 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: using outer query column name in subquery while doing order by</title><link>http://www.sqlservercentral.com/Forums/Topic855974-8-1.aspx</link><description>Some ids of student table will present in school table...i am not dding inner join..if i go for inner join..will get all rows which were common based on id</description><pubDate>Sat, 30 Jan 2010 05:07:22 GMT</pubDate><dc:creator>ganaparthi.jagadeesh</dc:creator></item><item><title>RE: using outer query column name in subquery while doing order by</title><link>http://www.sqlservercentral.com/Forums/Topic855974-8-1.aspx</link><description>You're basically doing an inner join between &amp;lt;Student&amp;gt; and &amp;lt;School&amp;gt; on ID columns. Are IDs unique across these two tables?</description><pubDate>Fri, 29 Jan 2010 08:17:05 GMT</pubDate><dc:creator>RP_DBA</dc:creator></item><item><title>using outer query column name in subquery while doing order by</title><link>http://www.sqlservercentral.com/Forums/Topic855974-8-1.aspx</link><description>using outer query column name in subquery while doing order by caluseex:  Select name,id,school from &amp;lt;Student&amp;gt;where id in(select top 5 id from &amp;lt;Somtable&amp;gt;  order by  school)school name is not present in &amp;lt;Sometable&amp;gt;will it work...i experinced this type situation.it has worked.can any one give reasons..how it is working..?</description><pubDate>Fri, 29 Jan 2010 05:17:40 GMT</pubDate><dc:creator>ganaparthi.jagadeesh</dc:creator></item></channel></rss>