fixed
This commit is contained in:
@@ -19,12 +19,15 @@ values (1, 'iPhone 14', 'smartphone', 799, true, 'iphone@apple.com'),
|
|||||||
(9, 'Honor Pad X9', 'tablet', 219, true, 'honor@support.com'),
|
(9, 'Honor Pad X9', 'tablet', 219, true, 'honor@support.com'),
|
||||||
(10, 'Dell XPS 13', 'laptop', 1099, false, 'dell@support.com');
|
(10, 'Dell XPS 13', 'laptop', 1099, false, 'dell@support.com');
|
||||||
|
|
||||||
|
alter table products_extended
|
||||||
|
alter column price type DECIMAL(10, 2)
|
||||||
|
|
||||||
select * from products_extended
|
select * from products_extended
|
||||||
|
|
||||||
with email_false as (select * from
|
with email_false as (select * from
|
||||||
(
|
(
|
||||||
select category, name, price, email_support, row_number() over (partition by category order by price desc) as rn
|
select category, name, price, email_support, row_number() over (partition by category order by price desc) as rn
|
||||||
from products_extended where email_support is null)
|
from products_extended where email_support is null) where rn = 1
|
||||||
),
|
),
|
||||||
|
|
||||||
email_true as (select * from
|
email_true as (select * from
|
||||||
|
|||||||
Reference in New Issue
Block a user