Bonjour,
je souhaite obtenir:
Produit1 Genre1 12
Produit1 Genre2 5
Produit1 Genre3 <null>
Produit2 Genre1 20
Produit2 Genre2 <null>
Produit2 Genre3 8
etc..
Tous les produits et les genres sont affichés meme s'ils ont une correspondance null pour un produit et un genre donné.
Voivi ma requête:
apparement c'est faux
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 select p.PROD_NOM, g.GENR_DESC, ap.APP_ID from PRODUIT p, GENRE g left outer join APPEL ap on ap.PROD_ID=p.PROD_ID and ap.GENR_iD=g.GENR_ID![]()
j'ai une erreur:
ISC ERROR MESSAGE:
no current record for fetch operation
Voici une autre requête:
et là ca fait pas ce que je veux
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 select p.PROD_NOM, g.GENR_DESC, ap.APP_ID from PRODUIT p left outer join APPEL ap on p.PROD_ID=ap.PROD_ID right outer join GENRE g on ap.GENR_iD=g.GENR_ID![]()
Une petit idée sur la bonne requête à effectuer?
Partager