当前位置:网站首页>Bi-sql distinct
Bi-sql distinct
2022-06-24 04:47:00 【Powerbi white tea】
DISTINCT function
stay SQL in ,DISTINCT Function is also one of the common functions , It can usually be used to de duplicate tables or columns .
Its purpose and PowerBI-DAX Function DISTINCT Functions are similar , You can de duplicate tables or columns .
Basic grammar
grammar 1:
SELECT DISTINCT Column name FROM The name of the table
grammar 2:
SELECT DISTINCT * FROM The name of the table
notes : Usually ,SQL Data warehouse is very strict for data storage , Each row of data has a corresponding primary key ( The unique identifier ),DISTINCT It mainly solves the problems similar to the extraction of unique information .
Using examples
Case data 1:
In the native database of white tea , There is a name “TEST” The database of , Its name is “Distinct” Analog data sheet for , My friends can clearly see A01 The data in this row is repeated .
Example 1:
Import the entire table to PowerBI in .
SELECT
DISTINCT
*
FROM
[Distinct]give the result as follows :
about A01 The repeated projects of are successfully removed , Redundant lines are removed .
Case data 2:
In the native database of white tea , There is a name “TEST” The database of , Its name is “ Sales details ” Analog data sheet for .
Example 2:
Re import the branch to PowerBI in .
SELECT
DISTINCT
The branch where you are
FROM
Sales details give the result as follows :
Successful de duplication of the branch column .
Example 3:
Re import the product name and the branch combination to PowerBI in .
SELECT
DISTINCT
Name of commodity ,
The branch where you are
FROM
Sales details give the result as follows :
This is white tea , One PowerBI Beginners .
边栏推荐
- Final summary of freshman semester (supplement knowledge loopholes)
- SAP mts/ato/mto/eto topic 10: ETO mode q+ empty mode unvalued inventory policy customization
- How does ECS publish websites? What software tools are needed?
- Abnova荧光原位杂交(FISH)探针解决方案
- Introduction to gradient descent method - black horse programmer machine learning handout
- How are ECS leased? Can the ECS use VPN?
- Loss and optimization of linear regression, machine learning to predict house prices
- Introduction to C language custom types (structure, enumeration, union, bit segment)
- SAP mts/ato/mto/eto topic 7: ATO mode 1 m+m mode strategy 82 (6892)
- Lldb common commands
猜你喜欢

Loss and optimization of linear regression, machine learning to predict house prices

博士申请 | 香港科技大学(广州)刘浩老师招收数据挖掘方向全奖博士/硕士

重新认识WorkPlus,不止IM即时通讯,是企业移动应用管理专家

SAP mts/ato/mto/eto topic 7: ATO mode 1 m+m mode strategy 82 (6892)

SAP mts/ato/mto/eto topic 10: ETO mode q+ empty mode unvalued inventory policy customization

梯度下降法介紹-黑馬程序員機器學習講義

阿里云混合云首席架构师张晓丹:政企混合云技术架构的演进和发展

Training methods after the reform of children's programming course

External network access SVN server (external network access SVN server deployed on the cloud)

Facebook内部通告:将重新整合即时通讯功能
随机推荐
Database answers build standard, answer as required
Beauty of script │ VBS introduction interactive practice
How to build an ECS and how to control the server through the local host
『渗透基础』Cobalt Strike基础使用入门_Cobalt Strike联动msfconsole
How are ECS leased? Can the ECS use VPN?
What is the principle of Ping? How does the server disable Ping?
Weibo International Edition changed its name to Weibo light sharing Edition
Here's all you want to know about takin data (1) startup command
Collagenase -- four types of crude collagenase from Worthington
Leetcode refers to offer II 089 House theft
What is the data center
2022年二级造价工程师备考攻略,你准备好了吗?
编译器是如何将芯片执行的第一个指令放到芯片起始地址的?
web渗透测试----5、暴力破解漏洞--(5)SMB密码破解
How does ECS select bandwidth? What types of servers do you usually have?
Pgbouncer lightweight PG connection pool management tool
How to build a website for ECS? What are the prices of different ECS
图书馆管理后台
什么是数据中台
After purchasing Tencent ECs, how to solve packet loss in Internet access?