Select bettwen in Where condition in mysql
In my MySQL to select between data
Example:
SELECT id, current_role_in_khmerFROM currentroleWHERE id NOT BETWEEN 11 AND 14AND id NOT BETWEEN 18 AND 19AND `status`=1
in codeigniter
&…Read More
Finding duplicate values in MySQLDo a SELECT with a GROUP BY clause. Let's say name is the column you want to find duplicates in:
SELECT firstname, lastname , COUNT(*) c FROM civilservant GROUP BY firstname, lastname HAVING c &…Read More