有効なOracle PL/SQL Developer Certified Associate 1z0-071日本語問題集はあなたの合格を必ず保証します [Q96-Q113]

Share

有効なOracle PL/SQL Developer Certified Associate 1z0-071日本語問題集はあなたの合格を必ず保証します

1z0-071日本語問題集でリアル試験問題でテストエンジン問題集でトレーニング

質問 # 96
複数行のサブクエリに関して正しいのはどの2つのステートメントですか? (2つ選択してください。)

  • A. グループ関数を含めることができます。
  • B. サブクエリの結果の一部にNULLが含まれる可能性がある場合は、メインクエリでNOT IN演算子と一緒に使用しないでください。
  • C. サブクエリ内に常にサブクエリが含まれています。
  • D. <ALL演算子を使用して、最大値よりも小さいことを意味します。
  • E. 単一のテーブルからのみ複数の行を取得するために使用できます。

正解:A、B


質問 # 97
どのステートメントが正常に実行されますか?

  • A. SELECT TO_DATE(TO_NUMBER(INTERVATL '800' SECOND))FROM DUAL;
  • B. SELECT TO_DATE(INTERVAL '800' SECOND、 'HH24:MM')FROM DUAL;
  • C. SELECT TO_CHAR(INTERVAL '800' SECOND、 'HH24:MM')FROM DUAL;
  • D. SELECT TO_NUMBER(INTERVAL'800'SECOND、 'HH24:MM')FROM DUAL;
  • E. SELECT TO_NUWBER(TO_DATE(INTERVAL '800' SECOND))FROM DUAL;

正解:C

解説:
Oracle's interval data types store a period of time. When you want to format an interval as a string, you can use the TO_CHAR function.
A). This statement will not execute successfully because TO_DATE expects a string representing a date, not a number derived from an interval.
B). This statement will not execute successfully because TO_NUMBER does not support interval data types as an input.
C). This statement will not execute successfully because TO_DATE does not support interval data types as an input.
D). This statement will not execute successfully because TO_NUMBER expects a number or a string representing a number as an argument, not a date.
E). This statement will execute successfully. TO_CHAR function can be used to convert interval values to a formatted string, such as 'HH24:MM'.


質問 # 98
実体関連図(ERD)に基づいて2つのテーブルから関連する行を選択することについて正しい2つのステートメントはどれですか?

  • A. 無関係なテーブルの行は結合できません。
  • B. 2つのテーブル間のすべての関係は、結合条件で実装する必要があります。
  • C. 内部結合は、同じテーブル内の行を関連付けます。
  • D. テーブルのデータと同じテーブルのデータの関連付けは、自己結合を使用して実装されます。
  • E. 2つのテーブル間の関係を実装するには、追加のテーブルを結合する必要がある場合があります。

正解:D、E

解説:
Understanding the functionality of SQL joins and their application in a relational database:
* Option A: Correct. A self join is used to relate or compare rows within the same table. It typically involves using table aliases to distinguish the different instances of the table in the query.
* Option B: Incorrect. An inner join relates rows between two different tables based on a common condition, not within the same table.
* Option C: Incorrect. SQL allows joining of rows from any tables, whether directly related by foreign keys or not, as long as there is a logical condition that can relate their columns.
* Option D: Correct. Sometimes establishing a relationship between two specific tables might require joining through one or more intermediary tables, particularly in cases involving complex relationships or normalization.
* Option E: Incorrect. While joins are often used to implement relationships, not every logical relationship necessitates a join condition, especially if data from only one table is required or if multiple relations are possible but not relevant to the specific query.


質問 # 99
次のコマンドを実行します。
TRUNCATE TABLE dept;
どちらが正しいですか?

  • A. テーブルで定義されたインデックスを保持します。
  • B. 削除された行が使用するスペースを常に保持します。
  • C. テーブルに定義されているすべてのトリガーをドロップします。
  • D. FLASHBACK TABLEステートメントを使用して、削除されたデータを取得できます。
  • E. テーブルで定義された整合性制約を保持します。
  • F. ROLLBACKステートメントを使用して、削除されたデータを取得できます。

正解:A、E


質問 # 100
INTERVALデータ型について正しい2つのステートメントはどれですか

  • A. INTERVAL DAY TO SECOND列の値は、INTERVAL YEAR TOMONTH列にコピーできます。
  • B. INTERVAL YEAR TO MONTH列は、年の範囲内の月間隔のみをサポートします。
  • C. INTERVAL YEAR TO MONTH列は、年間隔をサポートします。
  • D. INTERVAL DAY TOSECOND列は秒の端数をサポートします。
  • E. INTERVAL YEAR TO MONTH列は、1年以内の月間隔のみをサポートします。
  • F. INTERVAL YEAR TOMONTH列のYEARフィールドは正の値である必要があります。

正解:B、D

解説:
Regarding INTERVAL data types in Oracle Database 12c:
* A. INTERVAL YEAR TO MONTH columns only support monthly intervals within a range of years. This is true. The INTERVAL YEAR TO MONTH data type stores a period of time using years and months.
* E. INTERVAL DAY TO SECOND columns support fractions of seconds. This is true. The INTERVAL DAY TO SECOND data type can store days, hours, minutes, seconds, and fractional seconds.
Options B, C, D, and F are incorrect:
* B is incorrect because data types between INTERVAL DAY TO SECOND and INTERVAL YEAR TO MONTH are not compatible.
* C is incorrect as it incorrectly limits INTERVAL YEAR TO MONTH to a single year.
* D is incorrect; the YEAR field can be negative to represent a past interval.
* F is incorrect as INTERVAL YEAR TO MONTH supports intervals that can span multiple years, not just annual increments.


質問 # 101
unionなどの集合演算子を含むSQLステートメントで使用する場合、orderby句について正しい2つのステートメントはどれですか。

  • A. 複合クエリの各selectステートメントは、独自のorderby句を持つことができます。
  • B. 列の位置はorderby句で使用する必要があります。
  • C. union演算子を使用した複合クエリの最初の選択の最初の列は、orderby句がない場合に出力を並べ替えるためにデフォルトで使用されます。
  • D. 複合クエリの各selectステートメントには、独自のorderby句が必要です。
  • E. 複合クエリの最初のselectステートメントの列名のみが認識されます。

正解:B、E

解説:
A). True, when using the ORDER BY clause with set operators like UNION, you can refer to the results by column positions. This allows for consistent sorting behavior across potentially heterogeneous SELECT statements.D. True, only the column names or positions from the first SELECT statement are recognized in the ORDER BY clause when used with set operators like UNION, as the result set is treated as if it originated from the first SELECT structure.
References:
* Oracle documentation on ORDER BY with set operators: Oracle Database SQL Language Reference
* Explanation of ORDER BY usage: Oracle SQL Tips
Top of Form


質問 # 102
SALESテーブルの説明を調べます。

SALESテーブルには5,000行あります。
このステートメントを調べてください。
CREATE TABLE sales1(prod id、cust_id、quantity_sold、price)
なので
SELECT product_id、customer_id、quantity_sold、price
販売から
WHERE 1 = 1
正しい2つのステートメントはどれですか?

  • A. SALES1には、SALESテーブルでこれらの制約があった選択された列にNOTNULL制約があります。
  • B. SALES1は1行で作成されます。
  • C. SALES1には、SALESテーブルでこれらの制約があった選択された列にPRIMARYKEYおよびUNIQUE制約があります。
  • D. SALES1は5,000行で作成されます。

正解:A、D


質問 # 103
COUNT関数に関して正しい2つのステートメントはどれですか。 (2つ選択してください。)

  • A. NUMBERデータ型にのみ使用できます。
  • B. COUNT(*)は、重複行および任意の列にNULL値を含む行を含む行数を返します。
  • C. COUNT(DISTINCT inv_amt)は、INV_AMT列に重複とNULLを含む行を除く行数を返します。
  • D. COUNT(inv_amt)は、INV_AMT列にNULLがある行を含むテーブルの行数を返します。
  • E. DISTINCTキーワードを指定したCOUNT関数を使用するSELECTステートメントにWHERE句を含めることはできません。

正解:B、C


質問 # 104
翌月の最初の月曜日の日付を表示したい場合は、次のコマンドを実行してください。
SQL>SELECT TO_CHAR(NEXT_DAY(LAST_DAY(SYSDATE),'MON'), 'dd "はfmmonth rrrrの最初の月曜日です') FROM DUAL; 結果はどうなりますか?

  • A. 正常に実行され、正しい結果が返されます。
  • B. TO_CHARをTO_DATEに置き換える必要があるため、エラーが発生します。
  • C. フォーマット文字列では fm と二重引用符を使用すべきではないため、エラーが発生します。
  • D. フォーマット文字列では rrrr を rr に置き換える必要があるため、エラーが発生します。
  • E. 正常に実行されますが、正しい結果を返しません。

正解:A

解説:
NEXT_DAY(date, 'char'): Finds the date of the next specified day of the week ('char') following date. The value of char may be a number representing a day or a character string.
LAST_DAY(date): Finds the date of the last day of the month that contains date The second innermost function is evaluated next. TO_CHAR('28-OCT-2009', 'fmMonth') converts the given date based on the Month format mask and returns the character string October. The fm modifier trims trailing blank spaces from the name of the month.


質問 # 105
UNIONなどのSET操作を使用するSQLステートメントについて正しい2つはどれですか?

  • A. 列の数は、名前ではなく、クエリ内のすべてのSELECTステートメントで同一である必要があります
  • B. 2番目のクエリによって再調整された各列のデータ型は、最初のクエリによって返された対応する列のデータ型と正確に一致する必要があります
  • C. クエリ内のすべてのSELECTステートメントで、列の名前と数が同じである必要があります。
  • D. 2番目のクエリによって返される各列のデータ型は、最初のクエリによって返される対応する列のデータ型に暗黙的に変換可能である必要があります
  • E. 2番目のクエリによって返される各列のデータ型グループは、最初のクエリによって返される対応する列のデータ型グループと一致する必要があります

正解:A、D

解説:
In the context of SQL statements using SET operations like UNION in Oracle Database 12c:
A . The data type of each column returned by the second query must be implicitly convertible to the data type of the corresponding column returned by the first query. This is correct. Oracle allows the union of columns as long as their data types are implicitly convertible, not necessarily identical.
C . The number, but not names, of columns must be identical for all SELECT statements in the query. This is correct. For a UNION operation to be valid, all SELECT statements involved must have the same number of columns, although their names and exact data types need not match.
Options B, D, and E are incorrect:
B is incorrect because exact data type matches are not required, only that they be implicitly convertible.
D is also incorrect for the same reason as B; it's enough that the types are compatible, not identical.
E is incorrect as the names


質問 # 106
Oracle Databaseサーバーにおけるトランザクションについて、正しい記述を2つ選択してください。

  • A. セッションは、自身によって行われた未コミットの更新を常に確認できます。
  • B. ユーザーは、別のセッションで同じユーザーが行った未コミットの更新をいつでも確認できます。
  • C. セッションにコミットされていないトランザクションがある場合、DDL ステートメントは新しいトランザクションを開始する前に COMMIT を発行します。
  • D. データ操作言語 (DML) ステートメントは常に新しいトランザクションを開始します。
  • E. ユーザーが SQL*Plus に存在する場合、未コミットのトランザクションは自動的にコミットされます。
  • F. データ定義言語 (DDL) ステートメントは、DDL によって引き起こされるデータ ディクショナリの更新に対してのみ自動的に COMMIT を実行します。

正解:A、D


質問 # 107
テーブルを作成するには、次のコマンドを使用します。
CREATE TABLE rate_list (rate NUMBER(6,2));
ステートメントの実行に関して正しい記述はどれですか?(2つ選択してください。)

  • A. INSERT INTO rate_list VALUES (0.999) でエラーが発生します。
  • B. INSERT INTO rate_list VALUES (-10) を実行するとエラーが発生します。
  • C. INSERT INTO rate_list VALUES (0.551) は、値を 0.55 として挿入します。
  • D. INSERT INTO rate_list VALUES (-.9) は値を -.9 として挿入します。
  • E. INSERT INTO rate_list VALUES (87654.556) は、値を 87654.6 として挿入します。
  • F. INSERT INTO rate_list VALUES (-99.99) は、値を 99.99 として挿入します。

正解:C、F


質問 # 108
文字列Helloworldをellowozidに変換する2つのステートメントはどれですか?

  • A. SELECT LOWER(TRIM( 'H' FROM'Hello World '))FROM DUAL;
  • B. SELECT LOWER(SUBSTR( 'Hello World'、2))FROM DUAL;
  • C. SELECT SUBSTR( 'Hello world'、2)FROM DUAL;
  • D. SELECT LOWER(SUBSTR( 'Hello World、2、1))FROM DUAL;
  • E. SELECT INITCAP(TRIM( 'H' FROM'Hello World '))FROM DUAL;

正解:B、C

解説:
To convert the string "Hello World" to "ello wozid":
Option B: SELECT LOWER(SUBSTR('Hello World', 2)) FROM DUAL;
This will remove the first character and convert the rest to lowercase, but it will not change the 'rld' to 'zid'.
Option D: SELECT SUBSTR('Hello world', 2) FROM DUAL;
This will remove the first character, but the rest of the string remains unchanged and not converted to lowercase.
Options A, C, and E are incorrect because:
Option A: SUBSTR is incorrect here because it is only getting one character instead of the entire string minus the first character.
Option C: While TRIM removes the 'H', LOWER converts all characters to lowercase, but it doesn't address the 'rld' to 'zid' change.
Option E: INITCAP and TRIM will not achieve the desired conversion of 'rld' to 'zid'.


質問 # 109
次の列仕様とデータ型を持つ SALES テーブルを作成する必要があります。(最適な回答を選択してください。) SALESID: 数値 STOREID: 数値 ITEMID: 数値 QTY: 数値、値が指定されていない場合は 1 に設定する必要があります SLSDATE: 日付、値が指定されていない場合は現在の日付に設定する必要があります PAYMENT: 最大 30 文字の文字、値が指定されていない場合は CASH に設定する必要があります どのステートメントでテーブルが作成されますか?

  • A. CREATE TABLE sales(
    salesid 番号(4)、
    ストアID番号(4)、
    アイテムID番号(4)、
    数量 番号 デフォルト 1、
    slsdate DATE DEFAULT SYSDATE、
    payment VARCHAR2(30) DEFAULT 'CASH');
  • B. CREATE TABLE sales(
    salesid 番号(4)、
    ストアID番号(4)、
    アイテムID番号(4)、
    数量 番号 デフォルト 1、
    slsdate DATE DEFAULT 'SYSDATE'、
    payment VARCHAR2(30) DEFAULT CASH);
  • C. CREATE TABLE sales(
    salesid 番号(4)、
    ストアID番号(4)、
    アイテムID番号(4)、
    数量 数値 デフォルト値 = 1、
    slsdate DATE DEFAULT SYSDATE、
    payment VARCHAR2(30) DEFAULT = "CASH");
  • D. テーブル売上を作成(
    salesid 番号(4)、
    ストアID番号(4)、
    アイテムID番号(4)、
    数量 数値 デフォルト値 = 1、
    slsdate DATE DEFAULT SYSDATE、
    payment VARCHAR2(30) DEFAULT = "CASH");

正解:A


質問 # 110
未使用の列について正しいのはどれですか?

  • A. 列が未使用に設定されると、同じ名前の新しい列をテーブルに追加できます。
  • B. クエリは未使用の列からデータを返すことができますが、それらの列でDMLを使用することはできません。
  • C. DESCRIBEコマンドは未使用の列を表示します
  • D. 未使用の列は、削除されるまでデータを保持します
  • E. 主キー列を未使用に設定することはできません。
  • F. 外部キー列を未使用に設定することはできません。

正解:A、D

解説:
Unused columns are a feature in Oracle that allows a column to be marked as unused without immediately dropping it from the table structure. The key points for each option are:
A: The DESCRIBE command does not display unused columns. These columns are also not visible in user_tab_cols but are visible in user_unused_col_tabs.
B: Primary key columns can be set to unused, but you must drop the primary key constraint before doing so.
C: Once a column is marked as unused, it is not possible to query it, and Oracle will not allow DML operations on that column.
D: This is true. Once a column is set to unused, you can add a new column with the same name because Oracle essentially considers the unused column as removed from the table.
E: Just like primary key columns, a foreign key column can be marked as unused, but you must drop the foreign key constraint first.
F: This is true. Unused columns retain their data until the column is dropped using the DROP UNUSED COLUMNS command.
References:
* Oracle Database SQL Language Reference, 12c Release 1 (12.1): "ALTER TABLE"
* Oracle Database Administrator's Guide, 12c Release 1 (12.1)


質問 # 111
INVOICESテーブルのデータを調べます。

CURRENCIESテーブルのデータを調べます。
通貨コード
-------------
日本円
GPB
CAD
ユーロ
米ドル
INVOICESに存在しないCURRENCIESの通貨を返すクエリはどれですか?

  • A. SELECT * FROM通貨
    マイナス
    SELECT * FROM請求書;
  • B. SELECT * FROM通貨
    存在しない場所(
    SELECT NULLFROM請求書WHEREcurrency_ code = currency_code);
  • C. 通貨から通貨コードを選択
    交差する
    請求書からcurrency_codeを選択します。
  • D. 通貨から通貨コードを選択
    マイナス
    請求書からcurrency_codeを選択します。

正解:D

解説:
To calculate the length of employment, you would compare the current date to the HIRE_DATE and calculate the difference in years.
A). This is the correct answer. The expression calculates the number of days between the current date (SYSDATE) and the HIRE_DATE, then divides by 365 to convert it to years, and checks if it is greater than 5.
B). SYSTIMESTAMP includes a time component including fractional seconds and time zone information, making this comparison incorrect.
C). There are typos in this option (CUARENT_DATE should be CURRENT_DATE and hire_data should be hire_date). Even with the correct function and column names, CURRENT_DATE returns the current date in the session time zone, not in years.
D). There are typos in this option (SYSNAYW should be SYSDATE). Additionally, dividing by 12 incorrectly assumes that a month is equivalent to a year.
E). This is a repetition of option D with the same issues.
F). There are typos in this option (CUNACV_DATE should be CURRENT_DATE and hire_data should be hire_date). Additionally, dividing by 12 incorrectly assumes that a month is equivalent to a year.
References:
* Oracle Database SQL Language Reference, 12c Release 1 (12.1): "Date Functions"


質問 # 112

エラーが発生する 2 つのクエリはどれですか?

  • A. SELECT LAST_NAME,12 * SALARY AS ANNUAL_SALARY
    FROM EMPLOYEES
    WHERE 12 * SALARY > 100000
    ORDER BY 12 * SALARY;
  • B. SELECT LAST_NAME,12 * SALARY AS ANNUAL_SALARY
    FROM EMPLOYEES
    WHERE ANNUAL_SALARY > 100000
    ORDER BY 12 * SALARY ;
  • C. SELECT LAST_NAME,12 * SALARY AS ANNUAL_SALARY
    FROM EMPLOYEES
    WHERE ANNUAL_SALARY > 100000
    ORDER BY ANNUAL_SALARY;
  • D. SELECT FIRST_NAME,LAST_NAME FROM EMPLOYEES;
  • E. SELECT LAST_NAME,12 * SALARY AS ANNUAL_SALARY
    FROM EMPLOYEES
    WHERE 12 * SALARY > 100000
    ORDER BY ANNUAL_SALARY;
  • F. SELECT FIRST_NAME LAST_NAME FROM EMPLOYEES;

正解:B、F

解説:
In Oracle SQL, the following syntactical rules apply:
A). This query will result in an error because there is no comma separating the column names FIRST_NAME and LAST_NAME. The correct syntax should include a comma to separate the column names in the SELECT list.
B). This query is correctly formatted with a comma separating the column names, so it will not result in an error.
C). This query will result in an error because an alias defined in the SELECT list (ANNUAL_SALARY) cannot be used in the WHERE clause of the same query level. It must be repeated in the WHERE clause as 12
* SALARY.
D). This query will execute successfully because 12 * SALARY is directly used in the WHERE clause, and ANNUAL_SALARY is used in the ORDER BY clause, which is allowed.
E). This query is correct and will not result in an error. It uses 12 * SALARY in both the WHERE and ORDER BY clauses.
F). Similar to option C, this query will execute successfully because ANNUAL_SALARY is correctly used in the ORDER BY clause, and the WHERE clause does not attempt to reference the alias.
References:
* Oracle Database SQL Language Reference, 12c Release 1 (12.1): "Database Object Names and Qualifiers"


質問 # 113
......

Oracle 1z0-071日本語問題を提供していますOracle PL/SQL Developer Certified Associate問題集と完璧な解答付き:https://jp.fast2test.com/1z1-071-JPN-premium-file.html


弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

我々の働いている時間: ( GMT 0:00-15:00 )
月曜日から土曜日まで

サポート: 現在連絡 

English Deutsch 繁体中文 한국어