All Apps and Add-ons

Join table on Splunk connect DB

indeed_2000
Motivator

Hi want to Join table on Splunk connect DB
1- table1
2- table2
3- common column (id)

I try to join them with (id) column but it give me below error

here is my query:
SELECT id
FROM table1, table2
JOIN table1.id ON table2.id;

here is the error:
java.sql.SQLException: The specified table (table1.id) is not in the database.

Any recommendation?

alt text

0 Karma

jkat54
SplunkTrust
SplunkTrust

You need to know SQL and the table you're working with to correctly do this. I recommend that you work with your SQL team or DB administrator.

0 Karma

indeed_2000
Motivator

DB administrator give me SQL queries that work in their environment but not work in splunk connect DB.

0 Karma

jkat54
SplunkTrust
SplunkTrust

The error is telling you the tables don't exist.

0 Karma

indeed_2000
Motivator

I know because table name is “table1” but when I join them with Sql command it will be table1.id

0 Karma

jkat54
SplunkTrust
SplunkTrust

No, the error is saying table1 does not exist in the database.

0 Karma

indeed_2000
Motivator

I can see table in the list of left panel

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...