当前位置:网站首页>Introduction to bi-sql wildcards
Introduction to bi-sql wildcards
2022-06-25 01:12:00 【Powerbi white tea】

wildcard
The concept of wildcard is an important part of database language .
The important reason must be that you can guess , The data level of data warehouse is usually large , Many times we do data query , You can't guarantee the accuracy of your query conditions , Or we need fuzzy query to get a kind of data , Wildcards are useful in this case .
Compare with SQL,PowerBI There are few opportunities to use wildcards .
The fundamental reason lies in their different positioning .PowerBI Focus on the front-end display of data ,SQL It is the back-end data cleaning and storage .
SQL Wildcard category
| wildcard | describe |
|---|---|
| % | Replace one or more characters |
| _ | Replace a character |
| [ list ] | Scope of Supply |
| [^ list ] | Not in the scope of supply |
| [! list ] | Not in the scope of supply |
notes : The wildcard must be associated with LIKE Use it with .
Using examples
Case data :

In the database of white tea machine , There is a name “TEST” The database of , There is a name “ Product list ” Case data for .
Example 1:
stay PowerBI Get the product table in [ Name of commodity ] Beginning with “ child ” All data for .
SELECT * FROM Product list WHERE Name of commodity LIKE N' child %'

give the result as follows :

Example 2:
stay PowerBI Get the product table in [ Name of commodity ] It ends with “ pants ” All data for .
SELECT * FROM Product list WHERE Name of commodity LIKE N'% pants '

give the result as follows :

Example 3:
stay PowerBI Get the product table in [ Name of commodity ] The middle contains “ son ” All data for .
SELECT * FROM Product list WHERE Name of commodity LIKE N'% son %'

give the result as follows :

Example 4:
stay PowerBI Get the product table in [ Name of commodity ] The middle contains “ son ” And the number of characters is 3 All the data .
SELECT * FROM Product list WHERE Name of commodity LIKE N'_ son _'

give the result as follows :

Example 5:
stay PowerBI Get the product table in [ Name of commodity ] It begins with “ mouth 、 Infant 、 child ” All data for .
SELECT * FROM Product list WHERE Name of commodity LIKE N'[ Oral infant child ]%'

give the result as follows :

Example 6:
stay PowerBI Get the product table in [ Name of commodity ] Does not begin with “ mouth 、 Infant 、 child ” All data for .
SELECT * FROM Product list WHERE Name of commodity LIKE N'[^ Oral infant child ]%'

give the result as follows :



This is white tea , One PowerBI Beginners .
边栏推荐
- Yasea APK Download Image
- Databinding quick start (still using findviewbyid?)
- Heavyweight: the domestic ide was released, developed by Alibaba, and is completely open source! (high performance + high customization)
- Scala responsibility chain pattern
- Add information on the left and add parts on the right of the status bar
- [practical series] full WiFi coverage at home
- 联想童夫尧:11倍于大势,我们一路攻城拔寨
- Scala sample class case calculate
- Scala IO read by character
- Go语言运算符(第8课下)
猜你喜欢

I brush the question I - copy the linked list with random pointer
![[redis realizes seckill business ③] specific implementation of optimistic lock for oversold problem](/img/01/5ec4e5dae1748dce3d5dee33a24b0b.png)
[redis realizes seckill business ③] specific implementation of optimistic lock for oversold problem

The basic principle and application of iterator and enhanced for

Scala IO read by character

Text editor for QT project practice - Episode 12
![[micro service sentinel] real time monitoring | RT | throughput | concurrency | QPS](/img/fc/6b36759570b9b1007d2640009576d9.png)
[micro service sentinel] real time monitoring | RT | throughput | concurrency | QPS

图书馆管理系统代码源码(php+css+js+mysql) 完整的代码源码

2022年危险化学品经营单位安全管理人员考试试题及模拟考试

Text editor of QT project practice ---------- episode 11

Text editor for QT project practice - Episode 10
随机推荐
Scala classes inherit multiple attributes
Première application de l'informatique quantique à la modélisation des flux de puissance dans les systèmes énergétiques à l'Université technique danoise
Programmer: did you spend all your savings to buy a house in Shenzhen? Or return to Changsha to live a "surplus" life?
If the order has not been paid for 30 minutes, it will be automatically cancelled. How can I achieve this?
程序员:是花光积蓄在深圳买房?还是回到长沙过“富余”生活?
2022安全员-C证考试模拟100题及在线模拟考试
Mobile security tool jarsigner
Rich text tables, lists, pictures
How about compass stock trading software? Is it safe?
Sanic服务启动失败
卷积与反卷积关系超详细说明及推导(反卷积又称转置卷积、分数步长卷积)
Yasea APK Download Image
[untitled]
[redis realizes seckill service ④] one order for one person, and cannot be purchased repeatedly
Distinguish between i++ and ++i seconds
联想童夫尧:11倍于大势,我们一路攻城拔寨
Go language operators (under Lesson 8)
图片旋转移动缩放渐变
A plug-in framework for implementing registration free and login verification with hook technology
Danish Technical University pioneered the application of quantum computing to power flow modeling of energy system