• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Theta Join

 
Ranch Hand
Posts: 856
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am unable to makeout the meaning of theta join. To me there seems no difference between theta join and inner join.
 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Theta join is the join when two entities are joined not on the relationship exist between them but explicitly specifying some other field.

Select b
from b.item,c.categories
where b.(something other than relationship)=c.(something)

Inner join is the join on relationship entities and no need to sepecify the join in =,only the matching entities are there that exist in both the entities

select b
from b.item INNER JOIN c.categoreis

Outer join when you want all the field of one side to exist whether match is found or not LEFT ,RIGHT,

Correct me if i am wrong
 
Amandeep Singh
Ranch Hand
Posts: 856
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks...

even if there is no relationship between the comparing the field's, it dosen't matter, the same thing we are doing in inner join.

i am again confused here for the differnce between theta join and inner join.

i thibk it would be best to give a sql query for theta join and inner join. Then highlight the differnce between them.
 
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Inner Join:
based on database relationship. apply existing pk, fk relationship. you no need to specify how to join

Theta join:
the relationship is made by you explicitly. no primary key foreign key relationship in db level. so you have to explicitly specify fields used to define relationship.
 
Amandeep Singh
Ranch Hand
Posts: 856
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Chaminda, i am unable to understand, can you give example.
 
Is this the real life? Is this just fantasy? Is this a tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic