This is the below table
CREATE TABLE IF NOT EXISTS TestingTable1 ( BUYER_ID BIGINT, ITEM_ID BIGINT, CREATED_TIME STRING )
And this is th
select * from (select buyer_id,item_id,created_time,row_num() over (partition by buyer_id order by created_time DESC)) a where a.row_num<=10