ah, just found the MySQL forum... I'm usually pretty good on my own - I've been developing on Oracle since 7.3 - but I'm much more of a general programmer than a SQL guru.
Thanks again
r937 -
That seems to do the trick. Thanks a lot - especially since I just found out that MySQL doesn't seem to support intersect.
I'm going to have to check out your book!
you need to use intersect
select dm_id from table where sy_id = 1
intersect
select dm_id from table where sy_id = 2
will return only the dm_id value = 1
I've got a user table and a book table, with a fact table recording the books read by each user. For simplicity, the tables and their fields are:
Table Fields
----- ------
user user_id
book book_id
books_read user_id, book_id
I have a web app that lets a user...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.