三个表加入oracle 11g [英] Three table join in oracle 11g
本文介绍了三个表加入oracle 11g的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
https://drive.google.com/file/d/0B3BFGC_k79UObHRjMGZpVXZwa3M/view?usp =分享
以上链接包含三张桌子的图片。
-top左图中的图片是治疗桌子(tid,治疗,费用)。
-top右边是设备表(开斋节,设备,费用)
-bottom table是treat_info table
i想要treat_info表的所有列数据以及治疗表和设备的相应费用。
什么是sql查询?
https://drive.google.com/file/d/0B3BFGC_k79UObHRjMGZpVXZwa3M/view?usp=sharing
the above link contains the image of the three tables.
-top left table in the image is treatment table(tid,treatment,fee).
-top right is equipment table(eid,equipment,fee)
-bottom table is treat_info table
i want all the columns data of treat_info table and the corresponding fee of the treatment table and equipment atble.
what is the sql query?
推荐答案
请点击链接,了解如何从这3个表中加入数据: SQL连接的可视化表示 [ ^ ]
不要偷懒,试试!
Please follow the link to find out how to join data from these 3 tables: Visual Representation of SQL Joins[^]
Don't be lazy, try!
这篇关于三个表加入oracle 11g的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文