Forum: MySQL Mar 4th, 2009 |
| Replies: 17 Views: 1,476 sorry bout that, was a late night and didn't think twice about it
this will work
select
(select count(*) from posts p1 where p1.user_id = u.user_id) as post_count,
u.user_id
from users u... |
Forum: MySQL Dec 1st, 2008 |
| Replies: 3 Views: 1,025 here i found an article on the suggestion i gave you earlier
its because order of precedence, also always try to do joins this way, makes much cleaner code
... |
Forum: MySQL Nov 25th, 2008 |
| Replies: 71 Views: 3,530 actually no need to check the uas table at all, just delete, then insert
you are correct, check user table i guess from a login or whatever that is, then no need to check anything against uas... |
Forum: MySQL Nov 23rd, 2008 |
| Replies: 2 Views: 798 select DATEDIFF(now(), '2008-12-25) |
Forum: MySQL Nov 19th, 2008 |
| Replies: 21 Views: 1,153 perfect english :-), lol well at least typing
maybe when the users are on the system tomorrow, run show processlist again, and you can see what may be causing the problem |
Forum: MySQL Nov 17th, 2008 |
| Replies: 16 Views: 1,799 ahhh i see now, i know you may not like the idea, but just name the checkboxes as groups when you are displaying them, on postback only grab the ones for the selected airport (also for each airport)... |
Forum: MySQL Aug 27th, 2008 |
| Replies: 24 Views: 1,620 i'll stick with the coalesce
make sure your join is on the column that will be in both tables, use a left join, and make sure to use an alias on your coalesced column
left join avatars
on... |