Highlighted text? Practice this concept. Highlighted passages and figures open related questions.
Practice related questions (1)Progress & bookmarks
Current section
2-2-5 Joining the Tables
p. 273
Progress
Not marked complete
Related questions in this lesson 1
Equijoin conditions in WHERE1p. 273
2-2-5 Joining the Tables
Joining the tables means combining two or more tables into one table. There are a few methods of joining. However, the easiest method is explained by using the following two tables.
When two or more tables are used, list all tables used in the FROM clause. With this, the combinations (i.e., direct product) of all tuples of the specified tables are created. This method of joining, which takes the direct product of two or more tables, is called cross join.
p. 274
ex20: From the “Score” table and the “Subject” table, extract StudentNumber, SubjectName for which the students took an examination, and Score.
When the table with FROM clause is specified, by adding correlation name, SQL statement in ex20 can be simplified as follows:
One of the methods of joining tables uses JOIN specification in the FROM clause. With JOIN specification, the following three joining operations can be achieved.
p. 275
Section progress
Original chapter exercises
Original chapter exercises →New FE Textbook Vol.1 · IT Fundamentals · First Edition, April 2015

![Original SQL worked example with its complete source code, indentation, punctuation, source frame and any attached original notes. Source text: [Cross join] SELECT * FROM α, β](/private-assets/fe-v1/ch04/sql-joins/original-image-283-2-9d9390bffbc7.webp)
![Original SQL worked example with its complete source code, indentation, punctuation, source frame and any attached original notes. Source text: [Equijoin] SELECT * FROM α, β WHERE α.Y = β.Y](/private-assets/fe-v1/ch04/sql-joins/original-image-283-4-afe76e68934e.webp)





