如何在 SQL 中删除 NULL group by ?
如何删除 NULL 行, 或者更好的是,为该行分配一个唯一值,而不是 NULL?
你能告诉我两种方式吗?
我尝试使用它作为事实表,以便我可以在 powerbi 上连接关系 但我有多对多关系,我认为为 NULL 分配一个值可能可以解决问题
How do I remove the NULL row,
or better yet, assign a unique value to that row, instead of NULL?
can you show me both way?
i try to use this as a fact table so i can connect a relationship on powerbi
but i got a many to many relationship, i think assigning a value to the NULL might able to solve the problem
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
删除
null
group,将其过滤出来:keep
null
group,但将其标记为其他东西,使用cocece
:To remove the
NULL
group, filter it off:To keep the
NULL
group, but label it as something else, useCOALESCE
:您可以包含一个子句。从之后,在小组之前。
You can include a where clause. After from, before group by.