pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: KH Lim <limspirit@hotmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: Problem with the postgresql operator.
Date: Tue, 15 Jan 2002 11:10:05 -0800
Message-ID: <web-620154@davinci.ethosmedia.com> (raw)
In-Reply-To: <OE675sUJliuVPPfnkR30000cd43@hotmail.com>

KH Lim,

In the future, this sort of question is more appropriate for the PGSQL-NOVICE
 list.  

>     What is the correct operator for not equal to in select statement? I'm a
>  bit confuse.
> 
> Situation
> 
> Let say I want to select stock_key from stock_lot with the condition
>  stock_lot's lot_no is not equal to stocks' lot_no. What select statement
>  should I use?

SQL92 Standard Syntax (works on PostgreSQL):
WHERE stock_lot.lot_no <> stocks.lot_no

Not SQL92 Standard, but also works on PostgreSQL:
WHERE stock_lot.lot_no != stocks.lot_no

You should also pick up an introduction to PostgreSQL and to SQL in general.
  See http://techdocs.postgresql.org/bookreviews.php for several book
 suggestions.  In English, "Database Queries for Mere Mortals" is a good one
 for novices.

If you need a book in another language, e-mail me back and I'll try to locate a
 book that has been translated into your preferred tongue.

-Josh Berkus


______AGLIO DATABASE SOLUTIONS___________________________
                                       Josh Berkus
  Complete information technology      josh@agliodbs.com
   and data management solutions       (415) 565-7293
  for law firms, small businesses        fax 621-2533
    and non-profit organizations.      San Francisco



view thread (4+ messages)

Message-ID: <web-620154@davinci.ethosmedia.com>
Permalink:  ../web-620154@davinci.ethosmedia.com/
Also on:    postgresql.org/message-id/web-620154@davinci.ethosmedia.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: josh@agliodbs.com, limspirit@hotmail.com
  Subject: Re: Problem with the postgresql operator.
  In-Reply-To: <web-620154@davinci.ethosmedia.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