How do I create a script that assigns a value to a new column in MySQL?
I have opportunities that are listed more than once and I need to create a column that ensures its only counted once. Here's a visual example of what I am trying to accomplish Example data:
And what I mean to do is assign a value in a new column the first time its encountered and 0 for every time after. So the opportunity is only counted once while still showing the influence.
Who the influence gets assigned to isnt important just as long as the TCV is counted once per opportunity. If this is possible by beastmode or Magic ETL I'm open to those solutions as well.


0
Best Answer
-
You can do this through ETL or MySQL
Here is a screenshot of my ETL. If you need more help setting it up let me know and I can provide more detail tomorrow.
If you prefer MySQL, I can work through that code as well. Let me know your preference.
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman2
Answers
-
You can do this through ETL or MySQL
Here is a screenshot of my ETL. If you need more help setting it up let me know and I can provide more detail tomorrow.
If you prefer MySQL, I can work through that code as well. Let me know your preference.
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman2
Categories
- 10.5K All Categories
- 8 Connect
- 918 Connectors
- 250 Workbench
- 473 Transform
- 1.7K Magic ETL
- 69 SQL DataFlows
- 478 Datasets
- 209 Visualize
- 257 Beast Mode
- 2.1K Charting
- 12 Variables
- 18 Automate
- 355 APIs & Domo Developer
- 89 Apps
- 3 Workflows
- 20 Predict
- 5 Jupyter Workspaces
- 15 R & Python Tiles
- 247 Distribute
- 63 Domo Everywhere
- 243 Scheduled Reports
- 21 Manage
- 42 Governance & Security
- 183 Product Ideas
- 1.2K Ideas Exchange
- 11 Community Forums
- 27 Getting Started
- 14 Community Member Introductions
- 55 Community News
- 4.5K Archive