Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.lang.visual-basic > #19152

Istruzione SQL

Path csiph.com!aioe.org!.POSTED!not-for-mail
From "Sauro" <vicchi@crsscala.it>
Newsgroups it.comp.lang.visual-basic
Subject Istruzione SQL
Date Wed, 20 Sep 2017 16:54:46 +0200
Organization Aioe.org NNTP Server
Lines 29
Message-ID <optvfn$k7q$1@gioia.aioe.org> (permalink)
NNTP-Posting-Host rlpmXbd3h38QQiz3Eh+xmw.user.gioia.aioe.org
X-Complaints-To abuse@aioe.org
X-Priority 3
X-Notice Filtered by postfilter v. 0.8.2
X-MimeOLE Produced By Microsoft MimeOLE V6.00.2900.6157
X-Newsreader Microsoft Outlook Express 6.00.2900.5931
X-MSMail-Priority Normal
X-RFC2646 Format=Flowed; Original
Xref csiph.com it.comp.lang.visual-basic:19152

Show key headers only | View raw


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 | NextNext in thread | Find similar


Thread

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