Re: Enhancing Query Join to speed up Query

2013-06-13 Thread Alexander Pivovarov
>>> Hi >>> >>>> >>> >>>> I would actually do it like this…so that the set on the left of JOIN >>> >>>> becomes smaller >>> >>>> >>> >>>> SELECT a.item_id, a.create_dt >>&

Re: Enhancing Query Join to speed up Query

2013-06-13 Thread bharath vissapragada
; >>>> I would actually do it like this…so that the set on the left of JOIN >> >>>> becomes smaller >> >>>> >> >>>> SELECT a.item_id, a.create_dt >> >>>> FROM >> >>>> ( SELECT >> >>&

Re: Enhancing Query Join to speed up Query

2013-06-13 Thread Naga Vijay
t;>> > >>>> SELECT a.item_id, a.create_dt > >>>> FROM > >>>> ( SELECT > >>>> item_id, create_dt > >>>> FROM > >>>> A > >>>> WHERE >

Re: Enhancing Query Join to speed up Query

2013-06-13 Thread Navis류승우
A >>>> WHERE >>>>item_id = 'I001' >>>> AND >>>> category_name = 'C001' >>>> ) a >>>> JOIN >>>> b >>>>

Re: Enhancing Query Join to speed up Query

2013-06-13 Thread Igor Tatarinov
reate_dt >>> FROM >>> A >>> WHERE >>>item_id = 'I001' >>>AND >>> category_name = 'C001' >>> ) a >>> JOIN >>&g

Re: Enhancing Query Join to speed up Query

2013-06-13 Thread Naga Vijay
) a >> JOIN >> b >> ON >> a.item_id = b.item_id >> ; >> >> >> From: Naga Vijay >> Reply-To: "user@hive.apache.org" >> Date: Wednesday, June 12, 2013 9:17 PM >> To: "user@hive.apache.org" &

Re: Enhancing Query Join to speed up Query

2013-06-13 Thread Stephen Sprague
item_id = 'I001' >AND > category_name = 'C001' > ) a > JOIN > b > ON > a.item_id = b.item_id > ; > > > From: Naga Vijay > Reply-To: "user@hive.apache.org" > Date

Re: Enhancing Query Join to speed up Query

2013-06-12 Thread Sanjay Subramanian
13 9:17 PM To: "user@hive.apache.org<mailto:user@hive.apache.org>" mailto:user@hive.apache.org>> Subject: Enhancing Query Join to speed up Query Hi, Which of the two query options is better? SELECT a.item_id, a.create_dt FROM a JOIN b ON (a.item_id = b.item_id) WHERE a.item_

Enhancing Query Join to speed up Query

2013-06-12 Thread Naga Vijay
Hi, Which of the two query options is better? SELECT a.item_id, a.create_dt FROM a JOIN b ON (a.item_id = b.item_id) WHERE a.item_id = 'I001' ANDa.category_name = 'C001'; - or - SELECT a.item_id, a.create_dt FROM a JOIN b ON (a.item_id = b.item_id AND a.item_id = 'I001') WHERE