🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #1438

Re: ISTRUZIONE SQL

#1438
From: Vincenzo
Date: Tue, 27 Apr 2004 22:56
77 lines
3834 bytes
"Deskdeck" <pierangelodecrescenzo@virgilio.it> ha scritto nel messaggio
news:n0Wic.143737$rM4.5772336@news4.tin.it...
> Allora ricapitolando:
> ++++++++++++++++++++++++++++
> ----------------------------------------------
> Prima Tabella      - Tab_Inventario -dove e contenuto l'invetario
aggiornato
> del magazzino
>                              sono contenute due campi:
>                              codebar-quantita
> Seconda Tabella - Tab_Salva_Dati_Carico -dove vado a memorizzare titti i
> prodotti caricati
>                               i campi di questa tabella sono:
>                              data-codebar -quantita
> Terza Tabella    -   Tab_Salva_Dati_Scarico - dove vado a memorizzare
tutti
> i prodotti Scaricati
>                              dal Magazzino - I campi sono:
>                              data-codebar-quantita
> --------------------------------------------
>  ES:
> ------------------------------------------------
> tabella : Tab_Salva_Dati_Carico :MEMORIZZO TUTTI I DATI CARICATI IN
> MAGAZZINO:
> ----------------------------------------------
>       data            codebar    quantita
> |02-04-2004|PIPPO    | 1
> |03-04-2004|CICIO    | 1
> |04-04-2004|MIMMO| 1
> |05-04-2004|RICCIO | 1
> |06-04-2004|PIPPO    | 1
> ----------------------------------------------
> tabella : Tab_Salva_Dati_Scarico : MEMORIZZO TUTTI I DATI SCARICATI IN
> MAGAZZINO
> -----------------------------------------------
>       data            codebar    quantita
> |03-04-2004|PIPPO    | 1
> |04-04-2004|MIMMO| 1
> |04-04-2004|CICCIO | 1
> ---------------------------------------------
> tabella : Tab_Inventario : MEMORIZZO TUTTI I DATI in base ai carichi e
> scarichi in data ATTUALE:
> RISULTATO DEI CARICHI MENO GLI SCARICHI AL 06-04-2004
> ---------------------------------------------
> codebar    quantita
> |PIPPO    | 0
> |CICIO    | 0
> |MIMMO| 0
> |RICCIO | 1
> |PIPPO    | 1
> ----------------------------------------------
> ADESSO SE IO VOGLIO SAPERE IN BASE AI DATI SOPRA ELENCATI
> LO STATO DEL MAGAZZINO ALLA DATA 04-04-2004 COME POSSO FARE
> TRAMITE ISTRUZIONE SQL?
> -----------------
> IL RISULTATO CHE DOVREBBE DARMI QUESTA PROCEDURA SAREBBE LA SEGUENTE:
>  ---------------------------------------------
> codice    quantita
> |PIPPO    | 0
> |CICIO    | 0
> |MIMMO| 0
> ----------------------------------------------
>
>
>
>
Con l'istruzione cdate,oltre che a poter convertire le stringhe in date,ti
permette anche (tramite maggiore/minore)di confrontare due date.Basta che
usi un loop e con questo confronto ti estrai solo i dati
che ti servono.
BīŋŊ ovviamente devi saper usare anche un pochino Ssql per selezionare le
tabelle adatte e i relativi campi
ok?

Ciao e buon lavoro.

Ciao e buon lavoro.
Technical Details
Message-ID: <_yBjc.112625$hc5.4923545@news3.tin.it>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!border1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!news-out.tin.it!news-in.tin.it!news3.tin.it.POSTED!not-for-mail
References: <n0Wic.143737$rM4.5772336@news4.tin.it>

Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII
X-Google-Thread: f94ee,77aff8a17ec84157
X-Google-Attributes: gidf94ee,public
X-Google-ArrivalTime: 2004-04-27 15:57:02 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!border1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!news-out.tin.it!news-in.tin.it!news3.tin.it.POSTED!not-for-mail
From: "Vincenzo" <v.simone@tiscalinet.it>
Newsgroups: free.it.visual-basic
References: <n0Wic.143737$rM4.5772336@news4.tin.it>
Subject: Re: ISTRUZIONE SQL
Lines: 79
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
Message-ID: <_yBjc.112625$hc5.4923545@news3.tin.it>
Date: Tue, 27 Apr 2004 22:56:58 GMT
NNTP-Posting-Host: 80.181.112.109
X-Complaints-To: newsmaster@tin.it
X-Trace: news3.tin.it 1083106618 80.181.112.109 (Wed, 28 Apr 2004 00:56:58 MET DST)
NNTP-Posting-Date: Wed, 28 Apr 2004 00:56:58 MET DST
Organization: TIN