4 CREATE TABLE money_data (m money);
5 INSERT INTO money_data VALUES ('123');
6 SELECT * FROM money_data;
12 SELECT m + '123' FROM money_data;
18 SELECT m + '123.45' FROM money_data;
24 SELECT m - '123.45' FROM money_data;
30 SELECT m * 2 FROM money_data;
36 SELECT m / 2 FROM money_data;
43 SELECT m = '$123.00' FROM money_data;
49 SELECT m != '$124.00' FROM money_data;
55 SELECT m <= '$123.00' FROM money_data;
61 SELECT m >= '$123.00' FROM money_data;
67 SELECT m < '$124.00' FROM money_data;
73 SELECT m > '$122.00' FROM money_data;
80 SELECT m = '$123.01' FROM money_data;
86 SELECT m != '$123.00' FROM money_data;
92 SELECT m <= '$122.99' FROM money_data;
98 SELECT m >= '$123.01' FROM money_data;
104 SELECT m > '$124.00' FROM money_data;
110 SELECT m < '$122.00' FROM money_data;
116 SELECT cashlarger(m, '$124.00') FROM money_data;
122 SELECT cashsmaller(m, '$124.00') FROM money_data;
128 SELECT cash_words(m) FROM money_data;
130 -------------------------------------------------
131 One hundred twenty three dollars and zero cents
134 SELECT cash_words(m + '1.23') FROM money_data;
136 --------------------------------------------------------
137 One hundred twenty four dollars and twenty three cents
140 DELETE FROM money_data;
141 INSERT INTO money_data VALUES ('$123.45');
142 SELECT * FROM money_data;
148 DELETE FROM money_data;
149 INSERT INTO money_data VALUES ('$123.451');
150 SELECT * FROM money_data;
156 DELETE FROM money_data;
157 INSERT INTO money_data VALUES ('$123.454');
158 SELECT * FROM money_data;
164 DELETE FROM money_data;
165 INSERT INTO money_data VALUES ('$123.455');
166 SELECT * FROM money_data;
172 DELETE FROM money_data;
173 INSERT INTO money_data VALUES ('$123.456');
174 SELECT * FROM money_data;
180 DELETE FROM money_data;
181 INSERT INTO money_data VALUES ('$123.459');
182 SELECT * FROM money_data;