zoukankan      html  css  js  c++  java
  • OCP-1Z0-051-V9.02-131题

    131. View the Exhibit and examine the structure of the PRODUCT, COMPONENT, and PDT_COMP

    tables.

    In PRODUCT table, PDTNO is the primary key.

    In COMPONENT table, COMPNO is the primary key.

    In PDT_COMP table, (PDTNO,COMPNO) is the primary key, PDTNO is the foreign key referencing

    PDTNO in PRODUCT table and COMPNO is the foreign key referencing the COMPNO in COMPONENT

    table.

    You want to generate a report listing the product names and their corresponding component names, if the

    component names and product names exist.

    Evaluate the following query:

    SQL>SELECT pdtno,pdtname, compno,compname

    FROM product _____________ pdt_comp

    USING (pdtno) ___________ component USING(compno)

    WHERE compname IS NOT NULL;

    Which combination of joins used in the blanks in the above query gives the correct output? 

    A. JOIN; JOIN

    B. FULL OUTER JOIN; FULL OUTER JOIN

    C. RIGHT OUTER JOIN; LEFT OUTER JOIN 外键的关系

    D. LEFT OUTER JOIN; RIGHT OUTER JOIN

    Answer: C

    答案解析:

    参考:http://blog.csdn.net/rlhua/article/details/12877591


    listing the product names and their corresponding component names, if the

    component names and product names exist

    报表显示的是如果component names和product names存在,则显示product names和对应的component names

    即显示PDT_COMP表中所有的值

  • 相关阅读:
    P1772 [ZJOI2006]物流运输
    P4290 [HAOI2008]玩具取名
    P1859 不听话的机器人
    P1841 [JSOI2007]重要的城市
    P2182 翻硬币
    P1908 逆序对(归并排序)
    P1010 幂次方(分治)
    P3386 【模板】二分图匹配
    P2158 [SDOI2008]仪仗队
    P1582 倒水(贪心 + lowbit)
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13316860.html
Copyright © 2011-2022 走看看