我们如何使用MySQL查询实现动态过滤器?

时间:2019-11-28 06:52:39

标签: mysql

我必须实现一个动态过滤器,并像其他网站(例如Myntra,Flipkart等)一样,将它的计数显示在方括号()中。

类似的问题我有尝试使用不同的查询来解决这个问题,但没有成功。 你们可以帮我解决此问题,以实现Myntra这样的过滤器吗? 我有一个类似的问题,在必须更新每个归档的计数之后,每个过滤器之后都有很多过滤器选项。

Refrence

enter image description here

 SELECT application_number,data.pd_team,data.pd_team,data.ip_manager_rating ,data.att_attorney, data.law_firm ,data.patent_developer,COUNT(data.pd_team) as pdcount,COUNT(data.law_firm) as firmcount,COUNT( data.att_attorney) as attcount,COUNT(data.patent_developer) as ptcount,COUNT(data.ip_manager_rating) as ratingcount,COUNT(data.law_firm) as firmcount,COUNT(data.level1_taxonomy) as l1count FROM application_data INNER JOIN data on application_data.application_number= data.sf_application_number WHERE data.pd_team In ("Networks  Virtualization  and Security") AND data.ip_manager_rating IN ("Auto","Auto - CON") AND data.status="Filed" GROUP by data.law_firm

0 个答案:

没有答案