Các thuộc tính liên kết

Nếu bạn nhắp đúp vào một mối nối giữa hai trường được liên kết trong bản thiết kế truy vấn, hoặc nếu bạn chọn lệnh Chèn > Quan hệ mới, hộp thoại Thuộc tính nối sẽ mở. Các thuộc tính này sẽ được dùng trong mọi truy vấn được tạo về sau.

Để truy cập lệnh này...

Mở ô thiết kế truy vấn, sau đó chọn lệnh Chèn > Quan hệ mới, hoặc nhấn-đôi vào một đường kết nối giữa hai bảng.


Bảng liên quan

Ghi rõ hai bảng khác nhau mà bạn muốn nối với nhau.

Trường liên quan

Ghi rõ hai trường dữ liệu mà sẽ được nối lại bằng một quan hệ.

Tùy chọn

Kiểu

Specifies the join type of the selected join. Some databases support only a subset of the various possible types.

Nối trong

In an inner join, the results table contains only those records for which the content of the linked fields is the same. In LibreOffice SQL this type of link is created by a corresponding WHERE clause.

Nói trái

In a left join, the results table contains all records of the queried fields from the left table and only those records of the queried fields from the right table for which the content of the linked fields is the same. In LibreOffice SQL this type of link corresponds to the LEFT OUTER JOIN command.

Nối phải

In a right join, the results table contains all records of the queried fields from the right table and only those records of the queried fields from the left table for which the content of the linked fields is the same. In LibreOffice SQL this type of link corresponds to the RIGHT OUTER JOIN command.

Nối đầy đủ

In a full join, the results table contains all records of the queried fields from the left and right tables. In the SQL of LibreOffice this type of link corresponds to the FULL OUTER JOIN command.

Tự nhiên

In a natural join, the keyword NATURAL in inserted into the SQL statement that defines the relation. The relation joins all columns that have the same column name in both tables. The resulting joined table contains only one column for each pair of equally named columns.

Please support us!