Quantcast
Channel: Questions in topic: "distinct"
Viewing all articles
Browse latest Browse all 38

distinct and count for same table

$
0
0
Dear sir, i have table machine with colums id,mach_model. if query select count(mach_model) from machine where mach_model like '%etp%' rows effected are 200 for the same query if filter with '%ttp%' rows effected are 400 i need to right a query to get output like mach_type | count etp | 200 ttp |300 i want distinct and count for the same table simultaneously. Thanks

Viewing all articles
Browse latest Browse all 38

Trending Articles