Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
First Receipt
Desk no.:
DINE_IN
37.500
25.000
12.500
Total
Service
Tax 11 %
75.500
0
8.305
83.805
6.000
77.805
MasterCard
Second Receipt
Desk no.:
DELIVERY
37.500
25.000
12.500
Total
Service
Tax 11 %
75.500
7.550
9.136
92.186
0
92.186
Cash
===========================================
Restaurant ABC Hotel DEF
Third Receipt
Desk no.:
DINE_IN
25.000
12.500
25.000
Total
Service
Tax 11 %
62.500
0
6.875
69.375
0
69.375
Cash
1.
2.
3.
4.
5.
138.000
75.500
b. The output is
Date
# of Transaction
15/10/2014
147.180
92.186
79.789
c. The output is
Date
Type of Payment
15/10/2014
15/10/2014
Cash
MasterCard
161.561
77.905
d. The output is
Sold Menu
Avocado Prawn Coctail
Assorted Fresh Juices
Assorted Chilled Juices
# Menu
8
5
4
B. (25%)
1. Find the equivalent type(s) in PostgreSQL and give brief explanation for:
a. varchar in SQL
b. int
c. date
2. How to create a table in database using PostgreSQL (Describe briefly)
3. Using
a.
b.
c.