<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Sybase Blog</title>
	<atom:link href="http://sybaseblog.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://sybaseblog.com</link>
	<description>Anything About Sybase ASE,Replication Server &#38; Sybase IQ.</description>
	<lastBuildDate>Thu, 09 Feb 2012 17:51:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>Comment on Connect Us by Vicki Gottlieb</title>
		<link>http://sybaseblog.com/connect-us/#comment-903</link>
		<dc:creator>Vicki Gottlieb</dc:creator>
		<pubDate>Thu, 09 Feb 2012 17:51:10 +0000</pubDate>
		<guid isPermaLink="false">http://sybaseblog.com/?page_id=872#comment-903</guid>
		<description>I need a solution on an issue relating to views.  I have a star schema where the fact table has many keys (set up as unique roles) to our date dimension.  I need to create unique views for each of these date roles in PowerDesigner. In each view, I need to further qualify the column names to express the role of the view (i.e. Date= Begin_Use_Date).  In addition, I need to make the comments of each column consistent with the role (i.e. so existing definition for the column date is modified to reflect that it is the beginning use date).   The way I am doing this now is creating a new view from the date dimension and manually modifying each column name and comments.  This is extremely laborious given the fact that our date dimension is &gt;20 columns and I need to create &gt;10 role-based views.  Any ideas would be helpful.</description>
		<content:encoded><![CDATA[<p>I need a solution on an issue relating to views.  I have a star schema where the fact table has many keys (set up as unique roles) to our date dimension.  I need to create unique views for each of these date roles in PowerDesigner. In each view, I need to further qualify the column names to express the role of the view (i.e. Date= Begin_Use_Date).  In addition, I need to make the comments of each column consistent with the role (i.e. so existing definition for the column date is modified to reflect that it is the beginning use date).   The way I am doing this now is creating a new view from the date dimension and manually modifying each column name and comments.  This is extremely laborious given the fact that our date dimension is &gt;20 columns and I need to create &gt;10 role-based views.  Any ideas would be helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Joins Algorithms by Akash Kumar</title>
		<link>http://sybaseblog.com/2011/01/28/joins-algorithms/#comment-902</link>
		<dc:creator>Akash Kumar</dc:creator>
		<pubDate>Thu, 09 Feb 2012 16:51:16 +0000</pubDate>
		<guid isPermaLink="false">http://sybaseblog.com/?p=411#comment-902</guid>
		<description>Thanks for the response. I sent an e-mail to sybanva@gmail.com
with info you asked.
Thanks again.</description>
		<content:encoded><![CDATA[<p>Thanks for the response. I sent an e-mail to <a href="mailto:sybanva@gmail.com">sybanva@gmail.com</a><br />
with info you asked.<br />
Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Joins Algorithms by sybanva</title>
		<link>http://sybaseblog.com/2011/01/28/joins-algorithms/#comment-897</link>
		<dc:creator>sybanva</dc:creator>
		<pubDate>Thu, 09 Feb 2012 03:27:25 +0000</pubDate>
		<guid isPermaLink="false">http://sybaseblog.com/?p=411#comment-897</guid>
		<description>Hi Akash,
Could you please let me know the optimization goal for you server. As join changes as with optimization goal.

Please mark a mail to sybanva@gmail for faster response. Thank you!</description>
		<content:encoded><![CDATA[<p>Hi Akash,<br />
Could you please let me know the optimization goal for you server. As join changes as with optimization goal.</p>
<p>Please mark a mail to sybanva@gmail for faster response. Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Joins Algorithms by Akash Kumar</title>
		<link>http://sybaseblog.com/2011/01/28/joins-algorithms/#comment-889</link>
		<dc:creator>Akash Kumar</dc:creator>
		<pubDate>Mon, 06 Feb 2012 22:09:47 +0000</pubDate>
		<guid isPermaLink="false">http://sybaseblog.com/?p=411#comment-889</guid>
		<description>Hello everybody ,
I need some help for a T-Sql  update statement using “Abstract plan” (AP) . It is in  ASE 15.

Some information about the tables involved in the query:
1)	There two tables named as “small” and “big”
2)	The table “small” has 1000 rows in it
3)	The table “big” has 20 million rows
4)	Join columns are “Id1” and “Id2”
5)	Both tables have unique non-clustered indexes on these two join columns

Index on (Id1 + Id2)

Without the abstract plan clause “plan” optimizer uses nested-loop-join.
My goal is to use HASH join instead of  Nested-Loop-Join.

So I use abstract plan in the query like below:

update big
       set Amount= 100.00
       from small s,big  b
       where s.Id1         = b.Id1
       and   s.Id2 = b.Id2
       plan &quot;(h_join (sort (t_scan s)) (sort (t_scan b)))&quot;       

I am getting message below and optimizer is using nested-Loop_join (please see the query – plan below)

Abstract Plan (AP) Warning : An error occured while applying the AP:
( h_join ( sort ( t_scan s ) ) ( sort ( t_scan b ) ) )
to the SQL query:
update big set Amount= 100.00 from small s,big b where s.Id1 = b.Id1 and s.Id2 = b.Id2
Failed to apply the top operator &#039;h_join &#039; of the following AP fragment:
( h_join ( sort ( t_scan s ) ) ( sort ( t_scan b ) ) )
The children of the &#039;h_join &#039; operator don&#039;t have t:q!he required properties, as ordering, partitioning.
The logical relational operation is valid at this point but it can not be implemented by this physical operator.
The AP property enforcer operators &#039;sort&#039;, &#039;xchg&#039; or &#039;enforce&#039; can be used to create the needed physical properties.
When an ordering is missing, the nl_join or h_join peer physical operators that don&#039;t need an ordering can be used.
The following template can be used as a basis for a valid AP:
( also_enforce ( update ( also_enforce ( join ( also_enforce ( scan ( table ( b big ) ) ) ) ( also_enforce ( scan ( table ( s small ) ) ) ) ) ) ) )
The optimizer will try to complete the compilation of this query; on success, the query will be executed normally.

QUERY PLAN FOR STATEMENT 1 (at line 9).
Optimized using Serial Mode
Optimized using the Abstract Plan in the PLAN clause.


    STEP 1
        The type of query is UPDATE.

    5 operator(s) under root

       &#124;ROOT:EMIT Operator (VA = 5)
       &#124;
       &#124;   &#124;UPDATE Operator (VA = 4)
       &#124;   &#124;  The update mode is direct.
       &#124;   &#124;
       &#124;   &#124;   &#124;NESTED LOOP JOIN Operator (VA = 3) (Join Type: Left Semi Join)
       &#124;   &#124;   &#124;
       &#124;   &#124;   &#124;   &#124;SORT Operator (VA = 1)
       &#124;   &#124;   &#124;   &#124; Using Worktable1 for internal storage.
       &#124;   &#124;   &#124;   &#124;
       &#124;   &#124;   &#124;   &#124;   &#124;SCAN Operator (VA = 0)
       &#124;   &#124;   &#124;   &#124;   &#124;  FROM TABLE
       &#124;   &#124;   &#124;   &#124;   &#124;  big
       &#124;   &#124;   &#124;   &#124;   &#124;  b
       &#124;   &#124;   &#124;   &#124;   &#124;  Table Scan.
       &#124;   &#124;   &#124;   &#124;   &#124;  Forward Scan.
       &#124;   &#124;   &#124;   &#124;   &#124;  Positioning at start of table.
       &#124;   &#124;   &#124;   &#124;   &#124;  Using I/O Size 4 Kbytes for data pages.
       &#124;   &#124;   &#124;   &#124;   &#124;  With LRU Buffer Replacement Strategy for data pages.
       &#124;   &#124;   &#124;
       &#124;   &#124;   &#124;   &#124;SCAN Operator (VA = 2)
       &#124;   &#124;   &#124;   &#124;  FROM TABLE
       &#124;   &#124;   &#124;   &#124;  small
       &#124;   &#124;   &#124;   &#124;  s
       &#124;   &#124;   &#124;   &#124;  Table Scan.
       &#124;   &#124;   &#124;   &#124;  Forward Scan.
       &#124;   &#124;   &#124;   &#124;  Positioning at start of table.
       &#124;   &#124;   &#124;   &#124;  Using I/O Size 4 Kbytes for data pages.
       &#124;   &#124;   &#124;   &#124;  With LRU Buffer Replacement Strategy for data pages.
       &#124;   &#124;
       &#124;   &#124;  TO TABLE
       &#124;   &#124;  big
       &#124;   &#124;  Using I/O Size 4 Kbytes for data pages.

Thanks</description>
		<content:encoded><![CDATA[<p>Hello everybody ,<br />
I need some help for a T-Sql  update statement using “Abstract plan” (AP) . It is in  ASE 15.</p>
<p>Some information about the tables involved in the query:<br />
1)	There two tables named as “small” and “big”<br />
2)	The table “small” has 1000 rows in it<br />
3)	The table “big” has 20 million rows<br />
4)	Join columns are “Id1” and “Id2”<br />
5)	Both tables have unique non-clustered indexes on these two join columns</p>
<p>Index on (Id1 + Id2)</p>
<p>Without the abstract plan clause “plan” optimizer uses nested-loop-join.<br />
My goal is to use HASH join instead of  Nested-Loop-Join.</p>
<p>So I use abstract plan in the query like below:</p>
<p>update big<br />
       set Amount= 100.00<br />
       from small s,big  b<br />
       where s.Id1         = b.Id1<br />
       and   s.Id2 = b.Id2<br />
       plan &#8220;(h_join (sort (t_scan s)) (sort (t_scan b)))&#8221;       </p>
<p>I am getting message below and optimizer is using nested-Loop_join (please see the query – plan below)</p>
<p>Abstract Plan (AP) Warning : An error occured while applying the AP:<br />
( h_join ( sort ( t_scan s ) ) ( sort ( t_scan b ) ) )<br />
to the SQL query:<br />
update big set Amount= 100.00 from small s,big b where s.Id1 = b.Id1 and s.Id2 = b.Id2<br />
Failed to apply the top operator &#8216;h_join &#8216; of the following AP fragment:<br />
( h_join ( sort ( t_scan s ) ) ( sort ( t_scan b ) ) )<br />
The children of the &#8216;h_join &#8216; operator don&#8217;t have t:q!he required properties, as ordering, partitioning.<br />
The logical relational operation is valid at this point but it can not be implemented by this physical operator.<br />
The AP property enforcer operators &#8216;sort&#8217;, &#8216;xchg&#8217; or &#8216;enforce&#8217; can be used to create the needed physical properties.<br />
When an ordering is missing, the nl_join or h_join peer physical operators that don&#8217;t need an ordering can be used.<br />
The following template can be used as a basis for a valid AP:<br />
( also_enforce ( update ( also_enforce ( join ( also_enforce ( scan ( table ( b big ) ) ) ) ( also_enforce ( scan ( table ( s small ) ) ) ) ) ) ) )<br />
The optimizer will try to complete the compilation of this query; on success, the query will be executed normally.</p>
<p>QUERY PLAN FOR STATEMENT 1 (at line 9).<br />
Optimized using Serial Mode<br />
Optimized using the Abstract Plan in the PLAN clause.</p>
<p>    STEP 1<br />
        The type of query is UPDATE.</p>
<p>    5 operator(s) under root</p>
<p>       |ROOT:EMIT Operator (VA = 5)<br />
       |<br />
       |   |UPDATE Operator (VA = 4)<br />
       |   |  The update mode is direct.<br />
       |   |<br />
       |   |   |NESTED LOOP JOIN Operator (VA = 3) (Join Type: Left Semi Join)<br />
       |   |   |<br />
       |   |   |   |SORT Operator (VA = 1)<br />
       |   |   |   | Using Worktable1 for internal storage.<br />
       |   |   |   |<br />
       |   |   |   |   |SCAN Operator (VA = 0)<br />
       |   |   |   |   |  FROM TABLE<br />
       |   |   |   |   |  big<br />
       |   |   |   |   |  b<br />
       |   |   |   |   |  Table Scan.<br />
       |   |   |   |   |  Forward Scan.<br />
       |   |   |   |   |  Positioning at start of table.<br />
       |   |   |   |   |  Using I/O Size 4 Kbytes for data pages.<br />
       |   |   |   |   |  With LRU Buffer Replacement Strategy for data pages.<br />
       |   |   |<br />
       |   |   |   |SCAN Operator (VA = 2)<br />
       |   |   |   |  FROM TABLE<br />
       |   |   |   |  small<br />
       |   |   |   |  s<br />
       |   |   |   |  Table Scan.<br />
       |   |   |   |  Forward Scan.<br />
       |   |   |   |  Positioning at start of table.<br />
       |   |   |   |  Using I/O Size 4 Kbytes for data pages.<br />
       |   |   |   |  With LRU Buffer Replacement Strategy for data pages.<br />
       |   |<br />
       |   |  TO TABLE<br />
       |   |  big<br />
       |   |  Using I/O Size 4 Kbytes for data pages.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sybase DBA Training by Wayne Hon</title>
		<link>http://sybaseblog.com/sybase-dba-training/#comment-823</link>
		<dc:creator>Wayne Hon</dc:creator>
		<pubDate>Mon, 30 Jan 2012 16:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://sybaseblog.com/?page_id=687#comment-823</guid>
		<description>Please tell me the dates / times for this training.
Sybase DBA Training, etc.
Thank you.</description>
		<content:encoded><![CDATA[<p>Please tell me the dates / times for this training.<br />
Sybase DBA Training, etc.<br />
Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sybase Interview Ques by Purusothaman</title>
		<link>http://sybaseblog.com/interviewquestions/#comment-103</link>
		<dc:creator>Purusothaman</dc:creator>
		<pubDate>Tue, 13 Sep 2011 15:30:10 +0000</pubDate>
		<guid isPermaLink="false">http://sybaseblog.com/?page_id=159#comment-103</guid>
		<description>Good and provided very useful information</description>
		<content:encoded><![CDATA[<p>Good and provided very useful information</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sybase Interview Ques by sybanva</title>
		<link>http://sybaseblog.com/interviewquestions/#comment-102</link>
		<dc:creator>sybanva</dc:creator>
		<pubDate>Tue, 23 Aug 2011 18:07:14 +0000</pubDate>
		<guid isPermaLink="false">http://sybaseblog.com/?page_id=159#comment-102</guid>
		<description>Whatever u said , its correct!

Will appreciate if u send your ques on mail. as this is comment section for interview questions. Thnx.</description>
		<content:encoded><![CDATA[<p>Whatever u said , its correct!</p>
<p>Will appreciate if u send your ques on mail. as this is comment section for interview questions. Thnx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sybase Interview Ques by Vinz DBA</title>
		<link>http://sybaseblog.com/interviewquestions/#comment-101</link>
		<dc:creator>Vinz DBA</dc:creator>
		<pubDate>Tue, 23 Aug 2011 07:46:49 +0000</pubDate>
		<guid isPermaLink="false">http://sybaseblog.com/?page_id=159#comment-101</guid>
		<description>Hi,

I have a doubt in tempdb bindings.

As per my understanding &quot;binding a particular login to a specifice database&quot; is all the activities carried out for example sorting, calculating agregates etc.... will be done in the binded temporary database for that particular login.

Am i correct? if wrong please suggest.

Regards,
Vinz</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have a doubt in tempdb bindings.</p>
<p>As per my understanding &#8220;binding a particular login to a specifice database&#8221; is all the activities carried out for example sorting, calculating agregates etc&#8230;. will be done in the binded temporary database for that particular login.</p>
<p>Am i correct? if wrong please suggest.</p>
<p>Regards,<br />
Vinz</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sybase Interview Ques by Vinz DBA</title>
		<link>http://sybaseblog.com/interviewquestions/#comment-100</link>
		<dc:creator>Vinz DBA</dc:creator>
		<pubDate>Mon, 22 Aug 2011 14:45:15 +0000</pubDate>
		<guid isPermaLink="false">http://sybaseblog.com/?page_id=159#comment-100</guid>
		<description>Hi

It worked successfully for one server. if we want to set for multiple servers how to set it.

I tried it but dint get the result. Please help me.

Regards,
Vinz</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>It worked successfully for one server. if we want to set for multiple servers how to set it.</p>
<p>I tried it but dint get the result. Please help me.</p>
<p>Regards,<br />
Vinz</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sybase Interview Ques by Vinz DBA</title>
		<link>http://sybaseblog.com/interviewquestions/#comment-99</link>
		<dc:creator>Vinz DBA</dc:creator>
		<pubDate>Mon, 22 Aug 2011 08:53:46 +0000</pubDate>
		<guid isPermaLink="false">http://sybaseblog.com/?page_id=159#comment-99</guid>
		<description>Thanks, Will check it out.</description>
		<content:encoded><![CDATA[<p>Thanks, Will check it out.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

