当前位置:网站首页>GBase 8s V8. 8 SQL Guide: Tutorial - 6.2.1 (3)
GBase 8s V8. 8 SQL Guide: Tutorial - 6.2.1 (3)
2022-04-22 22:42:00 【Gbase database】
The self join in the following query is in stock Create a list of those goods supplied by three manufacturers in the table . Self connect in
WHERE Clause includes the last two conditions , To remove the duplicate manufacturer code retrieved in the line .
chart : Inquire about
SELECT s1.manu_code, s2.manu_code, s3.manu_code,
s1.stock_num, s1.description
FROM stock s1, stock s2, stock s3
WHERE s1.stock_num = s2.stock_num
AND s2.stock_num = s3.stock_num
AND s1.manu_code < s2.manu_code
AND s2.manu_code < s3.manu_code
ORDER BY stock_num;
chart : Query results
manu_code manu_code manu_code stock_num description
HRO HSK SMT 1 baseball gloves
ANZ NRG SMT 5 tennis racquet
ANZ HRO HSK 110 helmet
ANZ HRO PRC 110 helmet
ANZ HRO SHM 110 helmet
ANZ HSK PRC 110 helmet
ANZ HSK SHM 110 helmet
ANZ PRC SHM 110 helmet
HRO HSK PRC 110 helmet
HRO HSK SHM 110 helmet
HRO PRC SHM 110 helmet
⋮
KAR NKL PRC 301 running shoes
KAR NKL SHM 301 running shoes
KAR PRC SHM 301 running shoes
NKL PRC SHM 301 running shoes
版权声明
本文为[Gbase database]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204222204593822.html
边栏推荐
- Reinforcement learning (practice): feedback, AC
- GORM 预加载和自引用
- PHP wechat refund certificate
- 2.57-编写程序show_short, show_long和show_double,它们分别打印类型为short, long和double的C语言对象的字节表示。请试着在几种机器上运行。
- Enter a line of characters, separated by a space between words, and count how many words there are
- 高端啤酒正在失去年轻人
- GBase 8s V8.8 SQL 指南:教程-6.2
- MySql--- 数据类型
- appinventor2在window上搭建步骤
- MySql--数据库基础
猜你喜欢

51 MCU proteus simulation key control nixie tube digital display

Best buy website EDI test process

GORM 预加载和自引用

Transport layer - overview of transport layer (1)

跨域问题及Umi-proxy代理解决跨域问题

LLVM 学习(一) -初识LLVM

A journey to C by Xiao Sai Mao -- first understanding of C language (3)

MySql内置函数

中缀转后缀表达式(逆波兰式) 转 前缀表达式(波兰式)

条件编译分析及使用
随机推荐
PMP证书到期了有必要续吗
ES6 transforms two-dimensional and multi-dimensional arrays into one-dimensional arrays
How to use lightly to teach programming classes gracefully?
餐饮行业收银系统源码,C# .NET + MSSQL WPF
【深入浅出强化学习】1 绪论
SecureCRT v7.0连接sshd服务失败解决
静态和动态控制数码管
【Paper】2019_Distributed fixed-time consensus-based formation tracking for multiple nonholonomic whee
Why is bi so important to enterprises?
Brits: bidirectional recurrent impaction for time series
41.0:GemBox.Spreadsheet|.Document|.Pdf|.Presentation
GBase 8s V8.8 SQL 指南:教程-6.2.2(1)
强化学习(实践):REINFORCE,AC
深开鸿新闻直播间首次开播 共同见证时代成长全历程
How to judge how many levels of insurance the enterprise should do? What is the significance of waiting insurance?
SMB+MSSQL
GBase 8s V8.8 SQL 指南:教程-6.2.1(1)
PHP wechat refund certificate
O0 O1 O2 O3优化原理
Basic practice of C language (001-1)