fixed task№4 boolean
This commit is contained in:
@@ -68,5 +68,5 @@ select category, name, price, AVG(price) over (partition by category) as avg_pri
|
||||
from products_extended
|
||||
)
|
||||
select category, name, price, avg_price,
|
||||
case when price > avg_price then 'true' else 'false' end as is_above_avg
|
||||
case when price > avg_price then true else false end as is_above_avg
|
||||
from get_data
|
||||
|
||||
Reference in New Issue
Block a user