﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Administering / SQL Server 2005  / ORing or ANDing with INNER and OUTER joins / 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>Tue, 21 May 2013 17:48:09 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: ORing or ANDing with INNER and OUTER joins</title><link>http://www.sqlservercentral.com/Forums/Topic549240-146-1.aspx</link><description>[font="Verdana"][quote][b]GSquared (8/8/2008)[/b][hr]You can put anything you'd put in a Where clause, into a join clause.  Some things might be a bad idea, but you can technically do it.[/quote]but if we analyze its impact on performance then it may not be bad idea at all?what u suggest by your expertise ?Focus in Performance only![/font]</description><pubDate>Wed, 16 Jun 2010 04:08:38 GMT</pubDate><dc:creator>Abrar Ahmad_</dc:creator></item><item><title>RE: ORing or ANDing with INNER and OUTER joins</title><link>http://www.sqlservercentral.com/Forums/Topic549240-146-1.aspx</link><description>You can put anything you'd put in a Where clause, into a join clause.  Some things might be a bad idea, but you can technically do it.</description><pubDate>Fri, 08 Aug 2008 08:58:26 GMT</pubDate><dc:creator>GSquared</dc:creator></item><item><title>RE: ORing or ANDing with INNER and OUTER joins</title><link>http://www.sqlservercentral.com/Forums/Topic549240-146-1.aspx</link><description>[quote][b]sanjeev_krs2004 (8/8/2008)[/b][hr]Hi    can we do add OR or AND in INNER and OUTER joins conditions..? if anybody has any clue, please reply.[/quote]Yes, you can. The following (absolutely useless in terms of the result) query shows it:[code]select  c.namefrom    sys.objects as o        join sys.columns as c on o.object_id = c.object_id                                 OR ( (o.object_id = c.object_id                                      AND o.object_id = 4) )[/code]Regards,  Andras</description><pubDate>Fri, 08 Aug 2008 08:42:57 GMT</pubDate><dc:creator>Andras Belokosztolszki</dc:creator></item><item><title>ORing or ANDing with INNER and OUTER joins</title><link>http://www.sqlservercentral.com/Forums/Topic549240-146-1.aspx</link><description>Hi    can we do add OR or AND in INNER and OUTER joins conditions..? if anybody has any clue, please reply.</description><pubDate>Fri, 08 Aug 2008 08:29:54 GMT</pubDate><dc:creator>sanjeev_krs2004</dc:creator></item></channel></rss>