You don't really need any count. If I were you, I will do like this : select eventtime from rme R where exists (select 1 from...
Because of your LEFT OUTER JOIN, your query just counts the product of your 2 tables : 40 X 40. I think you should use a INNER JOIN or use a query...
Did you try this ? SELECT t3.name, count(*) FROM persdb_users t1 LEFT JOIN persdb_user_groups t2 ON t1.user_id = t2.user_id LEFT...
The count in only 1 table can't show you the values that are not in the table... To do this, you may have two other tables which contains the...
I think, the biggest problem is your 'ASC' in the GROUP BY clause... If your sorting is always an ascending one, you don't need to specify 'ASC'...
First of all, can you put any aliases on your tables in your query? Like this : SELECT TST.pt_test_man_order, TST.pt_test_serial,...
My advice : use an integer. The comparison will be faster and the usage will be easier (no problem with the case for example)
I believe that the MySQL equivalent of DENY is REVOKE
Does your page just need to work on your own computer?
Hi, I want to put an event button (form an existing FB event), like the "Going"/"Interrested"/"Going" button, on my own website. Do you konw how...
Separate names with a comma.