That's correct.  

Ian MacGregor
Stanford Linear Accelerator Center
[EMAIL PROTECTED]

-----Original Message-----
Sent: Thursday, August 30, 2001 12:54 PM
To: Multiple recipients of list ORACLE-L


Ian;
  Are you saying that if employees 1 and 2 took course 1,2,and 3 but
employee 3 only took course 1 and 2 then you would want to see 2 groups:

group 1: Employees 1 and 2 (took courses 1, 2, and 3) 
Group 2: Employee 3 (took course 1, and 2)

Kevin

-----Original Message-----
Sent: Thursday, August 30, 2001 1:48 PM
To: Multiple recipients of list ORACLE-L


Given the following Table

emplid               course_id
------               ---------
     1                       1
     2                       2
     2                       3
     3                       3
     3                       4
     3                       5
     4                       3
     4                       4
     4                       5
     5                       2
     5                       3
     6                       1
     7                       2
     8                       3
     8                       4                       
----------------------------------------------------------------------------
----------------
What statement would you write  to  group employees by the set of courses
they have taken.  In otherwords  each employee in a group must have taken
the same as the others in  the group, not one class more nor less.  In this
example the employees making up the groups would be

1,6
2,5
3,4
7
and 8

I had this posed by one of my developers.   He had also come up with a
solution which didn't take a relational approach.  The approach is not
exotic, and I suspect it will be proposed by many people.  He'd like a
relational one.  


Ian MacGregor
Stanford Linear Accelerator Center
[EMAIL PROTECTED]
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: MacGregor, Ian A.
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Kevin Lange
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: MacGregor, Ian A.
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to