当前位置:网站首页>Bi-sql between
Bi-sql between
2022-06-25 01:12:00 【Powerbi white tea】

BETWEEN The operator
BETWEEN Operator belongs to WHERE The complement of sentences . Usually with AND Use it with , Can be used to limit the data range .
It can be a number , It can be text , It can also be a date .
Compare with PowerBI for ,SQL Medium BETWEEN More flexible .PowerBI Except that there are similar functions in the date function series , There is no single BETWEEN function .
Basic grammar
SELECT Column name (*) FROM The name of the table WHERE Column name BETWEEN Conditions 1 AND Conditions 2
matters needing attention
BETWEEN…AND The statement expression of is one of the general statements in database , This statement is available in most databases .
Different databases BETWEEN…AND Values are different , Some contain both ends , Some do not include both ends , Some contain only one end , Therefore, it is necessary to confirm the value difference of the current database language when using .
stay PowerBI When this sentence is used in , Note the value range of the connected database .
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 in , Filter out product table [ Item number ] Be situated between 08 and 15 All information between .
SELECT * FROM Product list WHERE Item number BETWEEN 08 AND 15

give the result as follows :

Example 2:
stay PowerBI in , Filter out product table [ The sale price ] Be situated between 20 and 50 All information between .
SELECT * FROM Product list WHERE The sale price BETWEEN 20 AND 50

give the result as follows :

Example 3:
stay PowerBI in , Filter out product table [ Name of commodity ] All the information between mask and sock .
SELECT * FROM Product list WHERE Name of commodity BETWEEN N' masks ' AND N' socks '

give the result as follows :

Example 4:
stay PowerBI in , Filter out product table [ cost ] Be situated between 10 and 50 All information except .
SELECT * FROM Product list WHERE cost NOT BETWEEN 10 AND 50

give the result as follows :



This is white tea , One PowerBI Beginners .
边栏推荐
- Use of file class filenamefilter & filefilter in io
- Leetcode 1248. 统计「优美子数组」(害,突然发现只会暴力枚举了)
- adb shell sendevent
- LLVM TargetPassConfig
- 启动服务11111
- Zuckerberg demonstrated four VR head display prototypes, and meta revealed the "family" of metauniverse
- Input series
- 智能合约安全审计入门篇 —— delegatecall (2)
- bindservice方法实现音乐播放暂停
- Heavyweight: the domestic ide was released, developed by Alibaba, and is completely open source! (high performance + high customization)
猜你喜欢

QT electronic clock

Syntax highlighting of rich text

Scala IO read by line

Text editor for QT project practice - Episode 10

2022年全国最新消防设施操作员(高级消防设施操作员)模拟题及答案

Examination questions and mock examination for safety management personnel of hazardous chemical business units in 2022

Text editor for QT project practice - Episode 12

利用 Redis 的 sorted set 做每周热评的功能

I brush the question I - copy the linked list with random pointer

程序员:是花光积蓄在深圳买房?还是回到长沙过“富余”生活?
随机推荐
Text border format and text block of rich text
Activity lifecycle
Databinding quick start (still using findviewbyid?)
51单片机多机通信
EVM Brief
启动服务11111
指南针炒股软件怎么样?安全吗?
ImageView展示网络图片
Thermodynamic diagram display correlation matrix
Golang example renewal lock: redis+channel+sync Mutex
[untitled]
Golang示例续期锁:Redis+Channel+sync.Mutex
Text editor of QT project practice ---------- episode 11
图片旋转移动缩放渐变
[redis realizes seckill business ③] specific implementation of optimistic lock for oversold problem
[redis realizes seckill service ④] one order for one person, and cannot be purchased repeatedly
Is it reliable to open an account on the flush with a mobile phone? Is there any hidden danger in this way
JS Chapter 1 Summary
Contentresolver, get the SMS content
Scala sample class