pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rodrigo De León <rdeleonp@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: Best Fit SQL query statement
Date: Mon, 06 Aug 2007 15:15:12 -0000
Message-ID: <1186413312.263516.180000@l70g2000hse.googlegroups.com> (raw)
In-Reply-To: <1186390627.045596.148460@j4g2000prf.googlegroups.com>
References: <1186390627.045596.148460@j4g2000prf.googlegroups.com>

On Aug 6, 3:57 am, Kiran <kumar.m.ki...@gmail.com> wrote:
> and if I query on 98456 the result must be 98456,
> However if I query on 98455 the result must be 9845
> and If I query 9849 the result must be 984

SELECT MAX(t1)
  FROM t1
 WHERE '9849' LIKE t1 || '%';




view thread (8+ messages)  latest in thread

Message-ID: <1186413312.263516.180000@l70g2000hse.googlegroups.com>
Permalink:  ../1186413312.263516.180000@l70g2000hse.googlegroups.com/
Also on:    postgresql.org/message-id/1186413312.263516.180000@l70g2000hse.googlegroups.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: rdeleonp@gmail.com
  Subject: Re: Best Fit SQL query statement
  In-Reply-To: <1186413312.263516.180000@l70g2000hse.googlegroups.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