Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.lang.visual-basic > #19152
| From | "Sauro" <vicchi@crsscala.it> |
|---|---|
| Newsgroups | it.comp.lang.visual-basic |
| Subject | Istruzione SQL |
| Date | 2017-09-20 16:54 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <optvfn$k7q$1@gioia.aioe.org> (permalink) |
Immaginiamo le seguenti due tabelle: ANAGRAFICA coi seguenti campi:: CODICE DESCRIZIONE MOVIMENTI coi seguenti campi:: COD_ART DATA_MOV QUANTITA La seguente istruzione SQL: SELECT * FROM ANAGRAFICHE INNER JOIN MOVIMENTI ON ANAGRAFICHE.CODICE=MOVIMENTI.COD_ART ORDER BY DATA_MOV trova tutti i movimenti con la relativa anagrafica. Ci possono quindi essere più movimenti per la stessa anagrafica. Mi sembra di ricordare che esista un'ulteriore istruzione da inserire nella stringa SQL che farebbe in modo che per ogni anagrafica venga trovato solo il primo movimento anche se ne esistono diversi. O, forse, me lo sono solo sognato. Saluti a tutti Sauro
Back to it.comp.lang.visual-basic | Previous | Next — Next in thread | Find similar
Istruzione SQL "Sauro" <vicchi@crsscala.it> - 2017-09-20 16:54 +0200
Re: Istruzione SQL Antologiko <antologiko@gmail.com> - 2017-09-23 09:14 -0700
Re: Istruzione SQL "Sauro" <vicchi@crsscala.it> - 2017-09-26 17:52 +0200
Re: Istruzione SQL Greg <greg@alicie.com> - 2017-09-27 15:48 +0200
Re: Istruzione SQL "Sauro" <vicchi@crsscala.it> - 2017-09-27 16:29 +0200
csiph-web