TAILIEUCHUNG - SQL VISUAL QUICKSTART GUIDE- P27

SQL VISUAL QUICKSTART GUIDE- P27:SQL (pronounced es-kyoo-el) is the standard programming language for creating, updating, and retrieving information that is stored in databases. With SQL, you can turn your ordinary questions (“Where do our customers live?”) into statements that your database system can understand (SELECT DISTINCT city, state FROM customers;) | Creating Outer Joins with OUTER JOIN Chapter 7 Listing uses a right outer join to include all publishers in the result regardless of whether an author lives in the publisher s city. See Figure for the result. Tip To run Listing in Microsoft SQL Server by using WHERE syntax type SELECT FROM authors a publishers p WHERE ORDER BY ASC ASC ASC To run Listing in Oracle 8i type SELECT FROM authors a publishers p WHERE ORDER BY ASC ASC ASC Listing This right outer join includes all rows in the table publishers in the result whether or not there s a match in the column city in the table authors. See Figure for the result. Listing SELECT FROM authors a RIGHT OUTER JOIN publishers p ON ORDER BY ASC ASC ASC au_fname au_lname pub_name Christian Kells Abatis Publishers Hallie Hull Core Dump Books Klee Hull Core Dump Books NULL NULL Schadenfreude Press NULL NULL Tenterhooks Press Figure Result of Listing . Note that there s no matching data for two of the listed publishers so these rows contain nulls in the columns au_fname and au_lname. 240 Joins Listing This full outer join includes all rows in the tables authors and publishers in the result whether or not there s a match in the city columns. See Figure for the result. Listing SELECT FROM authors a FULL OUTER JOIN publishers p ON ORDER BY ASC ASC ASC au_fname au_lname pub_name Sarah Buchman NULL Wendy Heydemark NULL Kellsey NULL Paddy O Furniture NULL Christian Kells Abatis Publishers Hallie Hull Core Dump Books Klee Hull Core Dump Books NULL NULL Schadenfreude Press NULL NULL Tenterhooks Press Figure Result of Listing . This result contains nine rows four

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.