| To: | REALbasic NUG <realbasic-nug at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: SQL Select |
| From: | Norman Palardy <npalardy at great-white-software dot com> |
| Date: | Mon, 31 Jul 2006 16:34:15 -0600 |
| Delivered-to: | listarchive at realsoftware dot com |
| Delivered-to: | realbasic-nug at lists dot realsoftware dot com |
| References: | <2aed194a0607281134o74d5b0b1o301f7456a5562795 at mail dot gmail dot com> <C0F04607 dot 11AF3%REALbasicNUG2003 dot 001 at toolbox dot uk dot com> <2aed194a0607281507n563ddc17icbde3feb3c779bf2 at mail dot gmail dot com> <2aed194a0607310838r11e5f8cam181a748359d57128 at mail dot gmail dot com> |
On Jul 31, 2006, at 9:38 AM, Sean McCollum wrote: Here's the situation: Table: class Columns: name, id (both VARCHAR) Table: student - Columns: name, id (both VARCHAR) Table link - Columns: pid, cid (both VARCHAR) This table links students and classes What I'm still after is only students in a specific set of classes. For example - A & B. (A recordset containing only Narinder and Norman is what i'd want - They are the only two students who are in both classes A & B) I've tried various forms of GROUP BY and COUNT, but I haven't been able to get any results. select * from student where id in ( select id from class where class.id = "A") AND id in ( select id from class where class.id = "B") _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Non-ascii file names or Shell Command workaround, D Jungk |
|---|---|
| Next by Date: | Re: Math Error?, Norman Palardy |
| Previous by Thread: | Re: Re: Re: SQL Select, Sean McCollum |
| Next by Thread: | Re: SQL Select, Narinder Chandi |
| Indexes: | [Date] [Thread] [Top] [All Lists] |