.dsy:it.
Show 150 posts per page

.dsy:it. (http://www.dsy.it/forum/)
- Filez (http://www.dsy.it/forum/forumdisplay.php?forumid=41)
-- [Mazzoleni-Perlasca] esame 25-09-06 (http://www.dsy.it/forum/showthread.php?threadid=27294)


Posted by mena on 26-09-2006 09:50:

[Mazzoleni-Perlasca] esame 25-09-06

Io lo allego.... se qualcuno è così figo da risolverlo e postare le soluzioni... :approved:

Soprattutto le query 3 - 4 e il trigger..

Grazie

__________________
Perché le idee (sventagliata) sono come le tette; se non sono abbastanza grandi si possono sempre gonfiare (risate).

Stefano Benni (La compagnia dei celestini).


Posted by mena on 26-09-2006 10:24:

mi sono dimenticato l'allegato... :oops:

__________________
Perché le idee (sventagliata) sono come le tette; se non sono abbastanza grandi si possono sempre gonfiare (risate).

Stefano Benni (La compagnia dei celestini).


Posted by -MICKY- on 26-01-2007 14:32:

Allego il db da cui si possono vedere le query e lo schema relazionale.. gli er li faccio su carta e non ho voglia di rifarli in paint..
qualcuno sa fare i trigger o sa da dove si può imparare a farli??

Grazie.


Posted by KOLODAN on 18-06-2007 20:29:

CREATE TRIGGER VERIFICA_SCA
AFTER INSERT ON VENDUTI
FOR EACH ROW
WHEN TO_DAYS(GETDATE()) - TO_DAYS(DATA_SCADENZA) < 10
INSERT INTO VENDUTI_IN_SCADENZA
VALUES (NEW.PRIMOATTRIB, NEW.SECONDOATTRIB,...,NEW.ULTIMOATTRIB);

questa è la mia soluzione, credo sia giusta, non ho fatto il resto dell'esame perchè volevo esercitarmi solo sui trigger perciò mi sono inventato sia i nomi delle tabelle sia gli attributi. spero di essere stato utile.
DC

__________________
" Whoever fights monsters should see to it that in the process he does not become a monster.
And when youlook long into the abyss, the abyss also looks into you".
- Frederick Wilhelm Nietzche -


All times are GMT. The time now is 21:49.
Show all 4 posts from this thread on one page

Powered by: vBulletin Version 2.3.1
Copyright © Jelsoft Enterprises Limited 2000 - 2002.