Exforsys

Online Training

Brief Idea Needed

This is a discussion on Brief Idea Needed within the MySQL forums, part of the Database category; I want to know about inner joins and try my hands on that, Can someone explain in detail about inner ...


Go Back   Exforsys > Database > MySQL

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-22-2007, 06:02 AM
Senior Member
 
Join Date: Apr 2006
Posts: 153
cyrus is on a distinguished road
Brief Idea Needed

I want to know about inner joins and try my hands on that, Can someone explain in detail about inner join and provide me an example on this so that I could get a brief idea about this concept.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-23-2007, 08:09 AM
Junior Member
 
Join Date: Sep 2004
Posts: 6
sreevalliveturi
In MySQL, CROSS JOIN is a syntactic equivalent to INNER JOIN
In standard SQL, they are not equivalent. INNER JOIN is used with an ON clause, CROSS JOIN is used otherwise.
INNER JOIN and , (comma) are semantically equivalent in the absence of a join condition: both produce a Cartesian product between the specified tables (that is, each and every row in the first table is joined to each and every row in the second table).

If u have any further queries after going thru this u r free 2 ask nytime!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-28-2007, 02:22 PM
Senior Member
 
Join Date: Apr 2006
Posts: 144
caradoc is on a distinguished road
Using the inner join you can join two tables and get the rows of the two tables which satisfy the given condition given as predicate. One sample of using inner join in update query is given below for you to have a brief understanding on the concept of inner join.
update x
set column1 = y.columnc,
column2 = 'X'
from tablename1 x inner join tablename2 y
on x.columnname = y.columnname
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new questions
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
What Permission Needed sammy Linux 1 05-19-2007 03:33 PM
Idea needed about this Course priyaraji General 1 04-11-2007 03:06 AM
Idea Needed about Clustered Environment caradoc Java 1 04-07-2007 08:45 AM
Is Idea Needed Ralph Linux 3 03-13-2007 10:27 PM
Idea Needed Adrian Java 0 02-02-2007 07:48 AM


All times are GMT -4. The time now is 07:38 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.