<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-2090359225814324407.post4001296918498818893..comments</id><updated>2011-01-16T20:44:32.773-08:00</updated><category term='သဒၵါ'/><category term='အႏုပညာ (ရုပ္ရွင္)'/><category term='ေကာက္ႏႈတ္ခ်က္'/><category term='အာကာသ သိပၸံ'/><category term='ကန္စြန္းဥ'/><category term='အႏုပညာ (ဂီတ)'/><category term='ဟာသ'/><category term='ေၾကျငာခ်က္'/><category term='အမွတ္တရ'/><category term='ေတာ္လွန္ေရး'/><category term='၀ါးတီး'/><category term='ဘာသာေရး'/><category term='ခြဲျခားဆက္ဆံျခင္း'/><category term='သခ်ၤာႏွင့္ သိပၸံ'/><category term='ကဗ်ာ'/><category term='သိပၸံႏွင့္ နည္းပညာ'/><category term='အိပ္မက္'/><category term='သိမွတ္ဖြယ္ရာ'/><category term='ျမန္မာ့ေရးရာ'/><category term='သတင္း'/><category term='ခ်စ္ျခင္းေမတၱာ'/><category term='လူ႕သဘာ၀'/><category term='ကာတြန္း'/><category term='ေရးေပးပါ'/><category term='က်န္းမာေရး'/><category term='အဂၤလိပ္စာ'/><category term='အႏုပညာ (ရသစာေပ)'/><category term='နည္းလမ္း'/><category term='အစဥ္အလာ'/><category term='လူမႈေရး သိပၸံ'/><category term='သက္ေသျပခ်က္'/><category term='သိပၸံႏွင့္ နည္းပညာ'/><category term='ေ၀ဖန္ေရး'/><category term='ကြန္ပ်ဴတာ သိပၸံ'/><category term='၀င္ကစြပ္'/><title type='text'>Comments on ေလာ ရွည္   -   က တဲ့ ပြဲ: SQL Statement Level တြင္ Optimize လုပ္၍ Query Exec...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://opera.lawshay.com/feeds/4001296918498818893/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2090359225814324407/4001296918498818893/comments/default'/><link rel='alternate' type='text/html' href='http://opera.lawshay.com/2010/10/sub-query-execution.html'/><author><name>Law Shay</name><uri>http://www.blogger.com/profile/17082805505462322540</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://3.bp.blogspot.com/-atfiF8eIHQE/TxV00GO_VbI/AAAAAAAAAAQ/q7WF1DRj8tM/s220/pdvd028ok0.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2090359225814324407.post-925379397128694169</id><published>2011-01-16T20:44:32.773-08:00</published><updated>2011-01-16T20:44:32.773-08:00</updated><title type='text'>@NightPro : 

No. The inner query will returns all...</title><content type='html'>@NightPro : &lt;br /&gt;&lt;br /&gt;No. The inner query will returns all customers who has bought non-furniture. In some cases where a customer bought both furniture and non-furniture, he will be included - which is semantically not what we intend to do.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2090359225814324407/4001296918498818893/comments/default/925379397128694169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2090359225814324407/4001296918498818893/comments/default/925379397128694169'/><link rel='alternate' type='text/html' href='http://opera.lawshay.com/2010/10/sub-query-execution.html?showComment=1295239472773#c925379397128694169' title=''/><author><name>Law Shay</name><uri>http://www.blogger.com/profile/15685445280882277569</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://opera.lawshay.com/2010/10/sub-query-execution.html' ref='tag:blogger.com,1999:blog-2090359225814324407.post-4001296918498818893' source='http://www.blogger.com/feeds/2090359225814324407/posts/default/4001296918498818893' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1375930308'/></entry><entry><id>tag:blogger.com,1999:blog-2090359225814324407.post-2648593919837632383</id><published>2011-01-12T00:28:51.081-08:00</published><updated>2011-01-12T00:28:51.081-08:00</updated><title type='text'>SELECT cust_id,cust_name,cust_add
FROM customer_ta...</title><content type='html'>SELECT cust_id,cust_name,cust_add&lt;br /&gt;FROM customer_table&lt;br /&gt;WHERE cust_id IN (SELECT cust_id FROM order_table WHERE ord_type &amp;lt;&amp;gt; &amp;#39;‘furniture’&amp;#39;)&lt;br /&gt;&lt;br /&gt;is that more improve ?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2090359225814324407/4001296918498818893/comments/default/2648593919837632383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2090359225814324407/4001296918498818893/comments/default/2648593919837632383'/><link rel='alternate' type='text/html' href='http://opera.lawshay.com/2010/10/sub-query-execution.html?showComment=1294820931081#c2648593919837632383' title=''/><author><name>NightPro</name><uri>http://www.blogger.com/profile/17178544191176569534</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://1.bp.blogspot.com/_evj17qTsqmI/TCC7MQjhMDI/AAAAAAAAABw/b5CS7PSwAoE/S220/DSC_6347.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://opera.lawshay.com/2010/10/sub-query-execution.html' ref='tag:blogger.com,1999:blog-2090359225814324407.post-4001296918498818893' source='http://www.blogger.com/feeds/2090359225814324407/posts/default/4001296918498818893' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-372809613'/></entry><entry><id>tag:blogger.com,1999:blog-2090359225814324407.post-7036096345114881119</id><published>2010-12-07T18:56:06.430-08:00</published><updated>2010-12-07T18:56:06.430-08:00</updated><title type='text'>NOT IN နဲ႕ NOT EXISTS ANY ျဖစ္ပါတယ္။ IN နဲ႕ EXISTS...</title><content type='html'>NOT IN နဲ႕ NOT EXISTS ANY ျဖစ္ပါတယ္။ IN နဲ႕ EXISTS ALL မဟုတ္ပါ။ &lt;br /&gt;&lt;br /&gt;NOT IN နဲ႕ NOT EXISTS ANY က Worst Case Time Complexity တူပါတယ္။ ဒါေပမဲ့ NOT EXISTS ANY ဆုိရင္ အျပင္ Query က Looping ပတ္ေနတဲ့ current key ေပၚ မူတည္ၿပီး အျပင္ Query က key တစ္ခုခ်င္းစီအတြက္ sub-query တစ္ခုစီ formulate ေနတာမုိ႕လုိ႕ cache management မွာ NOT IN က NOT EXISTS ထက္ပုိၿပီး efficient ျဖစ္ႏုိင္ပါတယ္။ (တကယ္လုိ႕ sub-query မွာ တုိက္စစ္တဲ့ field အတြက္ index မရွိရင္ေပါ့ေလ။)&lt;br /&gt;&lt;br /&gt;ေနာက္ဆက္တြဲအေနနဲ႕က ဘယ္ဟာပုိေကာင္းသလဲကုိ Query Optimizer အေနနဲ႕ သူ႕ဘာသာသူ ဆံုးျဖတ္ႏုိင္ေအာင္ (ဆုိလုိတာက ေစာေစာက index ရွိမရွိ ေပၚမူတည္ၿပီး Algorithm ေျပာင္းႏုိင္ေအာင္) လုိ႕ Sub-query မသံုးပဲ Outer Join ကုိ သံုးသင့္တယ္လုိ႕ ဆရာတစ္ေယာက္ကလဲ အီးေမးလ္နဲ႕ ေထာက္ျပထားပါတယ္။ ဒီမွာ မူရင္းပါ။&lt;br /&gt;&lt;br /&gt;&amp;quot;Personally, I prefer joins to nested selects. (because I am scared of&lt;br /&gt;recursion and stuffs like that.)&lt;br /&gt; &lt;br /&gt;If I am to slove the problem, I will &amp;quot;outer join&amp;quot; the table customers&lt;br /&gt;and the view (or temp table) of subset of orders which are not&lt;br /&gt;furniture, and report the ones where customerid in this order subset&lt;br /&gt;is null.&amp;quot;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2090359225814324407/4001296918498818893/comments/default/7036096345114881119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2090359225814324407/4001296918498818893/comments/default/7036096345114881119'/><link rel='alternate' type='text/html' href='http://opera.lawshay.com/2010/10/sub-query-execution.html?showComment=1291776966430#c7036096345114881119' title=''/><author><name>Law Shay</name><uri>http://www.blogger.com/profile/15685445280882277569</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://opera.lawshay.com/2010/10/sub-query-execution.html' ref='tag:blogger.com,1999:blog-2090359225814324407.post-4001296918498818893' source='http://www.blogger.com/feeds/2090359225814324407/posts/default/4001296918498818893' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1375930308'/></entry><entry><id>tag:blogger.com,1999:blog-2090359225814324407.post-2941740809203917791</id><published>2010-12-02T04:15:25.582-08:00</published><updated>2010-12-02T04:15:25.582-08:00</updated><title type='text'>ေနာက္ဆံုး စာေရးသူရဲ႔ အေျဖမွန္မွာ IN အစား EXISTS ကိ...</title><content type='html'>ေနာက္ဆံုး စာေရးသူရဲ႔ အေျဖမွန္မွာ IN အစား EXISTS ကိုေျပာင္းသံုးမယ္ဆိုရင္ time complexity တူမတူ သိခ်င္ပါတယ္.. သိထားတာက EXISTS ကလဲ sub query က record တခုနဲ႔ ေျပလည္ျပီဆိုတာနဲ႔ true ျပန္တယ္လို႔ သိထားလို႔ပါ.. ဘယ္ဟာက ပုိျပီး efficient ျဖစ္မလဲသိခ်င္ပါတယ္</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2090359225814324407/4001296918498818893/comments/default/2941740809203917791'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2090359225814324407/4001296918498818893/comments/default/2941740809203917791'/><link rel='alternate' type='text/html' href='http://opera.lawshay.com/2010/10/sub-query-execution.html?showComment=1291292125582#c2941740809203917791' title=''/><author><name>su</name><uri>http://www.blogger.com/profile/03701981206589770043</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://opera.lawshay.com/2010/10/sub-query-execution.html' ref='tag:blogger.com,1999:blog-2090359225814324407.post-4001296918498818893' source='http://www.blogger.com/feeds/2090359225814324407/posts/default/4001296918498818893' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1223173334'/></entry></feed>
