sql having get only the first recorded row in table and i want all

前端 未结 2 1601
时光说笑
时光说笑 2021-01-24 15:27

Somebody already helped me with this query but I made an adaptation and I get a problem :

    SELECT 
        AVG(tyd.price) AS avg_price, COUNT(tyd.id_product)          


        
2条回答
  •  梦谈多话
    2021-01-24 16:16

    i just want to add that this query :

    SELECT * FROM  tyd WHERE step = "1" 
    GROUP BY tyd.id_product, tyd.id_marchand 
    HAVING tyd.login = "user1@tyd.fr" 
    

    Has the same problem. Works when tyd.login = "user3" but not when an other user is ask...

提交回复
热议问题