pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ragnar <gnari@hive.is>
To: Becky Hoff <bhoff@standoninc.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Dividing results from two tables with different time
Date: Sun, 17 Sep 2006 10:05:50 +0000
Message-ID: <1158487550.659.6.camel@localhost.localdomain> (raw)
In-Reply-To: <4B2BD8A084A0B442ABF42645DB572A5F28DD4D@fr-fs1.StandonInc.com>
References: <4B2BD8A084A0B442ABF42645DB572A5F28DD4D@fr-fs1.StandonInc.com>

On fös, 2006-09-15 at 10:34 -0500, Becky Hoff wrote:
> I hope I can explain this clearly.  


Not clear enough for me.


> I have two queries Iÿm running in a report.
> The first one is:

[snip]

> No matter which query I place them in it gives me the wrong data
> because of the time frames.  How can I get the correct
> data?            


It is not clear what you consider correct data.

I suggest you devise a simple test case, with just
the minimum number of tables and columns needed
to explain your problem, show us a small data set
and describe your wanted output.

For example, avoid joins in your test case, unless
they are central to your problem

gnari





view thread (4+ messages)  latest in thread

Message-ID: <1158487550.659.6.camel@localhost.localdomain>
Permalink:  ../1158487550.659.6.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1158487550.659.6.camel@localhost.localdomain

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: gnari@hive.is, bhoff@standoninc.com
  Subject: Re: Dividing results from two tables with different time
  In-Reply-To: <1158487550.659.6.camel@localhost.localdomain>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox