POV-Ray : Newsgroups : povray.off-topic : Representing satisfiability in SQL relations : Re: Representing satisfiability in SQL relations Server Time
3 Sep 2024 23:23:23 EDT (-0400)
  Re: Representing satisfiability in SQL relations  
From: Darren New
Date: 24 Jun 2010 16:15:42
Message: <4c23bcee$1@news.povray.org>
Warp wrote:
>   Problem: Can you write an SQL statement which solves the "six degrees of
> Kevin Bacon" relationship between any two given actors?

This is basically representing trees in SQL. And it's easy to google for. ;-)

You can do it, but I think you need a new query for each degree, which you 
can cache in a table if you like.

-- 
Darren New, San Diego CA, USA (PST)
    Eiffel - The language that lets you specify exactly
    that the code does what you think it does, even if
    it doesn't do what you wanted.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.