Counting number of grouped rows in mysql

后端 未结 5 730
有刺的猬
有刺的猬 2021-01-31 14:22

In a table xyz I have a row called components and a labref row which has labref number as shown here

Table xyz

labref             component
NDQA201303001         


        
5条回答
  •  情深已故
    2021-01-31 14:32

    Select labref , component ,Count(*) as Counts From xyz Group by labref , component

提交回复
热议问题