php - Select from database without duplicate -
i'm trying develop php page have problem, data data base without duplicate.
$tsql = "select count(id) factoriesviolations"; $rowsperpage = 25; $stmt = sqlsrv_query($conn, $tsql);
please me.
thanks in advance.
what columns expecting in output. if id
$tsql = "select count(distinct(id)) factoriesviolations";
if want columns table , eliminate duplicate records query needful.
select col1, col2,... coln factoriesviolations group col1, col2,... coln;
here col1, col2,... coln column names of factoriesviolations table.
Comments
Post a Comment