Exforsys
+ Reply to Thread
Results 1 to 3 of 3

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 ...

  1. #1
    cyrus is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    128

    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.


  2. #2
    sreevalliveturi is offline Junior Member Array
    Join Date
    Sep 2004
    Answers
    1
    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!


  3. #3
    caradoc is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    122
    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


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...