Netezza not supporting sub query and similar… any workaround?
问题 I'm sure this will be a very simple question for most of you, but it is driving me crazy... I have a table like this (simplifying): | customer_id | date | purchase amount | I need to extract, for each day, the number of customers that made a purchase that day, and the number of customers that made at least a purchase in the 30 days previous to the current one. I tried using a subquery like this: select purch_date as date, count (distinct customer_id) as DAU, count(distinct (select customer_id