📄 select_from_2_tables.sql
字号:
/*This SQL script uses Demos.abs database.
Please open ...\AbsoluteDatabase\Demos\Data\Demos.abs database file.
This example illustrates how to get data from two tables using EQUI-JOIN.
The query lists all events and venues where they take place. Notice that only those entries will be shown that have corresponding values in both tables. If event name has empty field "VenueNo" or its value is never met in same field of table "Venues", then this event will not be included in the resulting dataset.*/
select e1."Event_Name", v2."Venue"
from "events" e1, "venues" v2
where (e1."VenueNo" = v2."VenueNo")
order by e1."Event_Name" asc, v2."Venue" asc
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -