From: | The Hermit Hacker <scrappy(at)hub(dot)org> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | [6.5.3] 'attribute not found' |
Date: | 2000-01-28 01:07:35 |
Message-ID: | Pine.BSF.4.21.0001272106080.555-100000@thelab.hub.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Using this Query:
explain SELECT w.counter_id,
( date_part('month', w.stat_date) || '/' ||
date_part('day', w.stat_date) || '/' ||
date_part('year', w.stat_date) || ' 00:00:00')::datetime as
dayperiod,
r.referrer_id, count(w.referrer_hits)
FROM webhit_referer_raw w, referrer_data r, referrer_link l
WHERE w.stat_date < 'Jan 25 2000'
AND w.referrer_url = r.referrer
AND l.counter_id = w.counter_id
AND l.stat_date = dayperiod
AND l.referrer_id = r.referrer_id
GROUP BY dayperiod, counter_id, referrer_id
ORDER BY counter_id, dayperiod;
I get:
ERROR: attribute 'dayperiod' not found
I'm guessing right now its on: "AND l.stat_date = dayperiod"
Should that not work? And, I know, its a major mess, just a thought I'm
playing with ... :)
Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: scrappy(at)hub(dot)org secondary: scrappy(at){freebsd|postgresql}.org
From | Date | Subject | |
---|---|---|---|
Next Message | Don Baccus | 2000-01-28 01:16:42 | very minor problem in contrib/dateformat/to-from_char.c |
Previous Message | Chris Bitmead | 2000-01-28 01:03:13 | Re: ORDBMS |