Tec&Cult
Vous souhaitez réagir à ce message ? Créez un compte en quelques clics ou connectez-vous pour continuer.
Tec&Cult

Technologie et Culture
 
AccueilAccueil  PortailPortail  GalerieGalerie  Dernières imagesDernières images  RechercherRechercher  S'enregistrerS'enregistrer  Connexion  
Sujets similaires
    Rechercher
     
     

    Résultats par :
     
    Rechercher Recherche avancée
    Derniers sujets
    » Que faire à Paris le week-end du 15 août ?
    SQL Joins SQL Joins EmptyJeu 11 Aoû - 11:20 par Admin

    » T-shirt Mec de Paname
    SQL Joins SQL Joins EmptyMer 3 Aoû - 17:04 par Admin

    » dating web site uk dating free parent single
    SQL Joins SQL Joins EmptyMer 3 Aoû - 10:56 par Invité

    » rsvp dating website seeking bisexual
    SQL Joins SQL Joins EmptyLun 1 Aoû - 2:08 par Invité

    » dating french woman gay bottom seeking tops
    SQL Joins SQL Joins EmptyDim 31 Juil - 21:59 par Invité

    » dating philippine woman man seeking wealthy woman
    SQL Joins SQL Joins EmptyVen 29 Juil - 12:51 par Invité

    » dating lesbian n r cacee cobb dating lachey nick
    SQL Joins SQL Joins EmptyVen 29 Juil - 3:17 par Invité

    » single dating chat room relationship dating advice
    SQL Joins SQL Joins EmptyJeu 28 Juil - 0:21 par Invité

    » скачать порно тетя скачать порнофото семейное
    SQL Joins SQL Joins EmptyJeu 21 Juil - 14:34 par Invité

    Navigation
     Portail
     Index
     Membres
     Profil
     FAQ
     Rechercher
    Forum
    Partenaires
    Forum gratuit


    Tchat Blablaland
    Le deal à ne pas rater :
    Bon plan achat en duo : 2ème robot cuiseur Moulinex Companion ...
    600 €
    Voir le deal

    Partagez | 
     

     SQL Joins SQL Joins

    Voir le sujet précédent Voir le sujet suivant Aller en bas 
    AuteurMessage
    Admin
    Admin


    Messages : 156
    Date d'inscription : 20/05/2010

    SQL Joins SQL Joins _
    MessageSujet: SQL Joins SQL Joins   SQL Joins SQL Joins EmptyJeu 23 Juin - 15:54

    http://toptech.geekaddict.net/
    SQL Joins

    SQL Joins are used to relate information in different tables. A Join condition is a part of the sql query that retrieves rows from two or more tables. A SQL Join condition is used in the SQL WHERE Clause of select, update, delete statements.

    The Syntax for joining two tables is:

    SELECT col1, col2, col3...
    FROM table_name1, table_name2
    WHERE table_name1.col2 = table_name2.col1;

    If a sql join condition is omitted or if it is invalid the join operation will result in a Cartesian product. The Cartesian product returns a number of rows equal to the product of all rows in all the tables being joined. For example, if the first table has 20 rows and the second table has 10 rows, the result will be 20 * 10, or 200 rows. This query takes a long time to execute.

    Lets use the below two tables to explain the sql join conditions.

    database table "product";

    product_id product_name supplier_name unit_price
    100 Camera Nikon 300
    101 Television Onida 100
    102 Refrigerator Vediocon 150
    103 Ipod Apple 75
    104 Mobile Nokia 50
    database table "order_items";

    order_id product_id total_units customer
    5100 104 30 Infosys
    5101 102 5 Satyam
    5102 103 25 Wipro
    5103 101 10 TCS
    SQL Joins can be classified into Equi join and Non Equi join.

    1) SQL Equi joins

    It is a simple sql join condition which uses the equal sign as the comparison operator. Two types of equi joins are SQL Outer join and SQL Inner join.

    For example: You can get the information about a customer who purchased a product and the quantity of product.

    2) SQL Non equi joins

    It is a sql join condition which makes use of some comparison operator other than the equal sign like >, <, >=, <=
    Revenir en haut Aller en bas
    http://toptech.geekaddict.net
     

    SQL Joins SQL Joins

    Voir le sujet précédent Voir le sujet suivant Revenir en haut 
    Page 1 sur 1

    Permission de ce forum:Vous ne pouvez pas répondre aux sujets dans ce forum
    Tec&Cult :: Informatique :: Oracle :: Oracle PL SQL-
    Sauter vers: