我希望获得每个客户的排名/row_number,但如果在24小时内进行后续交易,则保持排名不变。这就是我想要做的: select 214142446 as unique_customer_id, 19331177 as transaction_id, to_timestampby log_date)::timestamp, log_date::timestamp) as hour_diff )
order by un
我有一张这样的桌子`bill_id` int(11) NOT NULL AUTO_INCREMENT,`circle` varchar(2) NOT NULL,`reference_id` varcharsource` varchar(100) NOT NULL,
`time` timestamp NOT NULL DEFAULT C