Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi A - F > Basi di dati ~ comunicazione digitale > progetto catering query sql
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
stell4r
.consigliere.

User info:
Registered: Nov 2007
Posts: 107 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 13:26:51 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
progetto catering query sql

Ragazzi voi come avete svolto la vista?

g. costruire la vista dei piatti che non contengono come ingrediente l’aglio, usati in
almeno 3 diversi menù.

17-10-2008 11:05
Click Here to See the Profile for stell4r Click here to Send stell4r a Private Message Find more posts by stell4r Add stell4r to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
stell4r
.consigliere.

User info:
Registered: Nov 2007
Posts: 107 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 13:26:51 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

upppp

20-10-2008 15:30
Click Here to See the Profile for stell4r Click here to Send stell4r a Private Message Find more posts by stell4r Add stell4r to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ildiff
.illuminato.

User info:
Registered: May 2007
Posts: 154 (0.02 al dì)
Location: Milan
Corso: Informatica per la Comunicazione
Anno: 3 + 2
Time Online: 1 Day, 3:06:01: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

code:
CREATE OR REPLACE VIEW PiattiNoAglioInAlmeno3Menu AS SELECT NomePiatto FROM Portata WHERE NomePiatto IN ( SELECT NomePiatto FROM Piatti EXCEPT SELECT NomePiatto FROM SiUtilizza WHERE Nome = 'Aglio' ) GROUP BY NomePiatto HAVING COUNT(DISTINCT NomeMenu) >= 3;

28-10-2008 19:19
Click Here to See the Profile for ildiff Click here to Send ildiff a Private Message Find more posts by ildiff Add ildiff to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
karplus
.grande:maestro.

User info:
Registered: Jun 2004
Posts: 1207 (0.16 al dì)
Location:
Corso: Informatica per la Comunicazione (magistrale)
Anno:
Time Online: 7 Days, 2:28:19 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

raga ma il trigger che fa partire la liquidazione dei dipendenti all'inserimento di un evento dell'anno nuovo, come caspita si fa a farlo usando l'sql standard?

Il prof ci ha detto espressamente di usare solo sql standard, quindi niente select extract year from 'anno'... :(
Ma come si fa a fare questo trigger senza discriminare in base all'anno??

12-11-2008 23:24
Click Here to See the Profile for karplus Click here to Send karplus a Private Message Find more posts by karplus Add karplus to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Vikyg13
.arcimaestro.

User info:
Registered: Feb 2006
Posts: 290 (0.04 al dì)
Location:
Corso: Comunicazione Digitale
Anno: Primo
Time Online: 3 Days, 1:12:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ma come solo "sql standard"??

Perchè Extract Years From non è sql standard? :?

Noi per le funzioni trigger abbiamo usato plpgsql...

13-11-2008 14:32
Click Here to See the Profile for Vikyg13 Click here to Send Vikyg13 a Private Message Find more posts by Vikyg13 Add Vikyg13 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
karplus
.grande:maestro.

User info:
Registered: Jun 2004
Posts: 1207 (0.16 al dì)
Location:
Corso: Informatica per la Comunicazione (magistrale)
Anno:
Time Online: 7 Days, 2:28:19 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Per i trigger anche noi abbiamo usato plpgsql, ma io ho il dubbio se select extract, date_trunc o date_part facciano parte dell'sql standard o no... :cry:

[EDIT] ok il prof mi ha detto via mail che select extract si può usare

Last edited by karplus on 14-11-2008 at 14:20

13-11-2008 15:08
Click Here to See the Profile for karplus Click here to Send karplus a Private Message Find more posts by karplus Add karplus to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 02:44.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.031 seconds (78.62% PHP - 21.38% MySQL) con 26 query.