Return-Path: pg_adm@postgres.berkeley.edu
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA17173; Mon, 6 Apr 92 11:18:02 -0700
Date: Mon, 6 Apr 92 11:18:02 -0700
Message-Id: <9204061818.AA17173@postgres.Berkeley.EDU>
From: joseash@bush.tamu.edu (Alfredo Sanchez)
Subject: Re: class difference
To: postgres@postgres.berkeley.edu
Sender: pg_adm@postgres.berkeley.edu


	>> how do i find the instances in A but not in B?

	>can you elaborate a little.  Right now I would say that
	>you are asking how to retrieve from class A instead of
	>from class B and that can't be what you are really asking.

	>Jeff Meredith

Actually, I needed something like the SQL minus operation.
I finally implemented it by creating a temporary class, and then
deleting the unwanted instances.

E.g. given

Class A
x  y
1  10
2  20
3  30

Class B
x  y
1  10
3  30

I wanted A - B = ({2,20}), so i did

retrieve into t unique (A.x, A.y) where A.x != B.x
delete t where t.x = B.x
(leaving the tuples i wanted in t)

Is there a better way to do it?

Thanks,

J Alfredo Sanchez H
-------------------
Hypermedia Research Lab
Department of Computer Science
Texas A&M University
