Jump to content
Sign in to follow this  
fabriceN

SQL recursion

Recommended Posts

Hi,

did someone figure out if fql supports recursive queries? (not nested queries, really recursive)?

I tried it using the Oracle syntax, but it doesn't seem to work.

Thanks!

Share this post


Link to post
Share on other sites

thanks David. I had rtfmed before posting :)

Indeed, there is apparently no way. I finally combined a sql query and a FileMaker recursive function. Quite powerful ! :thumbup:

Share this post


Link to post
Share on other sites

Got a demo or example?

Share this post


Link to post
Share on other sites

ExecuteSQL() inside a Custom Function?

Share this post


Link to post
Share on other sites

Sorry, took a while, but here is an example file to manage hierarchal portals. (based on an example by Doug West, Excelisys)

http://www.1-more-thing.com/Hierarchal-Portals-Using.html

Actually, it's not the way I usually deal with hierarchies, I prefer a two-table model allowing many-to-many relationships, but this techniques allows it because you don't have to store the whole ascendence on each record. (which limits a record to 1 place only in the tree)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.