[fr-users] SQL regrouper des enregistrements

barbault <[email protected]>
Newsgroups gmane.comp.openoffice.general.french,gmane.comp.documentfoundation.libreoffice.user
Message-ID <1300207626.2059.23.camel@buro-jm>
Bonjour,
J'ai une table "R" comme celle-ci:

id | ad | ne | nm |
-------------------
1  | a  |  d |    |
2  | a  |    |  e |
3  | b  |  f |    |
4  | c  |    |  g |

et "S" comme ceci:
id | ad |  n | s |
-------------------
1  | a  |  d |  f |
2  | a  |  e |  m |
3  | b  |  f |  f |
4  | c  |  g |  m |

En réalité j'ai 600 enregistrements, 
J'ai besoin d'une requête SQL qui me donne ceci

 ad | ne | nm |
-------------------
 a  |  d |  e |
 b  |  f |    |
 c  |    |  g |

C'est un fichier d'adhérents d'une association, ad est une adresse
postale, ne le prénom de l'épouse, nm du mari, n celui de l'adhérent, s
son sexe.
Mon projet est de faire des étiquettes (le moins possible) pour envoyer
du courrier à tous les adhérents.

Je suis presque débutant en SQL.
Est-ce possible? 
Ai-je raison de continuer à chercher dans les manuels?
Dois-je utiliser "R" ou "S"?

D'avance merci de votre aide.
JM Barbault


--
------------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected] with Subject: help
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.