Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

where in subquery #610

Merged
merged 1 commit into from
Jul 27, 2019
Merged

where in subquery #610

merged 1 commit into from
Jul 27, 2019

Conversation

otkmnb2783
Copy link
Contributor

It is an API that can build the following SQL with DSL.

SELECT COUNT(*)
FROM customer
WHERE customer.customer_id IN (
  SELECT customer_id FROM payment WHERE amount > 100
)
Customer.select { Customer.customerId inSubQuery Payment.slice(Payment.customerId).select { Payment.amount greater 100 } }

@Tapac Tapac merged commit 9b82661 into JetBrains:master Jul 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants