Select php sql

johann -  
 greg_one -
jai un probleme voici mes tables:
client(refcli, nomcli, prenomcli, reflivre)
livre(reflivre, titre)

je cherche a afficher les titres de la table LIVRE pour lesquel livre.reflivre est egal a client.reflivre avec un nomcli et un prenoncli particulier

si vous pouvez m'aider SVP c urgent et j'y arrive pas MERCI a TOUS

1 réponse

  1. greg_one
     
    select a.titre
    from livre a,
    client b,
    where a.reflivre = b.reflivre
    and b.nomcli = 'XX'
    and b.prenomcli = 'YY'

    voilà
    0
    1. greg_one
       
      select a.titre
      from livre a,
      client b
      where a.reflivre = b.reflivre
      and b.nomcli = 'XX'
      and b.prenomcli = 'YY'

      sans la virgule après b, bien sur...
      0