Scott Ribe wrote:

where a <> b or (a is null and b is not null) or (a is not null and b is null)

In the absence of IS DISTINCT FROM, I think this has the same semantics:

  where coalesce(a, b) <> coalesce(b, a)

although it's not as concise as one might wish.

- John D. Burger
  MITRE

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

              http://www.postgresql.org/docs/faq

Reply via email to