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

Select values from all tables in a join #14

Open
simonscheurer opened this issue Jun 14, 2022 · 0 comments
Open

Select values from all tables in a join #14

simonscheurer opened this issue Jun 14, 2022 · 0 comments

Comments

@simonscheurer
Copy link

What I always find daunting (albeit it should not be), is to select some properties from all vertices along a given traversal.
In SQL this is a very common operation. Joining a few tables and selecting values from each of the tables to create one simple result table that has values from all of the joined tables.

This is a very simple query highlighting this. The gremlin equivalent would be super helpful as template for all such queries

SELECT Products.ProductName, Categories.CategoryName FROM Products INNER JOIN Categories ON Categories.CategoryID = Products.CategoryID

Of course this could be extended to

  • Include three or more tables
  • Include there tables where one is aggregated (for example: productName, categoryName and sum(order))
  • Include some where condition (same as above, but restricting to customers from one specific country)

This is currently one of the parts I struggle most. Traversal work nicely, where conditions, querying, etc. as well. But a simple statement to just select properties "along the way" seems more difficult than it should be.

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

No branches or pull requests

1 participant