Using group by and having clause

前端 未结 5 1258
一生所求
一生所求 2020-12-07 11:59

Using the following schema:

Supplier (sid, name, status, city)
Part (pid, name, color, weight, city)
Project (jid, name, city)
Supplies (sid, pid, jid**, qua         


        
5条回答
  •  眼角桃花
    2020-12-07 12:10

    Because we can not use Where clause with aggregate functions like count(),min(), sum() etc. so having clause came into existence to overcome this problem in sql. see example for having clause go through this link

    http://www.sqlfundamental.com/having-clause.php

提交回复
热议问题