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
- All Categories
- 1.1K Product Ideas
- 1.1K Ideas Exchange
- 1.2K Connect
- 966 Connectors
- 254 Workbench
- Cloud Amplifier
- 1 Federated
- 2.4K Transform
- 75 SQL DataFlows
- 499 Datasets
- 1.8K Magic ETL
- 2.7K Visualize
- 2.2K Charting
- 360 Beast Mode
- 19 Variables
- 483 Automate
- 101 Apps
- 378 APIs & Domo Developer
- 6 Workflows
- 22 Predict
- 6 Jupyter Workspaces
- 16 R & Python Tiles
- 316 Distribute
- 64 Domo Everywhere
- 252 Scheduled Reports
- 59 Manage
- 59 Governance & Security
- 1 Product Release Questions
- 5K Community Forums
- 37 Getting Started
- 23 Community Member Introductions
- 63 Community Announcements
- 4.8K Archive