SQL transforms LAG or LEAD
I tried LAG function in mySQL transform, but it appered to be missing. Is this correct?
0
Comments
-
Domo uses MySQL 5.6+
@VERSION for the exact version number.
This version of MySQL predates the implementation of Windowed functions.
You can recreate it using user defined variables.
https://stackoverflow.com/questions/3333665/rank-function-in-mysql
Without performance tuning in MySQL, you'll probably get faster performance using MagicETL if you start using larger datasets.
Jae Wilson
Check out my 🎥 Domo Training YouTube Channel 👨💻
**Say "Thanks" by clicking the ❤️ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
If you create a Redshift transform instead of SQL, you can use LAG. I was shown how to create a Redshift dataflow to get active clients by month using start and end date on the client record.
0
This discussion has been closed.
Categories
- 10.5K All Categories
- 3 Connect
- 913 Connectors
- 250 Workbench
- 458 Transform
- 1.7K Magic ETL
- 69 SQL DataFlows
- 476 Datasets
- 183 Visualize
- 249 Beast Mode
- 2.1K Charting
- 11 Variables
- 16 Automate
- 354 APIs & Domo Developer
- 88 Apps
- 3 Workflows
- 20 Predict
- 5 Jupyter Workspaces
- 15 R & Python Tiles
- 245 Distribute
- 62 Domo Everywhere
- 242 Scheduled Reports
- 20 Manage
- 41 Governance & Security
- 168 Product Ideas
- 1.2K Ideas Exchange
- 9 Community Forums
- 27 Getting Started
- 14 Community Member Introductions
- 55 Community News
- 4.5K Archive