Search Results

Showing results 1 to 3 of 3
Search took 0.04 seconds.
Search: Posts Made By: Kate Albany ; Forum: MySQL and child forums
Forum: MySQL Oct 1st, 2005
Replies: 8
Views: 4,101
Posted By Kate Albany
It is an ugly solution I would not personally use in Oracle, though as you say you cannot use sub-querys, I know of on better method.

Also, in my example you do not need to use the 'distinct'...
Forum: MySQL Oct 1st, 2005
Replies: 8
Views: 4,101
Posted By Kate Albany
Hello,

The reason that your query does not work correctly is because by using <> in this manner you are creating a 'partial' Cartesian Join between the two tables. In doing so the query returns...
Forum: MySQL Jul 12th, 2005
Replies: 1
Views: 2,691
Posted By Kate Albany
Try:

select g.name, count(1)
from group g
where g.id in (select u.groupid from user u where u.userid = <put_userid_here>)
group by g.name
Showing results 1 to 3 of 3

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC