mysql transform unknown column
I'm trying to do what seems like a pretty basic transform on a salesforce dataset in Domo and it's throwing an error. Might very well be due to my lack of SQL expertise
The database reported a syntax error. Unknown column 'ConvertedOpportunity.Name' in 'field list'
The field is in the list, ConvertedOpportunity.Name is in the input dataset as shown in the "show columns" widget, but maybe because of the "." it doesn't like it. There might be other things wrong with this query as well, but any help would be appreciated.
SELECT
date(Marketing_Inquiry_Date__c) as date,
COUNT(IF(Marketing_Inquiry_Date__c=null,null,1)) as inquiries,
COUNT(IF(Date_Identified_as_MQL__c=null,null,1)) as mqls,
COUNT(IF(ConvertedOpportunity.Name=null,null,1)) as opportunities
from leads_with_opportunities
group by date
Best Answer
-
try using the back tick `
`ConvertedOpportunity.Name`
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman0
Answers
-
try using the back tick `
`ConvertedOpportunity.Name`
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman0 -
That did the trick, thanks!
0
Categories
- 10.6K All Categories
- 8 Connect
- 918 Connectors
- 250 Workbench
- 477 Transform
- 1.8K Magic ETL
- 69 SQL DataFlows
- 478 Datasets
- 218 Visualize
- 260 Beast Mode
- 2.1K Charting
- 12 Variables
- 19 Automate
- 356 APIs & Domo Developer
- 89 Apps
- 3 Workflows
- 20 Predict
- 5 Jupyter Workspaces
- 15 R & Python Tiles
- 249 Distribute
- 65 Domo Everywhere
- 243 Scheduled Reports
- 21 Manage
- 42 Governance & Security
- 191 Product Ideas
- 1.2K Ideas Exchange
- 11 Community Forums
- 27 Getting Started
- 14 Community Member Introductions
- 55 Community News
- 4.5K Archive