POV-Ray : Newsgroups : povray.off-topic : Dr POV-Ray : Re: Dr SQL Server Time
6 Sep 2024 11:19:28 EDT (-0400)
  Re: Dr SQL  
From: scott
Date: 23 Feb 2009 07:26:01
Message: <49a295d9$1@news.povray.org>
> OK, here we go. Using a sub-select, you can find the "previous" event in 
> the log something like this:
>
>   SELECT *
>   FROM EventLog X, EventLog Y
>   WHERE
>     X.ExperimentID = Y.ExperimentID AND
>     Y.Timestamp =
>     (
>       SELECT MAX(Timestamp)
>       FROM EventLog Z
>       WHERE
>       Z.ExperimentID = X.ExperimentID AND
>       Z.Timestamp < X.Timestamp
>     )

<snip>

> ...if that makes *any* sense at all?

I'll have to read and work through it some more for it to all make sense, 
but it does make me realise that almost anything I want to get from my data 
should be possible with SQL - something which I was not sure about at the 
start!


Post a reply to this message

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