MySql Multiple Averages -
I have a table in which I have some prices for different types of hotel rooms. I want to ask. I get the average value of each room, however, mySQL gives me 1 average instead of 2, which I want. My code is as follows:
SELECT AVG (value) from `room` (ou = 'double') or (type = 'single');
I think my own statement is what I think is a bug ..
SELECT AGG (value), type` type` with `cell` type`
Comments
Post a Comment