|
| HOMEPAGE | INDICE FORUM | REGOLAMENTO | ::. | NEI PREFERITI | .:: | RSS Forum | RSS News | NEWS web | NEWS software | |
| PUBBLICITA' | | | ARTICOLI | WIN XP | VISTA | WIN 7 | REGISTRI | SOFTWARE | MANUALI | RECENSIONI | LINUX | HUMOR | HARDWARE | DOWNLOAD | | | CERCA nel FORUM » | |
06-06-2012, 13.46.56 | #1 |
Newbie
Registrato: 06-06-2012
Messaggi: 1
|
TRIGGER SQL
1trigger:Il bene venduto deve afferire alla categoria di vendita del corrispondente venditore le tabelle che vengono prese in considerazione sono: BENE(Id_bene, Descrizione, Scadenza, PrezzoUnitario,QuantitàTot,Categoria) la chiave è id_bene VENDE( Venditore,Bene, DataInserzione) la kiave è Venditore,Bene VENDITORE( P_iva, RagioneSociale,Categoria,E_mail) la kiave è P_iva N.B Venditore e P_iva sono la stessa cosa e Bene e Id_bene,lo stesso. 2 trigger: “Verificare che la quantità totale di bene coincida perfettamente con quello dell'offerta” altra tabella che serve a mio avviso per il 2trigger è: ACQUISTATO( Bene, Transazione, Quantità) Per quanto riguarda questo secondo trigger hoscritto qualcosa ma non so come scriverlo sotto forma di triger : (NOT EXISTS(SELECT * FROM bene B WHERE QuantitàTot < (SELECT SUM(Quantità) FROM acquistato WHERE Bene= B.Id_bene))) VI PREGO AIUTATEMI è URGENTE GRAZIE A TUTTI |
Utenti attualmente attivi che stanno leggendo questa discussione: 1 (0 utenti e 1 ospiti) | |
Strumenti discussione | |
|
|
Discussioni simili | ||||
Discussione | Autore discussione | Forum | Risposte | Ultimo messaggio |
[XP] SQL Server | bimbomix | Windows 7/Vista/XP/ 2003 | 0 | 04-04-2008 17.01.09 |
Segnalazioni KB (Knowledge Base) Microsoft | giancarlof | Segnalazioni Web | 71 | 12-07-2007 10.04.00 |
Foxy SQL 1.0 | Macao | Archivio News Software | 0 | 06-05-2005 01.01.56 |
Impossibile avviare SQL Server | GiulioCesare | Software applicativo | 0 | 03-01-2005 23.28.52 |
errore SQL URGENTE!!!! | woodrook | Windows 7/Vista/XP/ 2003 | 1 | 29-10-2004 12.50.03 |