pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vikrant Rathore <vikrant@alphahkg.com>
To: pgsql-sql@postgresql.org
Subject: SQL query problem
Date: Sat, 26 Feb 2000 15:46:08 +0800
Message-ID: <200002260737.PAA08062@chemquick.com> (raw)

Dear Colleagues,

I have been able to run the following query successfully on postgresl-
6.3.2 but unable to run the same in Postgresql-6.5.2. can anyone tell 
me the error and why it is running fine in 6.3.2 but not in 6.5.2.:

select 
a.offer_id,a.comp_id,prod_name,date(offer_date),ti
me(offer_date),
clicks,bidcount,ship_price, 
ship_price_currency,ship_currency_unit,
date_part('day',age(expiry_date,'now')),
date_part('hour',age(expiry_date,'now')),
date_part('min',age(expiry_date,'now')), 
offer_type from offer a, product
b,enquiry c where expiry_date>='now' and 
b.prod_id = a.prod_id and
a.offer_id=c.offer_orig and bidcount<>0 and 
offer_type='sell' and
upper(transaction_complete)='N' group by 
a.offer_id order by prod_name;


Thanks in advance for the help.

With Best Regards,
Vicky

Alpha Group (Hong Kong) Ltd.
15/B Wah Kit Commercial Centre
300-302, Des Voeux Road Central
Sheung Wan
Hong Kong
Phone : (852) 28507827
FAX   : (852) 28504229
Email : vikrant@alphahkg.com



view thread (14+ messages)  latest in thread

Message-ID: <200002260737.PAA08062@chemquick.com>
Permalink:  ../200002260737.PAA08062@chemquick.com/
Also on:    postgresql.org/message-id/200002260737.PAA08062@chemquick.com

 · 

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: vikrant@alphahkg.com
  Subject: Re: SQL query problem
  In-Reply-To: <200002260737.PAA08062@chemquick.com>

* 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