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

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -