I am trying to form a query for returning, reactivated and WAU as defined below:
- Returning WAU - active last week
- WAU - not active last week, but active within last 30 days
- Reactivated WAU – not seen in 30+ days
I have table for past 60 days containing cust_id, login date but cant lag function to work (Teradata ODBC connection). I keep getting this error:
[3706] Syntax error: Data Type "logindate" does not match a Defined Type name. My format is: select .... lag(logindate, 1) over (partition by cust_id order by 1 asc) as lag_ind from ( ....
Please help for the 3 cases above.