Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Booking:
- - Id
- - Client : Client
- - StartDate
- - EndDate
- - DocumentMail: Message
- - Status: Enum { 1 = Prenotato, 2 = Confermato, 3 = Annullato }
- Client:
- - Id
- - FirstName
- - LastName
- - BornDate : Nullable
- - Email
- Message:
- - Id
- - ReceivedDate
- - AttachmentList: List<Attachment>
- Attachment
- - Id
- - Name
- POPOLAZIONE TABELLE:
- { 1,
- Client:{10, Mario, Rossi, 10/11/1975, mario@rossi@email.it},
- 25/12/2018, 06/01/2019,
- Message: { 1, 19/11/2018, List:{ 1, Passaporto | 2, CI | 3, Varie} }
- Status: 2
- }
- { 2,
- Client:{20, Gino, Verdi, null, gino.verdi@email.it},
- 25/08/2018, 31/08/2018,
- Message: { 2, 10/08/2018, List:{ 4, Passaporto } }
- Status: 2
- }
- { 3,
- Client:{30, Marco, Bruno, 10/11/1992, marco.bruno@virgilio.it},
- 22/11/2018, 08/12/2018,
- Message: null
- Status: 1
- }
- { 4,
- Client:{40, Francesco, Rifugio, null, dragon@gmail.com},
- 01/12/2018, 08/12/2018,
- Message: { 3, 20/09/2018, List:{ 5, CI | 6, ScanVarie} }
- Status: 1
- }
- { 5,
- Client:{40, Francesco, Rifugio, null, dragon@gmail.com},
- 01/12/2017, 08/12/2017,
- Message: { 4, 21/11/2017, List:{ 7, CI | 8, Passaporto} }
- Status: 2
- }
- { 6,
- Client:{10, Mario, Rossi, 10/11/1975, mario@rossi@email.it},
- 01/06/2019, 10/06/2019,
- Message: null,
- Status: 1
- }
- QUERY:
- - Tutti i booking già conclusi
- - Tutti i booking confermati
- - Tutti i clienti che hanno più di 30 anni
- - Tutte le prenotazioni fatte da un cliente
- - Elenco delle prenotazioni raggruppate per cliente
- - Tutti gli attachment che hanno nome CI
- - Verificare se esiste (e nel caso estrarre) un Booking prenotato, che inizierà fra 2 giorni, ma che non ha ancora un oggetto DocumentMail associato
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement