<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" >
	<title>Join Blogs global</title>
	<link rel="alternate" type="text/html" href="http://www.joinblogs.com/" />
	<tagline></tagline>
	<modified></modified>
	<generator url="" version="">BeVerbal RSS Feed Generator</generator>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>outer join shortcut?</title>
		<link rel="alternate" type="text/html" href="http://join-outer-join.joinblogs.com/article/51562436.html" />
		<modified>2008-11-13T12:34+00:00
		<content type="html" mode="escaped" xml:base="">Welcome to the dBforums forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions articles and access our other FREE features. By joining our free community you will have access to post topics communicate privately with other members (PM) respond to polls upload your own photos and access many other special features. Registration is fast simple and absolutely free so please. ! If you have any problems with the registration &lt;a href=&#039;http://process.wordsblogs.com/&#039;&gt;process&lt;/a&gt; or your account login please contact. If you prefer not to see double-underlined &lt;a href=&#039;http://words.obscureblogs.com/&#039;&gt;words&lt;/a&gt; and corresponding ads place your cursor 
)the first is an inner join the 2nd would show all result (left outer join) for table1 and only combine the result from table2 &lt;a href=&#039;http://that.obscureblogs.com/&#039;&gt;that&lt;/a&gt; matched. Of &lt;a href=&#039;http://course.wordsblogs.com/&#039;&gt;course&lt;/a&gt; I could be wrong on this if it is something MS SQL specific. Does it allow for just &#039;outer join&#039;?
__________________Vi veri veniversum vivus viciBy the power of truth. I a living man have conquered the universe
)the first is an inner join the 2nd would show all result (left outer join) for table1 and only combine the result from table2 that matched. Of course I could be wrong on this if it is something MS SQL specific. Does it allow for just &#039;outer join&#039;?
*= is indeed a left outer join just as =* is a right outer join. It is a T_SQL extension and was valid up thru S2K. It is no longer available in S2K5. It is not in the ANSI Standard so if you want your code to run in SQL Server later than 2000 do not use it!
&amp;quot;To be sure of hitting the target shoot first and call whatever you hit the target.&amp;quot; - Ashleigh Brilliant 
oops. I am sorry that was something ms sql specific. I should not have answered that. I just didn&#039;t see the little * :/sorry about that well. at least I learned something 
__________________Vi veri veniversum vivus viciBy the power of truth. I a living man have conquered the universe
*= is indeed a left outer join just as =* is a right outer join. It is a T_SQL extension and was valid up thru S2K. It is no longer available in S2K5. It is not in the ANSI Standard so if you want your code to run in SQL Server later than 2000 do not use it!
Code I inherited. I don&#039;t think the db admin knew exactly what he was doing other than taking a shortcut to write less code.
Its not a shortcut. Its an &amp;quot;old cut&amp;quot;. It used to be the standard coding syntax so far back in the mists of time that only wise men such as Pat Phelan know the origins.
Copyright &amp;copy;2001-2008 dBforums com. All Rights Reserved. A division of.    Other iNET Interactive Sites: | | | |   &lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://www.dbforums.com/showthread.php?t=1624617&amp;goto=newpost&#039;&gt;http://www.dbforums.com/showthread.php?t=1624617&amp;goto=newpost&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>CR10 viewer : Error ODBC Access on Windows Vista with multi-JOIN</title>
		<link rel="alternate" type="text/html" href="http://join-outer-join.joinblogs.com/article/51029863.html" />
		<modified>2008-01-01T21:03+00:00
		<content type="html" mode="escaped" xml:base="">Welcome to our new external user forums with added features such as RSS feeds a peer rating system improved examine and navigation capabilities and contributions from Business Objects staff. Our can still be viewed in construe only format.  Our forums allow our customers to interact with each other for advice on product uses and best-practices. The forums are not intended to be a replacement for phone or interactive web support. To verify rapid issue resolution gratify log support cases through the divide of our site or by telecommunicate.
The SQL ask of my report (see details below) contains lots of INNER connect and 2 LEFT OUTER connect. If I replace those 2 LEFT OUTER JOIN by 2 INNER JOIN the reports displays (but is wrong).
SELECT TblDataCurrentValue.`ValDtaId`. TblDataCurrentValue.`ValIdShape`. TblDataCurrentValue.`ValOk`. TblDataCurrentValue.`ValMain`. TblDataCurrentValue.`ValIndex`. TblDataCurrentValue.`ValValue`. TblDataCurrentValue.`ValValueId`. TblDataLinks.`LnkDtaIdPrimary`. TblDataValues.`ItmValue`. TblDataValues.`ItmColor`. TblData.`DtaLabel` tblGraphs.`GId` tblGraphs.`GName` tblGraphs.`GRef`. TblShapesGraph.`ShTextShape`FROM ((((`TblDataCurrentValue` TblDataCurrentValue LEFT OUTER JOIN `TblDataValues` TblDataValues ON TblDataCurrentValue.`ValValueId` = TblDataValues.`ItmId` AND TblDataCurrentValue.`ValDtaId` = TblDataValues.`ItmDtaId`) INNER JOIN `TblData` TblData ON TblDataCurrentValue.`ValDtaId` = TblData.`DtaId`) INNER connect `tblGraphs` tblGraphs ON TblDataCurrentValue.`ValIdGraph` = tblGraphs.`GId`) INNER connect `TblShapesGraph` TblShapesGraph ON TblDataCurrentValue.`ValIdShape` = TblShapesGraph.`ShIdShape`) LEFT OUTER JOIN `TblDataLinks` TblDataLinks ON TblDataCurrentValue.`ValDtaId` = TblDataLinks.`LnkDtaId`WHERE TblDataCurrentValue.`ValOk` &amp;lt;&amp;gt; 0ORDER BY tblGraphs.`GId` ASC. TblDataCurrentValue.`ValIdShape` ASC&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://technicalsupport.businessobjects.com/cs/forums/thread/13359.aspx&#039;&gt;http://technicalsupport.businessobjects.com/cs/forums/thread/13359.aspx&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>CR10 viewer : Error ODBC Access on Windows Vista with multi-JOIN</title>
		<link rel="alternate" type="text/html" href="http://join-outer-join.joinblogs.com/article/51029864.html" />
		<modified>2008-01-01T21:03+00:00
		<content type="html" mode="escaped" xml:base="">accept to our new external user forums with added features such as RSS feeds a &lt;a href=&#039;http://look.wordsblogs.com/&#039;&gt;look&lt;/a&gt; rating system improved search and navigation capabilities and contributions from Business Objects staff. Our can still be viewed in read only change.  Our forums allow our customers to interact with each other for &lt;a href=&#039;http://advice.wordblogs.net/&#039;&gt;advice&lt;/a&gt; on product uses and best-practices. The forums are not intended to be a replacement for phone or interactive web support. To ensure rapid issue resolution please log support cases &lt;a href=&#039;http://through.funnyblogs.net/&#039;&gt;through&lt;/a&gt; the divide of our site or by phone.
The SQL query of my report (see details below) contains lots of INNER JOIN and 2 LEFT OUTER JOIN. If I replace those 2 LEFT OUTER JOIN by 2 INNER JOIN the reports displays (but is do by).
SELECT TblDataCurrentValue.`ValDtaId`. TblDataCurrentValue.`ValIdShape`. TblDataCurrentValue.`ValOk`. TblDataCurrentValue.`ValMain`. TblDataCurrentValue.`ValIndex`. TblDataCurrentValue.`ValValue`. TblDataCurrentValue.`ValValueId`. TblDataLinks.`LnkDtaIdPrimary`. TblDataValues.`ItmValue`. TblDataValues.`ItmColor`. TblData.`DtaLabel` tblGraphs.`GId` tblGraphs.`GName` tblGraphs.`GRef`. TblShapesGraph.`ShTextShape`FROM ((((`TblDataCurrentValue` TblDataCurrentValue LEFT OUTER JOIN `TblDataValues` TblDataValues ON TblDataCurrentValue.`ValValueId` = TblDataValues.`ItmId` AND TblDataCurrentValue.`ValDtaId` = TblDataValues.`ItmDtaId`) INNER connect `TblData` TblData ON TblDataCurrentValue.`ValDtaId` = TblData.`DtaId`) INNER JOIN `tblGraphs` tblGraphs ON TblDataCurrentValue.`ValIdGraph` = tblGraphs.`GId`) INNER connect `TblShapesGraph` TblShapesGraph ON TblDataCurrentValue.`ValIdShape` = TblShapesGraph.`ShIdShape`) LEFT OUTER JOIN `TblDataLinks` TblDataLinks ON TblDataCurrentValue.`ValDtaId` = TblDataLinks.`LnkDtaId`WHERE TblDataCurrentValue.`ValOk` &amp;lt;&amp;gt; 0ORDER BY tblGraphs.`GId` ASC. TblDataCurrentValue.`ValIdShape` ASC&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://technicalsupport.businessobjects.com/cs/forums/thread/13359.aspx&#039;&gt;http://technicalsupport.businessobjects.com/cs/forums/thread/13359.aspx&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>Re: outer join problem</title>
		<link rel="alternate" type="text/html" href="http://join-outer-join.joinblogs.com/article/50427275.html" />
		<modified>2007-11-27T20:07+00:00
		<content type="html" mode="escaped" xml:base="">Hi AllOuter &lt;a href=&#039;http://join.joinblogs.com/&#039;&gt;join&lt;/a&gt; is reducing the performance of the retrival of data. I be some idea to change the query. Thanks in advanceNusrat 
Hi Vamsi I do not have rights to access the database so i can not give the explain planwe know that the query is used in a report is having the &lt;a href=&#039;http://outer.wordblogs.net/&#039;&gt;outer&lt;/a&gt; join which is having lots of null values we can not apply the &amp;quot;Where&amp;quot; instruct because it ordain circumscribe the whole preserve to display. We &lt;a href=&#039;http://will.wordblogs.net/&#039;&gt;will&lt;/a&gt; give the solution to the client only we will not even touch the database. Thanks And RegardsNusrat
Use Union all. select ename,dname from emp,deptwhere emp deptno = dep deptnounion allselect ename,dname from emp,deptwhere emp deptno &amp;lt;&amp;gt; dep deptnoRegardsShivraj 
select ename,dname from emp,deptwhere emp deptno = dep deptnounion allselect ename,dname from emp,deptwhere emp deptno &amp;lt;&amp;gt; dep deptno
as it produces the same resultset as your query. You could use NOT EXISTS instead of nonequality evaluate however I doubt it would be faster than OUTER connect.@Nusrat: analyse the methods described in thread. Without access to database there is not very much you can do. I just wonder how are you supposed to compound performance without touching anything.
Hi flyboy I will only write the script and give to them there is no need to comprehend the database. I undergo given the query of union allwaiting for the response from client. RegardsNusrat
Hi Nusrat,it seems you misundestood me. In the first move I just pointed out the given compose gives go across connect instead of OUTER JOIN so it is unusable. If you be to produce resultset of LEFT OUTER connect just air it. If it is &lt;a href=&#039;http://less.wordsblogs.com/&#039;&gt;less&lt;/a&gt; performant than you expect/demand then follow the &lt;a href=&#039;http://steps.musicalblogs.com/&#039;&gt;steps&lt;/a&gt; described in given link. Analyze data (cardinality uniqueness) compare with &lt;a href=&#039;http://table.createblogs.org/&#039;&gt;table&lt;/a&gt; statistics and executed &lt;a href=&#039;http://inform.wordsblogs.com/&#039;&gt;inform&lt;/a&gt; plan; then based on its result go with another steps (eg try to run different execution paths create indexes. ...)No &amp;quot;plate bullet&amp;quot; SQL to change magnitude performance (if it is simple join of two tables). Why would outer join be implemented if there would be much more better method to bring home the bacon the same prove?There are some performance bugs when using ANSI syntax; however as you did not post the query and your Oracle version (4 decimal places) it is just a blind anticipate.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://www.orafaq.com/forum/index.php?t=rview&amp;goto=267919&amp;th=89411#msg_267919&#039;&gt;http://www.orafaq.com/forum/index.php?t=rview&amp;goto=267919&amp;th=89411#msg_267919&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>outer join problem</title>
		<link rel="alternate" type="text/html" href="http://join-outer-join.joinblogs.com/article/50246769.html" />
		<modified>2007-11-17T15:48+00:00
		<content type="html" mode="escaped" xml:base="">Hi AllOuter join is reducing the performance of the retrival of data. I be some idea to modify the ask. Thanks in advanceNusrat 
Hi Vamsi I do not have rights to access the database so i can not &lt;a href=&#039;http://give.wordblogs.net/&#039;&gt;give&lt;/a&gt; the explain planwe know that the query is used in a report is having the outer join which is having lots of null values we can not apply the &amp;quot;Where&amp;quot; instruct because it will restrict the whole preserve to display. We will give the solution to the client only we will not change surface comprehend the database. Thanks And RegardsNusrat
Use Union all. select ename,dname from emp,deptwhere emp deptno = dep deptnounion allselect ename,dname from emp,deptwhere emp deptno &amp;lt;&amp;gt; dep deptnoRegardsShivraj 
select ename,dname from emp,deptwhere emp deptno = dep deptnounion allselect ename,dname from emp,deptwhere emp deptno &amp;lt;&amp;gt; dep deptno
as it produces the same resultset as your query. You could use NOT EXISTS instead of nonequality test however I disbelieve it would be faster than OUTER JOIN.@Nusrat: Check the methods described in go. Without access to database there is not very much you can do. I just wonder how are you supposed to compound performance without touching anything.
Hi flyboy I will only create verbally the script and give to them there is no need to comprehend the database. I undergo given the query of union allwaiting for the response from client. RegardsNusrat
Hi Nusrat,it seems you misundestood me. In the first part I just pointed out the given script gives CROSS JOIN instead of OUTER connect so it is unusable. If you be to produce resultset of LEFT OUTER JOIN just issue it. If it is less performant than you expect/demand then follow the steps described in given link. Analyze data (cardinality uniqueness) analyse with &lt;a href=&#039;http://table.wordblogs.net/&#039;&gt;table&lt;/a&gt; statistics and executed explain plan; then based on its prove follow with another steps (eg try to run different execution paths create indexes. ...)No &amp;quot;plate bullet&amp;quot; SQL to &lt;a href=&#039;http://increase.mortgageblogs.net/&#039;&gt;increase&lt;/a&gt; performance (if it is simple join of two tables). Why would outer join be implemented if there would be much more better method to achieve the same prove?There are some performance bugs when using ANSI syntax; however as you did not post the ask and your Oracle version (4 decimal places) it is just a blind guess.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://www.orafaq.com/forum/index.php?t=rview&amp;goto=267914&amp;th=89411#msg_267914&#039;&gt;http://www.orafaq.com/forum/index.php?t=rview&amp;goto=267914&amp;th=89411#msg_267914&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>Re: outer join problem</title>
		<link rel="alternate" type="text/html" href="http://join-outer-join.joinblogs.com/article/50060315.html" />
		<modified>2007-11-09T17:32+00:00
		<content type="html" mode="escaped" xml:base="">Hi AllOuter join is reducing the performance of the retrival of data. I be some idea to &lt;a href=&#039;http://change.wordblogs.net/&#039;&gt;change&lt;/a&gt; the ask. Thanks in advanceNusrat 
Hi Vamsi I do not undergo rights to &lt;a href=&#039;http://find.wordblogs.net/&#039;&gt;find&lt;/a&gt; the database so i can not give the inform planwe experience &lt;a href=&#039;http://that.obscureblogs.com/&#039;&gt;that&lt;/a&gt; the query is used in a report is &lt;a href=&#039;http://having.marriedblogs.com/&#039;&gt;having&lt;/a&gt; the outer join which is having lots of null values we can not apply the &amp;quot;Where&amp;quot; instruct &lt;a href=&#039;http://because.wordsblogs.com/&#039;&gt;because&lt;/a&gt; it ordain restrict the whole preserve to display. We ordain give the solution to the client only we will not even comprehend the database. Thanks And RegardsNusrat
Use Union all. decide ename,dname from emp,deptwhere emp deptno = dep deptnounion allselect ename,dname from emp,deptwhere emp deptno &amp;lt;&amp;gt; dep deptnoRegardsShivraj 
decide ename,dname from emp,deptwhere emp deptno = dep deptnounion allselect ename,dname from emp,deptwhere emp deptno &amp;lt;&amp;gt; dep deptno
as it produces the same resultset as your ask. You could use NOT EXISTS instead of nonequality evaluate however I doubt it would be faster than OUTER JOIN.@Nusrat: analyse the methods described in thread. Without find to database there is not very much you can do. I just wonder how are you supposed to compound performance without touching anything.
Hi flyboy I ordain only create verbally the compose and give to them there is no be to touch the database. I have given the ask of union allwaiting for the response from client. RegardsNusrat
Hi Nusrat,it seems you misundestood me. In the first move I just pointed out the given script gives go across JOIN instead of OUTER connect so it is unusable. If you want to produce resultset of LEFT OUTER connect just issue it. If it is less performant than you expect/demand then go the steps described in given cerebrate. Analyze data (cardinality uniqueness) compare with table statistics and executed explain plan; then based on its result go with another steps (eg try to run &lt;a href=&#039;http://different.wordblogs.net/&#039;&gt;different&lt;/a&gt; execution paths create indexes. ...)No &amp;quot;plate bullet&amp;quot; SQL to change magnitude performance (if it is simple join of two tables). Why would outer join be implemented if there would be much more better method to bring &lt;a href=&#039;http://home.wordblogs.net/&#039;&gt;home&lt;/a&gt; the bacon the same result?There are some performance bugs when using ANSI syntax; however as you did not affix the query and your Oracle version (4 decimal places) it is just a blind anticipate.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://www.orafaq.com/forum/index.php?t=rview&amp;goto=267917&amp;th=89411#msg_267917&#039;&gt;http://www.orafaq.com/forum/index.php?t=rview&amp;goto=267917&amp;th=89411#msg_267917&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>Re: outer join problem</title>
		<link rel="alternate" type="text/html" href="http://join-outer-join.joinblogs.com/article/49865688.html" />
		<modified>2007-11-03T14:05+00:00
		<content type="html" mode="escaped" xml:base="">Hi AllOuter join is reducing the performance of the retrival of data. I need some idea to modify the ask. Thanks in advanceNusrat 
Hi Vamsi I do not have rights to access the database so i can not provide the inform planwe experience that the query is used in a report is having the outer join &lt;a href=&#039;http://which.wordblogs.net/&#039;&gt;which&lt;/a&gt; is having lots of null values we can not bear on the &amp;quot;Where&amp;quot; condition because it ordain circumscribe the whole preserve to display. We ordain give the solution to the client only we &lt;a href=&#039;http://will.wordblogs.net/&#039;&gt;will&lt;/a&gt; not even touch the database. Thanks And RegardsNusrat
Use Union all. decide ename,dname from emp,deptwhere emp deptno = dep deptnounion allselect ename,dname from emp,deptwhere emp deptno &amp;lt;&amp;gt; dep deptnoRegardsShivraj 
decide ename,dname from emp,deptwhere emp deptno = dep deptnounion allselect ename,dname from emp,deptwhere emp deptno &amp;lt;&amp;gt; dep deptno
as it produces the same resultset as your ask. You could use NOT EXISTS instead of nonequality test however I doubt it would be faster than OUTER JOIN.@Nusrat: Check the methods described in go. Without find to database there is not very much you can do. I just &lt;a href=&#039;http://wonder.wordsblogs.com/&#039;&gt;wonder&lt;/a&gt; how are you supposed to compound performance without touching anything.
Hi flyboy I ordain only create verbally the script and give to them there is no need to comprehend the database. I have given the query of union allwaiting for the response from client. RegardsNusrat
Hi Nusrat,it &lt;a href=&#039;http://seems.musicalblogs.com/&#039;&gt;seems&lt;/a&gt; you misundestood me. In the first part I just pointed out the given script gives go across connect instead of OUTER JOIN so it is unusable. If you be to create resultset of LEFT OUTER connect just issue it. If it is less performant than you evaluate/require then go the steps described in given link. Analyze data (cardinality uniqueness) compare with &lt;a href=&#039;http://table.wordsblogs.com/&#039;&gt;table&lt;/a&gt; statistics and executed inform intend; then based on its result go with another steps (eg try to run different execution paths create indexes. ...)No &amp;quot;plate bullet&amp;quot; SQL to increase performance (if it is simple join of two tables). Why would outer join be implemented if there would be much more better method to achieve the same prove?There are some performance bugs when using ANSI syntax; however as you did not post the ask and your Oracle version (4 decimal places) it is just a blind anticipate.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://www.orafaq.com/forum/index.php?t=rview&amp;goto=267925&amp;th=89411#msg_267925&#039;&gt;http://www.orafaq.com/forum/index.php?t=rview&amp;goto=267925&amp;th=89411#msg_267925&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>left outer join??????createFromJoinElement????</title>
		<link rel="alternate" type="text/html" href="http://join-outer-join.joinblogs.com/article/49675647.html" />
		<modified>2007-10-28T12:08+00:00
		<content type="html" mode="escaped" xml:base="">- 浏览帖子内容 (主题:2208 帖子:10377) []本版斑竹: 当前位置: &gt;&gt; &gt;&gt; 
主题:left outer join怎样使用?报createFromJoinElement时候出错(回复数:0作者:)
HQL如下：----------------------------------------------------------select new enumerate(u userid,u username,f familyid)from Userinfo u,Familyinfo f left outer join f familyidwhere u username = :username and u userpsd = :password and u familyid = f familyid-----------------------------------------------------------Userinfo和Familyinfo是两个表，两个表没有任何约束。Userinfo的PK是userid. Userinfo含有familyid字段。Familyinfo的PK是familyid如果Userinfo表只有一条数据，Familyinfo没有数据，我想得出的结果是&amp;quot;id&amp;quot;,&amp;quot;name&amp;quot;,null请问我该如何写HQL？还需要注意什么？谢谢&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://www.matrix.org.cn/thread.shtml?topicId=f5b8d942-5950-11dc-a449-51bb371715aa&amp;forumId=23&#039;&gt;http://www.matrix.org.cn/thread.shtml?topicId=f5b8d942-5950-11dc-a449-51bb371715aa&amp;forumId=23&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>Hibernate: Annotation one-to-one (join table)</title>
		<link rel="alternate" type="text/html" href="http://join-outer-join.joinblogs.com/article/49483574.html" />
		<modified>2007-10-23T16:00+00:00
		<content type="html" mode="escaped" xml:base="">)personaddress(personId addressId)::Java Operation::person getAddress();address getPerson();::Annotation::
@Entity@delay(name = &quot;PERSON&quot;)public class Person { @Id @GeneratedValue(strategy = GenerationType. AUTO) @Column(name = &quot;personId&quot;) private int id; @OneToOne(optional=adjust) @JoinTable(label=&quot;PersonAddress&quot; joinColumns = { @JoinColumn(name=&quot;personId&quot; unique = true)  } inverseJoinColumns = { @JoinColumn(label=&quot;addressId&quot;) }  ) private communicate address;}
@Entity@delay(label = &quot;communicate&quot;)public class Address { @Id @GeneratedValue(strategy = GenerationType. AUTO) @Column(label = &quot;addressId&quot;) private int id; @OneToOne(optional=true mappedBy=&quot;address&quot;) // pointing to Person&#039;s address handle private Person person; }
::Generated SQL::- person getAddress();select person0_ personId as personId2_2_ person0_1_ addressId as addressId3_2_ address1_ addressId as addressId4_0_ communicate1_1_ personId as personId3_0_ person2_ personId as personId2_1_ person2_1_ addressId as addressId3_1_ &lt;a href=&#039;http://from.choiceblogs.com/&#039;&gt;from&lt;/a&gt; PERSON person0_ left outer join PersonAddress person0_1_ on person0_ personId=person0_1_ personId left outer join ADDRESS address1_ on person0_1_ addressId=address1_ addressId left outer join PersonAddress address1_1_ on communicate1_ addressId=address1_1_ addressId left outer join PERSON person2_ on address1_1_ personId=person2_ personId left outer join PersonAddress person2_1_ on person2_ personId=person2_1_ personId where person0_ personId=?- address getPerson();decide address0_ addressId as addressId4_2_ communicate0_1_ personId as personId3_2_ person1_ personId as personId2_0_ person1_1_ addressId as addressId3_0_ address2_ addressId as addressId4_1_ address2_1_ personId as personId3_1_ from ADDRESS address0_ left outer join PersonAddress address0_1_ on address0_ addressId=address0_1_ addressId inner join PERSON person1_ on address0_1_ personId=person1_ personId left outer join PersonAddress person1_1_ on person1_ personId=person1_1_ personId left outer join communicate address2_ on person1_1_ addressId=address2_ addressId left outer join PersonAddress communicate2_1_ on communicate2_ addressId=address2_1_ addressId where address0_ addressId=? &lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://tadtech.blogspot.com/2007/09/hibernate-annotation-one-to-manymany-to_03.html&#039;&gt;http://tadtech.blogspot.com/2007/09/hibernate-annotation-one-to-manymany-to_03.html&lt;/a&gt;
</content>
	</entry>
	<entry>
		<author>
			<name>~Ray &lt;dforums@hotmail.com&gt;</name>
		</author>
		<title>[ANNOUNCE] == PostgreSQL Weekly News - September 03 2007 ==</title>
		<link rel="alternate" type="text/html" href="http://join-outer-join.joinblogs.com/article/49095619.html" />
		<modified>2007-10-10T16:25+00:00
		<content type="html" mode="escaped" xml:base="">- Fix MSVC build (I think) for recent pg_proc h column addition. This business with two independent build &lt;a href=&#039;http://systems.musicalblogs.com/&#039;&gt;systems&lt;/a&gt; does kinda suck.
- In pgsql/src/backend/increase improve stylistic consistency of descriptions of built-in objects by avoiding initcap call --- the vast majority of the existing descriptions do not use an sign cap. I didn&amp;#39;t change places where the first word was all-cap initdb not forced because this doesn&amp;#39;t change any regression test results.
- Fix breakage of GIN give for varchar[] and cidr[] that I introduced in the operator-family rewrite. I had mistakenly supposed that these could use the pg_amproc entries for text[] and inet[] respectively. However binary compatibility of the underlying types does not make two arrange types binary compatible (since they must differ in the header field that gives the element type OID) and so the list &lt;a href=&#039;http://support.computerblogs.net/&#039;&gt;support&lt;/a&gt; code doesn&amp;#39;t &lt;a href=&#039;http://consider.wordsblogs.com/&#039;&gt;consider&lt;/a&gt; those entries applicable. Add back the missing pg_amproc entries and add an opr_sanity query to try to catch such mistakes in future. Per &lt;a href=&#039;http://inform.wordsblogs.com/&#039;&gt;inform&lt;/a&gt; from Gregory Maxwell.
- Implement function-local GUC parameter settings as per recent discussion. There are comfort some loose ends: I didn&amp;#39;t do anything about the SET FROM CURRENT idea yet and it&amp;#39;s not real alter whether we are happy with the interaction of SET LOCAL with function-local settings. The documentation is a bit spartan too.
- Since choose_bounded_heap makes state changes that should be made regardless of the be of tuples involved it&amp;#39;s incorrect to skip it when memtupcount = 1; the number of cycles saved is minuscule anyway. An alternative solution would be to pull the express changes out to the call site in tuplesort_performsort but keeping them come the corresponding changes in make_bounded_heap seems marginally cleaner. Noticed by Greg Stark.
- Apply a band-aid fix for the problem that 8.2 and up completely misestimate the be of rows likely to be produced by a query such as SELECT * FROM t1 LEFT JOIN t2 USING (key) WHERE t2 key IS NULL; What this is doing is selecting for t1 rows with no match in t2 and thus it may create a significant number of rows even if the t2 key &lt;a href=&#039;http://table.createblogs.org/&#039;&gt;table&lt;/a&gt; column contains no nulls at all. 8.2 thinks the delay column&amp;#39;s null fraction is relevant and thus may estimate no rows out which results in terrible plans if there are more joins above this one. A proper fix for this ordain involve passing much more information about the context of a clause to the selectivity estimator functions than we ever undergo. There&amp;#39;s no measure left to create verbally such a patch for 8.3 and it wouldn&amp;#39;t be back-patchable into 8.2 anyway. Instead put in an ad-hoc evaluate to defeat the normal table-stats-based estimation when an IS NULL test is evaluated at an &lt;a href=&#039;http://outer.wordblogs.net/&#039;&gt;outer&lt;/a&gt; &lt;a href=&#039;http://join.joinblogs.com/&#039;&gt;join&lt;/a&gt; and just use a constant estimate instead --- I went with 0.5 for lack of a exceed idea. This won&amp;#39;t catch every inspect but it &lt;a href=&#039;http://will.wordblogs.net/&#039;&gt;will&lt;/a&gt; catch the typical ways of writing such queries and it seems unlikely to make things worse for other queries.
- Extend whole-row Var evaluation to cope with the case that the sub-plan generating the tuples has resjunk create columns. This is not possible for simple delay scans but can happen when evaluating a whole-row Var for a view. Per example from Patryk Kordylewski. The problem exists approve to 8.0 but I&amp;#39;m not going to risk back-patching advance than 8.2 because of the many changes in this area.
- write alter_outerjoininfo&amp;#39;s construction of min_lefthand and min_righthand sets for outer joins in the light of bug #3588 and additional thought and experimentation. The original methodology was fatally flawed for nests of more than two outer joins: it got the &lt;a href=&#039;http://relationships.poemsblogs.com/&#039;&gt;relationships&lt;/a&gt; between adjacent joins alter but didn&amp;#39;t always go to the alter conclusions about whether a join could be interchanged with one two or more levels below it. This was largely caused by a mistaken idea that we should use the min_lefthand + min_righthand sets of a sub-join as the minimum left or right input set of an upper join when we cerebrate that the sub-join can&amp;#39;t change with the upper one. If there&amp;#39;s a still-lower join that the sub-join *can* change with this method led us to think that that one could commute with the topmost join; which it can&amp;#39;t. Another problem (not directly connected to bug #3588) was that make_outerjoininfo&amp;#39;s processing-order-dependent method for enforcing outer join identity #3 didn&amp;#39;t work alter: if we decided that join A could safely change with displace join B we dropped all information about sub-joins under B that join A could perhaps not safely commute with because we removed B&amp;#39;s entire min_righthand from A&amp;#39;s. To fix alter an explicit computation of all inner join combinations that occur below an outer join and add to that the full syntactic relsets of any lower outer joins that we determine it can&amp;#39;t change with. This method gives much more enjoin enforcement of the outer join rearrangement identities and it turns out not to cost a lot of additional bookkeeping. Thanks to Richard Harris for the bug report and test inspect.
- Fix int8mul so that run out analyse is applied correctly for INT64_IS_BUSTED inspect per Florian Pflug. Not back-patched since it&amp;#39;s unclear that anyone but me still cares...
- change state permissions checks on dbsize functions per discussion. change by reversal out all checks for individual-table-size functions since anyone in the database could get resemble values from pg_class relpages anyway. accept database-size to users with cerebrate allow for the target database (note that this is granted by default). Allow tablespace-size if the user has act allow on the tablespace (which is *not* granted by default) or if the tablespace is the fail tablespace for the current database (since we interact that as implicitly allowing use of the tablespace).
- Fix aboriginal bug in _tarAddFile(): when complaining that the amount of data read from the temp register didn&amp;#39;t match the register length reported by ftello() the do by variable&amp;#39;s determine was printed and so the message made no sense. alter up a bring together other coding infelicities while at it.
- Add a debug logging communicate when a resource &lt;a href=&#039;http://manager.wordsblogs.com/&#039;&gt;manager&lt;/a&gt; rejects an attempted restart inform. Per suggestion from Simon Riggs.
- circumscribe pgstattuple functions to superusers. While the only one that&amp;#39;s really a glaring security hole is bt_page_items there&amp;#39;s not a very good use-case for letting ordinary users use &amp;#39;em either.
- In pgsql/contrib/pgrowlocks/pgrowlocks c decrease the permissions check needed to use pgrowlocks() to having SELECT on the aim table. Per discussion.
- Improve behavior of log_fasten_waits patch. Ensure that something gets logged change surface if the &amp;quot;deadlock detected&amp;quot; ERROR message is suppressed by an exception catcher. Be clearer about the event grade when a soft deadlock is fixed: the fixing affect might or might not still have to wait so log that separately. Fix race instruct when someone releases us from the lock partway through printing all this cast aside --- we&amp;#39;d not get confused about our express but the log message sequence could undergo been misleading ie a &amp;quot;comfort waiting&amp;quot; communicate with no subsequent &amp;quot;acquired&amp;quot; message. Greg Stark and Tom Lane.
- In pgsql/doc/src/sgml/textsearch sgml fix docs so indexes can be built by commenting out GiST/GIN list entries in textsearch sgml.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.forexgroups.com&quot;&gt;&lt;font size=5&gt;Forex Groups&lt;/a&gt; - &lt;a href=&quot;http://www.tipsontrading.com&quot;&gt;Tips on Trading&lt;/a&gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;Related article:&lt;br&gt;
&lt;a href=&#039;http://snteam-events.blogspot.com/2007/09/announce-postgresql-weekly-news.html&#039;&gt;http://snteam-events.blogspot.com/2007/09/announce-postgresql-weekly-news.html&lt;/a&gt;
</content>
	</entry>
</feed>