jonybd Level: Master
 Registered: 18-01-2005 Posts: 115
|
Re: Cybercafe idea
here ... its perfect.
mysql>create table price (lowmin int(3),upmin int(3),price decimal
(4,2),permin decimal(4,2) );
mysql>insert into price values (0,15,0.50,0.02),(16,30,0.90,0.02),(31,60,1.50,0.02);
mysql> SELECT Price,15*permin AS Cost FROM price WHERE 15 BETWEEN Lowmin AND Upmin;
+-------+------+
| Price | Cost |
+-------+------+
| 0.50 | 0.30 |
+-------+------+
1 row in set (0.00 sec)
____________________________
Telecommunication programmer.
Sip, Isdn - technology.
|