Splunk Search

Does "WHERE" SQL clause have the same row limitation as "INNER JOIN"?

LearningGuy
Motivator

Hello,
Does "WHERE" SQL clause have the same row limitation as "INNER JOIN"?
Does "WHERE" and "INNER JOIN" have the same function and result?
Thank you for your help

For example:

| dbxquery connection=DBtest
query="SELECT a.name, b.department
FROM tableEmployee a
INNER JOIN tableCompany b
ON a.id = b.emp_id


| dbxquery connection=DBtest
query="SELECT a.name, b.department
FROM tableEmployee a, tableCompany b
WHERE a.id = b.emp_id

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

AFAIK, the dbxquery command doesn't care what the query does.  It's up to the DB itself to interpret the SQL and decide how many rows to return.  Splunk's limit will be the same either way.

---
If this reply helps you, Karma would be appreciated.

LearningGuy
Motivator

Hello,

According to the following documentation, the limit is 50,000 rows.
I am wondering if WHERE clause can fix this problem or it's the same.
Can you take a look and see if it's accurate? Thanks
https://community.splunk.com/t5/Splunk-Search/How-to-join-large-tables-with-more-than-50-000-rows-in...

https://docs.splunk.com/Documentation/SCS/current/SearchReference/JoinCommandOverview

Tags (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

That documentation doesn't apply in this case.  It refers to the join command, which is not being used in the sample query.  The query uses the SQL JOIN operator, which is not the same as the SPL join command.

As I mentioned in my earlier response, everything in the dbxquery command is processed by the remote database, not by Splunk.  Splunk only sees the results of the query.

---
If this reply helps you, Karma would be appreciated.
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...