You are here: Home >Posts Tagged ‘RIGHT JOIN

SQL RIGHT JOIN Keyword

คำสั่ง SQL RIGHT JOIN Keyword เป็นการเชื่อมข้อมูลตั้งแต่สองตารางขึ้นไป โดย Keyword ที่ใช้ Join ตารางด้านขวาเป็นหลัก ถึงแม้จะไม่มีข้อมูลของตารางด้านด้านที่จะตรงเลยก็ตาม The RIGHT JOIN keyword returns all the rows from the right table (table_name2), even if there are no matches in the left table (table_name1).

Tags: , , , , ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

SQL Joins

SQL Joins เป็นคำสั่งสำหรับเชื่อมข้อมูลที่มีตั้งแต่สองตารางขึ้นไป โดยมีความสัมพันธ์ระหว่างบางคอลัมน์ที่มีดาต้าเหมือนกัน หรือเป็นการเชื่อมระหว่าง Primary key กับ Foreign Key ซึ่งค่าที่เป็น Primary key จะต้องเป็นค่าที่ไม่ซ้ำ ข้อพึงระวัง SQL Joins จะเป็นคำสั่งที่เปลืองประสิทธิภาพเครื่องมากหากข้อมูลที่นำมาก Joins กันมาขนาดใหญ่ SQL joins are used to query data from two or more tables, based on a relationship between certain columns in these tables.

Tags: , , , , , , , ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS