当前位置:网站首页>A priority SQL problem
A priority SQL problem
2022-07-27 07:36:00 【ORACLE11g】
| TYPE | RATE | TYPE | RATE | TYPE | RATE | TYPE | RATE | TYPE | RATE | |||||
| M | 1 | Use this | M | 1 | Use this | M | 1 | Use this | M | 1 | Use this | N | 1 | Use this |
| N | 2 | N | 2 | O | 2 | N | 2 | O | 2 | |||||
| O | 3 |
SQL How to achieve M>N>O The order of priority , When there is only one, only the corresponding , Consider the priority order when multiple
Other answers 1:
order by type limit 1 Just take the first one .
Other answers 2:
row_number() over(partition by FCURR,RATEorder by TYPE ) XH --M>N>O priority
Written in this way No problem found so far
Other answers 3:
partition by Can't include RATE ah .
Other answers 4:
The wrong date is the exchange rate
边栏推荐
- Understanding and learning of properties class and properties configuration file
- Flink principle (I) TTL management and fault tolerance mechanism of state
- 次轮Okaleido Tiger即将登录Binance NFT,引发社区热议
- Use of tigervnc
- drawImage方法第一次调用不显示图片的解决方式
- 杂谈:高考
- Compiling and using log4cxx in rhel7.3
- Using docker in MAC to build Oracle database server
- Will Flink CDC constantly occupy Oracle's memory by extracting Oracle's data, and finally cause oracle-040
- 查看服务器重启前的 dmesg 日志
猜你喜欢

(2022牛客多校三)J-Journey(dijkstra)

软件测试十大必问面试题(附答案和解析)

(2022 Niuke multi school III) j-journey (Dijkstra)

Panabit SNMP配置

C# Winfrom 常用功能整合-2

Use the PIP command to switch between different mirror sources

Zabbix: 将收集到值映射为易读的语句

Li Mu hands-on learning, in-depth learning, V2 transformer and code implementation

tigervnc的使用

(2022 Hangdian multi school III) 1011.taxi (Manhattan maximum + 2 points)
随机推荐
drawImage方法第一次调用不显示图片的解决方式
centos7中关闭oracle服务自动启动的功能
js做一个红绿灯
单元测试系统化讲解之Mockito
Simple rotation chart
Panabit SNMP configuration
js正则表达式实现每三位数字加一个逗号
连接MySQL时报错:Public Key Retrieval is not allowed 【解决方法】
杂谈:跟女儿聊为啥要学好文化课
(2022 Niuke multi school III) j-journey (Dijkstra)
C语言 pthread_cleanup_push()和pthread_cleanup_pop()函数(用于临界资源程序段中发生终止动作后的资源清理任务,以免造成死锁,临界区资源一般上锁)
Use Popen to execute a command and get the return result
Plato Farm有望通过Elephant Swap,进一步向外拓展生态
Want to sink into redis hash and write in the attributes and values of the object. Do the bosses have a demo?
flink去重(二)解决flink、flink-sql去重过程中的热点问题
多线程【初阶-上篇】
flink1.14 sql基础语法(一) flink sql表查询详解
ARP广播实践案例
使用sqlplus显示中文为乱码的解决办法
Use shell to calculate the sum of numbers in text