最新 [2025年03月09日] 100%合格率を保証します素晴らしい1z0-071日本語試験問題PDF [Q108-Q129]

Share

最新 [2025年03月09日] 100%合格率を保証します素晴らしい1z0-071日本語試験問題PDF

1z0-071日本語認定有効な試験問題集解答で学習ガイド!(最新の325問題)

質問 # 108
セッションでは、NLS_ DATE_FORMATがDD-MON_RRに設定されています。
年を4桁で表示する2つのクエリはどれですか?

  • A. SELECT TO_CHAR(ADD_MONTHS(SYSDATE、6))FROM DUAL;
  • B. SELECT TO_CHAR(ADD_MONTHS(SYSDATE、6)、 'dd-mon-yyyy')FROM DUAL;
  • C. SELECT TO_DATE(TO_CHAR(SYSDATE、 'MM / DD / YYYY')、 'MM / DD / YYYY')FROM DUAL;
  • D. SELECT TO_DATE(ADD_MONTHS(SYSDATE、6)、 'dd-mon-yyyy')FROM DUAL;
  • E. SELECT TO_DATE(SYSDATE、 'RRRR-MM-DD')FROM DUAL;
  • F. SELECT TO_CHAR(SYSDATE、 'MM / DD / YYYY')FROM DUAL;

正解:C、F

解説:
A). True. The TO_CHAR function will convert SYSDATE to a string using the format 'MM/DD/YYYY', which displays the year as four digits. Then TO_DATE will convert this string back to a date without changing its appearance because the format matches.
E). True. The TO_CHAR function with the format 'MM/DD/YYYY' will display the date with the year as four digits, regardless of the NLS_DATE_FORMAT setting.
B, C, D, and F are incorrect because they either do not specify the format model needed to display the year as four digits or use TO_DATE which does not format the output but rather interprets the input.


質問 # 109
ORDER BY句のデフォルトの動作について正しい説明はどれですか。

  • A. 文字ソートでは、値は大文字と小文字が区別されます。
  • B. 小数点位置がある場合、数値は降順で表示されます。
  • C. ORDER BY句で使用できるのは、SELECTリストで指定された列のみです。
  • D. 列のエイリアスをORDER BY句で使用できます。
  • E. NULLはソート操作に含まれません。

正解:A

解説:
ORDER BY句は、文字値を使用して大文字と小文字を区別するソートを実行します。


質問 # 110
コマンドを調べて、BOOKSテーブルを作成します。
SQL>テーブルブックの作成(ブックID CHAR(6)PRIMARY KEY、
タイトルVARCHAR2(100)NOT NULL、
Publisher_id VARCHAR2(4)、
author_id VARCHAR2(50));
BOOKID値101がテーブルに存在しません。
SQLステートメントを調べます。
書籍に挿入(書籍IDのタイトル、author_idの値
(「101」、「LEARNING SQL」、「TimJones」)

  • A. 正常に実行され、行はnullPLBLISHER_IDで挿入されます。
  • B. 正常に実行されるのはNULLPUBLISHER_ID列名のみがINSERTステートメントの列リストに追加されます。
  • C. INSERTステートメントでNULLが明示的に指定されている場合にのみ、正常に実行されます。
  • D. NULL PUBLISHER ID列名が列リストに追加され、INSERTステートメントでNULLが明示的に指定されている場合にのみ、正常に実行されます。

正解:A

解説:
* A. It executes successfully and the row is inserted with a null PUBLISHER_ID: The SQL statement does not specify the publisher_id, and since there is no NOT NULL constraint on this column, Oracle will insert the row with a NULL value for publisher_id. The statement is syntactically correct, assuming the column names and values are properly specified and formatted.


質問 # 111
この部分的なクエリを調べます。
SELECT ch.channel_type、t.month、co.country_code、SUM(s.amount_sold)SALES
FROM sales s、times t、channels ch、countries co
WHERE s.time_ id = t.time id
AND s.country_ id = co。国ID
ANDs。チャネルID = ch.channel ID
AND ch.channel type IN(' Direct Sales'、' Internet')
AND t.month IN(' 2000-09'、' 2000-10')
AND co.country code IN(' GB'、' US')
この出力を調べます。

クエリが表示された結果を返すように、どのGROUP BY句を追加する必要がありますか?

  • A. GROUP BY CUBE(ch。channel_type、t .month、co。国コード);
  • B. GROUP BY ch.channel_type、ROLLUP(t month、co。country_code);
  • C. GROUP BY ch.channel_type、t.month、co.country code;
  • D. グループBYch。 channel_ type、t.month、ROLIUP(co。country_code);

正解:B


質問 # 112
展示を参照してください。

正常に実行される 2 つのクエリはどれですか?

  • A. 製品から prod_id、prod_name を選択します
    交差する
    newproducts から 100、prod_name を選択します。
  • B. 製品から k 個を選択
    マイナス
    new_products から prod_id を選択します。
  • C. 製品から prod_id、exp_date を選択します
    すべてを結合する
    new_products から prod_id、NULL を選択します。
  • D. 製品から prod_id を選択します
    すべてを結合する
    new_products から prod_id、prod_name を選択します。
  • E. SELECT * FROM 製品
    連合
    SELECT * FROM new_products;

正解:C、E


質問 # 113
CUSTOMERSテーブルを使用して、各収入レベルの各クレジット金額の50%を示すレポートを生成する必要があります。レポートには、各収入レベルで繰り返されるクレジット額を表示しないでください。
どのクエリで必要な結果が得られますか?

  • A. SELECT cust_income_level, DISTINCT cust_credit_limit * 0.50AS "50% Credit Limit"FROM customers;
  • B. SELECT DISTINCT cust_income_level || ' ' || cust_credit_limit * 0.50AS "50% Credit Limit"FROM customers;
  • C. SELECT cust_income_level || ' ' || cust_credit_limit * 0.50 AS "50% Credit Limit" FROM customers;
  • D. SELECT DISTINCT cust_income_level, DISTINCT cust_credit_limit * 0.50AS "50% Credit Limit"FROM customers;

正解:B


質問 # 114
このSQLステートメントを調べます
従業員から削除e
存在する場所
(SELECT 'ダミー'
従業員の歴史から
WHERE employee_ id = e。従業員ID);
どちらが正しいですか?

  • A. サブクエリはDELETEステートメントが実行される前に実行されます。
  • B. サブクエリが複数の行を選択した場合でも、DELETEステートメントは正常に実行されます。
  • C. サブクエリはEMPLOYEESテーブルのすべての行に対して実行されます。
  • D. サブクエリは相関サブクエリではありません。
  • E. EMPLOYEESテーブルの既存の行がすべて削除されます。

正解:A、B

解説:
For the provided DELETE statement with an EXISTS clause:
* Option B: The subquery is executed before the DELETE statement is executed.
* Subqueries with EXISTS are typically executed before the outer DELETE statement to determine which rows of the outer query satisfy the condition.
* Option D: The DELETE statement executes successfully even if the subquery selects multiple rows.
* The EXISTS condition is used to check for the existence of rows returned by the subquery, regardless of how many rows there are. It returns TRUE if the subquery returns at least one row.
Options A, C, and E are incorrect because:
* Option A: This statement is incorrect; the subquery is indeed a correlated subquery because it references the employee_id from the outer query (employees).
* Option C: This is incorrect because not all existing rows in the EMPLOYEES table will be deleted, only those for which an associated record exists in the emp_history table.
* Option E: While technically the subquery may be evaluated multiple times, it is only executed for those rows in EMPLOYEES that satisfy the condition of the EXISTS clause.


質問 # 115
どの2つのクエリが正常に実行されますか?

  • A. SELECT INTERVAL '1' DAY - SYSDATE FROM DUAL;
  • B. SELECT INTERVAL '1' DAY - INTERVAL '1' MINUTE FROM DUAL;
  • C. select INTERVAL '1' DAY +INTERVAL '1' MONTH FROM DUAL;
  • D. SELECT SYSDATE "INTERRVAL '1' DAY FROM DUAL;
  • E. SELECT SYSTIMESTAMP + INTERVAL '1' DAY FROM DUAL;

正解:B、E

解説:
A: This statement will not execute successfully because you cannot subtract a DAY interval from a DATE directly. SYSDATE needs to be cast to a TIMESTAMP first.
B: This statement is correct. It adds an interval of '1' DAY to the current TIMESTAMP.
C: This statement is correct. It subtracts an interval of '1' MINUTE from '1' DAY.
D: This statement will not execute successfully. In Oracle, you cannot add intervals of different date fields (DAY and MONTH) directly.
E: This statement has a syntax error with the quotes around INTERVAL and a misspelling, it should be 'INTERVAL'.
Oracle Database 12c SQL supports interval arithmetic as described in the SQL Language Reference documentation.


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

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

正解:C、E


質問 # 117
このクエリとその出力を調べます。

不完全なWHERE句を使用してこのクエリを調べます。

WHERE句で使用できる演算子について正しいのはどれですか。

  • A. <> anyを使用すると、すべての製品名が表示されます。
  • B. <> anyを使用すると、Forkという名前の製品を除くすべての製品名が表示されます。
  • C. not inまたは<> allを使用しても同じ結果になります。
  • D. not inまたは<> anyを使用しても同じ結果になります。
  • E. inを使用すると、すべての製品名が表示されます。

正解:B、C


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

各従業員の年間報酬総額を計算するステートメントはどれですか?

  • A. SELECT last_ name(monthly_ salary + Monthly_ Commission _ pct)* 12 AS Annual_
    従業員から;
  • B. SELECT last_ name、monthly_ salary * 12)+(monthly_ salary * 12 * Monthly Commission _Pct)AS
    Annual_ comp
    従業員から;
  • C. SELECTの名前、
    (月給* 12)+(monthly_commission_pct * 12)AS
    年次報酬
    従業員から
    ;
  • D. SELECT姓、(monthly_ salary * 12)+(monthly_ salary * 12 * NVL
    (月額手数料pct、0))年次として_ comp
    従業員から;

正解:D


質問 # 119
UNION ALL演算子に関して正しい2つのステートメントはどれですか?

  • A. 重複チェック中にNULLSは無視されません。
  • B. 各SELECTステートメントで選択される列の名前は同一である必要があります。
  • C. 各SELECTステートメントで選択される列の数は同じである必要があります
  • D. UNIONALL演算子によって重複が自動的に削除されます
  • E. 出力はUNIONALL演算子によってソートされます。

正解:A、C


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

SALES2は、SALES1と同じ説明のテーブルです。
一部の販売データは両方のテーブルで重複しています。
SALIES2テーブルに存在しないSALES1テーブルの行を表示したいとします。
どの集合演算子が必要な出力を生成しますか?

  • A. 交差
  • B. UNION
  • C. UNION ALL
  • D. 減算
  • E. マイナス

正解:E


質問 # 121
成功する次のコマンドを発行します。
SQL> DROP TABLE製品。
どれが正しいですか? (3つ選択してください。)

  • A. テーブルを参照するすべての既存のビューとシノニムは無効になりますが保持されます。
  • B. テーブルデータとテーブル構造が削除されます。
  • C. テーブルデータは削除されますが、テーブル構造は保持されます。
  • D. セッション内のコミットされていないトランザクションはすべてコミットされます。
  • E. テーブルのすべてのインデックスが存在する場合、それらは無効になりますが保持されます。

正解:B、D、E


質問 # 122
INVISIBLEインデックスに関する2つの説明のうち正しいものはどれですか。

  • A. クエリoptimIzerは、実行プランを決定するときにINVISIBLEインデックスを考慮しません。
  • B. ALTER INDEXを使用して、INVISIBLEインデックスを表示します
  • C. INVISIBLEインデックスはストレージを消費しません
  • D. 同じ列リストに作成できるINVISIBLEインデックスは1つだけです
  • E. すべてのINSERT、UPDATE、およびDELETEステートメントはインデックスのエントリを維持します

正解:B、E

解説:
INVISIBLE indexes are a feature in Oracle Database 12c and later versions that allow an index to be maintained but not used by the optimizer unless explicitly hinted.
A). False. An INVISIBLE index still consumes storage space as it is maintained in the background.
B). False. There is no such restriction. You can create multiple INVISIBLE indexes on the same column list.
C). False. The optimizer can consider INVISIBLE indexes if they are hinted at in the query.
D). True. You can alter the visibility of an index using the ALTER INDEX command to make an INVISIBLE index VISIBLE.
E). True. Even though they are invisible to the optimizer by default, all DML operations such as INSERT, UPDATE, and DELETE continue to maintain the index as they would with a VISIBLE index.


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

BRICKSテーブルのデータを調べます。

COLORSからすべての行を返す2つのクエリはどれですか?

  • A. CASEもDECODEも関数ではありません。
  • B. CASEとDECODEはどちらも関数です。
  • C. CASEを使用して評価されたすべての条件は、DECODEを使用して評価することもできます。
  • D. CASEは関数であり、DECODEは関数ではありません。
  • E. DECODEは関数であり、CASEは関数ではありません。
  • F. DECODEを使用して評価されたAIl条件は、CASEを使用して評価することもできます。

正解:C、E


質問 # 124
EMPLOYEESテーブルには、データ型NUMBERの列EMP_IDおよびデータ型DATEのHIRE_DATEが含まれています。
採用から6か月が経過した後の最初の月曜日の日付を表示します。
セッションでNLS_TERRITORYパラメータがAMERICAに設定されているため、日曜日が週の最初の日です。
どのクエリを使用できますか?

  • A. 従業員のSELECT emp_id、NEXT_DAY(ADD_MONTHS(hire_date、6)、 'MONDAY')FROM;
  • B. SELECT emp_id、ADD_MONTHS(hire_date、6)、NEXT_DAY( 'MONDAY')FROM employees;
  • C. SELECT emp_id、NEXT_DAY(ADD_MONTHS(hire_date、6)、1)FROM従業員;
  • D. SELECT emp_id、NEXT_DAY(MONTHS_BETWEEN(hire_date、SYSDATE)、6)FROM従業員;

正解:A


質問 # 125
実体関連について正しい2つのステートメントはどれですか?

  • A. 多対多の関係は、外部キーを使用することによってのみ実装できます
  • B. 自己参照関係のあるテーブルからデータを選択する場合、テーブル名を1回だけ指定できます
  • C. 関係は両方のエンティティに必須にすることができます
  • D. 1対1の関係は常に自己参照関係です
  • E. 一方向の1対多の関係は、他の方向の1対1の関係です

正解:A、C


質問 # 126
特権と役割について正しいのはどれですか?

  • A. システムprilgeseは、常にデータベース全体にprilgeを設定します。
  • B. ロールには、複数の特権とロールの組み合わせを含めることができます。
  • C. ロールは、それを作成したユーザーが所有します。
  • D. デフォルトでは、ユーザーはスキーマ内のすべてのオブジェクトに対するすべてのオブジェクト権限を持っています。
  • E. PUBIICはユーザーから取り消すことができます。
  • F. すべてのロールはsYsスキーマによって所有されます。
  • G. PUBLICは、データベース内のすべてのユーザーに付与されるデフォルトの役割として機能します。

正解:B、D、G

解説:
In Oracle Database 12c, the following are true about privileges and roles:
* Option B: PUBLIC acts as a default role granted to every user in a database.
* The PUBLIC role is a special role that is automatically granted to all users. It can be used to provide privileges to every user.
* Option C: A user has all object privileges for every object in their schema by default.
* By default, a user has all privileges on the objects they own, i.e., the objects in their schema.
* Option D: A role can contain a combination of several privileges and roles.
* Roles are designed to group together privileges and other roles, making it easier to manage and assign security settings to users.
Options A, E, F, and G are incorrect because:
* Option A: System privileges can be set for specific schemas or objects, not always for the entire database.
* Option E: Roles are not "owned" by users in the traditional sense of ownership; they are managed by the database and can be granted to any user.
* Option F: Not all roles are owned by the SYS schema; roles are a database security concept and do not have an "owner".
* Option G: The PUBLIC role is not something that can be revoked from a user; it is a default role that exists for all users.


質問 # 127
非等結合に関して正しい2つのステートメントはどれですか?

  • A. Oracle結合構文を使用できます。
  • B. テーブルエイリアスを使用する必要があります。
  • C. USING句を使用できます。
  • D. SQL:1999準拠のANSI結合構文を使用する必要があります。
  • E. ON句を使用できます。

正解:A、E

解説:
Non-equi joins are joins where the join condition is based on something other than equality. In Oracle SQL, you can perform non-equi joins using various clauses:
A . The ON clause can be used: True, the ON clause can specify any condition for the join, including non-equijoins. It is not limited to equijoins.
E . The Oracle join syntax can be used: The traditional Oracle join syntax, which uses the WHERE clause to specify the join condition, can be used for all types of joins, including non-equijoins.
Reference:
Oracle Database SQL Language Reference 12c, especially the sections on join clauses including the ON clause and Oracle's proprietary join syntax.


質問 # 128
テーブルの列のサブセットに制限できる3つの特権はどれですか?

  • A. 更新
  • B. 挿入
  • C. インデックス
  • D. 参考文献
  • E. ALTER
  • F. 削除
  • G. SELECT

正解:A、B、D

解説:
B: True. The REFERENCES privilege can be granted on specific columns within a table. This is necessary when a user needs to define foreign key constraints that reference those particular columns.
C: True. The UPDATE privilege can be granted on specific columns, allowing users to update only designated columns within a table. This is useful for restricting write access to sensitive or critical data within a table.
F: True. The INSERT privilege can also be granted on specific columns, meaning a user can be permitted to insert data into only certain columns of a table. This helps in maintaining data integrity and controlling access to data fields based on user roles.


質問 # 129
......

1z0-071日本語時間限定!無料アクセス:https://www.goshiken.com/Oracle/1z1-071-JPN-mondaishu.html