News for hackers. Stuff that matters.
Re:Reverse Snowflake Joins by rascul on Thursday March 31, 2022 @09:27AM (#30866905)
I don't do much SQL work, but I can recall a couple times in the past when this could have been handy. However, the last release appears to be v0.49 (2011-12-06).

https://sourceforge.net/projects/revj/files/revj/

Re:Reverse Snowflake Joins by daveloyall on Thursday March 31, 2022 @10:32AM (#30867641)
Right. And it targets python 2.x. And ... I don't see a Source tab on the sourceforge page?

That said... Shut up and take my money. The second example on http://revj.sourceforge.net/example.html matches recurring problems I have at $work so perfectly that I simply must use this tool--or something like it.

...How does it pick the center table?! How would I pick the center table, if I were drawing a diagram like this by hand? Maybe I don't need to use the tool, and only need to internalize the operative concepts. The tool documentation links to this: https://en.wikipedia.org/wiki/Snowflake_schema Hm.

Re:Reverse Snowflake Joins by burnoutgal on Thursday March 31, 2022 @11:51AM (#30868563)
There's lots of python libraries for graph visualization, it's probably force-directed layout or something else similar.

The name is indeed a reference to data warehouse design, where you normally have heavily normalized data in a snowflake schema. The Kimball book is the canonical one on data warehouse design.

Re:Reverse Snowflake Joins by daveloyall on Thursday March 31, 2022 @04:24PM (#30871816)
Yep. This app, revj, uses Graphviz for layout. So, sure, force-directed layout.

The layout/rendering of the graphs isn't interesting to me, but parsing a SQL statement and extracting the relationship data is.