I have two tables that are combined. I have included the "exit" of the joined tables. I am wondering what is called this connection problem? There are duplicate lines.
Table 1 Table 2ID Name Identification Name1 4 & Marys2 5 & Xavier 3 6 Gary
Connection Output:
Identifier Identification name4 Mary 1 Joey4 2 Shawn4 Mary 3 Mark5 & nbsp; Xavier 1 Joey5 & nbsp; Xavier 2 Shawn5 & nbsp; Xavier 3 Mark6 Gary 1 Joey6 2 Shawn6 3 Mark
If memory is used, which is called the Cartesian product.
I think your problem is what you want to use UNION, not JOIN.
UNION
JOIN
Example:
SELECT * FROM Table1 UNION SELECT * FROM Table2;
Must give you:
ID Name 1 Joey 2 Shawn 3 Mark 4 Mary 5 Xavier 6 Gary
Is this what you are trying to do?
CROSS JOIN.
SELECT * FROM Table2, Table1
CROSS JOIN, , 2 .
Sounds like you need a UNION
SELECT * FROM Table1 UNION SELECT * FROM Table2
Source: https://habr.com/ru/post/1717966/More articles:Is a mouse click a WM_ * message or a combination of up and down messages? - windowsSeam 2.2.0 URL Rewriting Doesn't Work - url-rewritingHow could he work with multiple cursors on a single Windows client? - c #MySQL: Union of the left joins the correct connection - sqlDeploying ASP.NET Applications: Push vs. Pull - asp.netejabberd: is there a way to determine if a user is an administrator? - erlangHow to burn DVD video from C #? - c #FFmpeg: "[h264 @] AVC: потребляется только n байтов вместо n + 6" - ffmpegIs AMF flash only? - amfThe PTE structure in the linux kernel - linuxAll Articles