select_from_2_tables.sql

来自「AbsDataBase5.16 最新版」· SQL 代码 · 共 10 行

SQL
10
字号
/*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 + =
减小字号Ctrl + -
显示快捷键?