【发布时间】:2019-04-19 01:35:18
【问题描述】:
我正在尝试创建一个视图,该视图创建一个表格,其中给出了狗的总和和猫的总和。 这是我目前拥有的。但我不确定如何进入视图格式。
select count(PetType) as [Amount of Dogs]
from Pets
where pettype = 'dog'
select count(PetType) as [Amount of Cats]
from Pets
where PetType = 'cat'
感谢您的帮助。
【问题讨论】: