1z0-071日本語試験正確な問題集、学習ノートと理論 [2025年02月]
100%高得点合格保証1z0-071日本語無制限325解答
質問 # 131
オブジェクト権限で実行できる2つのアクションはどれですか?
- A. 別のスキーマでプロシージャまたは関数を実行します。
- B. sys以外のスキーマのテーブルから行を削除します。
- C. 役割を作成します。
- D. 他のスキーマのテーブルを参照するFOREIGNKEY制約を作成します。
- E. ユーザーのデフォルトおよび一時テーブルスペースを設定します。
正解:A、B
解説:
Regarding object privileges in an Oracle database:
* B. Delete rows from tables in any schema except sys: Object privileges include DELETE on tables, which can be granted by the owner of the table or a user with adequate privileges, excluding system schemas like SYS due to their critical role.
* E. Execute a procedure or function in another schema: EXECUTE is a specific object privilege that can be granted on procedures and functions, allowing users to run these objects in schemas other than their own.
Incorrect options:
* A: Creation of roles is related to system privileges, not object privileges.
* C: Setting default and temporary tablespaces for a user involves system-level operations, not object-level privileges.
* D: Creation of foreign key constraints involves referencing rights, which, while related, are not directly granted through object privileges but need appropriate REFERENCES permission.
質問 # 132
展示を表示して、EMPLOYEESテーブルの構造を調べます。
MANAGER_IDが管理する100人の従業員とそのマネージャーを選択するとします。
2つの列に出力が必要です。最初の列には従業員のマネージャーのLAST_NAMEが含まれ、2番目の列には従業員のLAST_NAMEが含まれる必要があります。
どのSQLステートメントを実行しますか?
- A. SELECT m.last_name "Manager"、e.last_name "Employee" FROM従業員m JOIN従業員eON e.employee_id = m.manager_idWHERE m.manager_id = 100;
- B. SELECT m.last_name "Manager"、e.last_name "Employee" FROM従業員m JOIN従業員eON m.employee_id = e.manager_idWHERE m.manager_id = 100;
- C. SELECT m.last_name "Manager"、e.last_name "Employee" FROM従業員m JOIN従業員eWHERE m.employee_id = e.manager_id AND e.manager_id = 100
- D. SELECT m.last_name "Manager"、e.last_name "Employee" FROM従業員m JOIN従業員eON m.employee_id = e.manager_idWHERE e.manager_id = 100;
正解:D
質問 # 133
テーブル、ビュー、およびシーケンスに対するオブジェクト特権の付与について正しい2つはどれですか。
- A. SELECTは、テーブル、ビュー、およびシーケンスに付与できます。
- B. ALTERはテーブルとシーケンスにのみ付与できます。
- C. REFERENCESはテーブルでのみ付与できます。
- D. DELETEは、テーブル、ビュー、およびシーケンスに付与できます。
- E. INSERTは、テーブルとシーケンスにのみ付与できます。
正解:A、C
解説:
Object privileges applicable to tables, views, and sequences in Oracle are:
B . REFERENCES can be granted only on tables. It allows the grantee to create a foreign key that refers to the table.
D . SELECT can be granted on tables and views. This allows the grantee to perform a SELECT on the table or view.
A, C, and E are incorrect. Specifically:
A is incorrect because DELETE cannot be granted on sequences; it is a privilege applicable to tables and views.
C is incorrect because INSERT cannot be granted on sequences; INSERT is applicable only to tables and views.
E is incorrect because ALTER is a privilege applicable to tables and indexes, not sequences.
Reference:
Oracle Database SQL Language Reference, 12c Release 1 (12.1): "GRANT"
質問 # 134
どの2つのクエリが正常に実行されますか?
- A. SELKCT COALESCE (100, 'A') FROM DUAL;
- B. SELECT NULLIF(NULL, 100) FROM DUAL;
- C. SELECT NULLIF (100, 'A') FROM DUAL;
- D. SELECT COALESCE(100, NULL, 200) FROM DUAL;
- E. SELECT NULLIF (100) FROM DUAL;
正解:D、E
質問 # 135
実体関連図(ERD)に基づいて2つのテーブルから関連する行を選択することについて正しい2つのステートメントはどれですか?
- A. テーブルのデータと同じテーブルのデータの関連付けは、自己結合を使用して実装されます。
- B. 内部結合は、同じテーブル内の行を関連付けます。
- C. 無関係なテーブルの行は結合できません。
- D. 2つのテーブル間のすべての関係は、結合条件で実装する必要があります。
- E. 2つのテーブル間の関係を実装するには、追加のテーブルを結合する必要がある場合があります。
正解:A、E
質問 # 136
Oracle Databaseのビューについて正しい3つのステートメントはどれですか?
- A. ビューにはオブジェクト番号がありません。
- B. ビューにはセグメントがありません。
- C. 定義クエリにWHERE句を含むビューをクエリする場合、SELECTステートメントにWHERE句を含めることはできません。
- D. 定義するクエリで存在しないテーブルを参照するビューを作成できます。
- E. ビューは、同じスキーマに属している場合にのみテーブルを結合できます。
- F. ビューを使用してテーブルに挿入された行は、ビューが削除されてもテーブルに保持されます。
正解:A、D、E
質問 # 137
PROMOTIONSテーブルでは、PROMO_BEGTN_DATE列のデータ型はDATEであり、デフォルトの日付形式はDD-MON-RRです。
クエリに含まれるPROMO_BEGIN_DATEを使用する式について正しい2つのステートメントはどれですか?
- A. PROMO_BEGIN_DATE-5は日付を返します。
- B. TO_NUMBER(PROMO_BEGIN_DATE)-5は数値を返します
- C. PROMO_BEGIN_DATE-SYSDATEはエラーを返します。
- D. PROMO_BEGIN_DATE-SYSDATEは数値を返します。
- E. TO_DATE(PROMO_BEGIN_DATE * 5)は日付を返します
正解:A、D
解説:
A . This statement is incorrect because TO_NUMBER expects a character string as an argument, not a date. Directly converting a date to a number without an intermediate conversion to a character string would result in an error. B. This statement is incorrect. Multiplying a date by a number does not make sense in SQL, and attempting to convert such an expression to a date will also result in an error. C. This statement is correct. Subtracting two dates in Oracle SQL results in the number of days between those dates, hence the result is a number. D. This statement is correct. Subtracting a number from a date in Oracle SQL will subtract that number of days from the date, returning another date. E. This statement is incorrect. As stated in C, subtracting a date from SYSDATE correctly returns the number of days between those two dates, not an error.
These concepts are explained in the Oracle Database SQL Language Reference, which details date arithmetic in SQL.
質問 # 138
CUSTOMERS テーブルには、データ型数値の CUST_CREDT_LIMIT 列があります。
正常に実行される 2 つのクエリはどれですか?
- A. SELECT NVL(cust_credit_limit * .15,'Not Available') FROM customers;
- B. SELECT NVL2(cust_credit_limit * .15,'Not Available') FROM customers;
- C. SLECT NVL(TO_CHAR(cust_credit_limit * .15),'Not available') from customers;
- D. SELECT NVL2(cust_credit_limit,TO_CHAR(cust_credit_limit * .15),'NOT Available') FROM customers;
- E. SELECT TO_CHAR(NVL(cust_credit_limit * .15,'Not Available')) FROM customers;
正解:D、E
解説:
A). True - The TO_CHAR function is used correctly here to convert the numeric value to a string, and NVL handles the case where cust_credit_limit might be NULL. The expression inside NVL computes 15% of the credit limit or displays 'Not Available' if the credit limit is NULL. The syntax is correct.
B). False - The NVL2 function requires three parameters: the expression to check for NULL, the value to return if it's not NULL, and the value to return if it is NULL. The given usage lacks the required parameters and syntax.
C). False - The NVL function expects both parameters to be of the same data type. Since the second parameter
'Not Available' is a string, it causes a data type conflict with the numerical result of the first parameter.
D). False - The keyword SELECT is misspelled as SLECT, making the syntax incorrect.
E). True - This query uses NVL2 correctly by checking if cust_credit_limit is not NULL, then applying TO_CHAR to compute 15% of it and converting it to string, or returning 'NOT Available' if it is NULL. The syntax and function usage are correct.
質問 # 139
SALES1テーブルの説明を調べます。
SALES2は、SALES1と同じ説明を持つテーブルです。
一部の売上データは両方のテーブルで重複しています。
SALES2テーブルに存在しないSALES1テーブルの行を表示するとします。
どのセット演算子が必要な出力を生成しますか?
- A. UNION ALL
- B. 交差
- C. UNION
- D. マイナス
- E. SUBTRACT
正解:D
質問 # 140
次のコマンドを使用してテーブルを作成します。
CREATE TABLE rate_list(rate NUMBER(6,2));
ステートメントの実行について正しいのはどれですか?
- A. INSERT INTO rate_list VALUES(-10)はエラーを生成します。
- B. INSERT INTO rate_list VALUES(0.999)はエラーを生成します。
- C. INSERT INTO rate_list VALUES(-99.99)は、値を99.99として挿入します。
- D. INSERT INTO rate_list VALUES(-。9)は、値を-.9として挿入します。
- E. INSERT INTO rate_list VALUES(0.551)は、値を.55として挿入します。
- F. INSERT INTO rate_list VALUES(87654。556)は、値を87654.6として挿入します。
正解:D、E
解説:
The behavior of data insertion into a table with a specific numeric format in Oracle Database 12c can be explained as follows:
* A. INSERT INTO rate_list VALUES (-.9) inserts the value as -.9: This is correct. The value -.9 is within the precision defined by the table column (NUMBER(6,2)), where 6 is the total number of digits (including both sides of the decimal point), and 2 is the number of digits after the decimal point.
* E. INSERT INTO rate_list VALUES (0.551) inserts the value as .55: Oracle rounds the number to the nearest value that fits the specified scale of 2. Thus, 0.551 rounds down to 0.55.
References:
* Oracle Database SQL Language Reference 12c, particularly sections on data types and numeric precision.
質問 # 141
CUSTOMERSテーブルのCUSTNAME列のデータを調べます。
CUST_NAME
------------------------------
Renske Ladwig
ジェイソン・マリン
サミュエルマケイン
アランMCEwen
アイリーン・ミッキリネーニ
ジュリア・ネイヤー
姓がMcまたはMCで始まるCUST_NAME値を表示する必要があります。必要な結果を与える2つのWHERE句はどれですか?
- A. WHERE SUBSTR(cust_name、INSTR(cust_name、 '')+ 1)LIKE'Mc% 'OR'MC%'
- B. WHERE INITCAP(SUBSTR(cust_name、INSTR(cust_name、 '')+ 1))IN( 'MC%'、 'Mc%)
- C. WHERE UPPER(SUBSTR(cust_name、INSTR(cust_name、 '')+ 1))LIKE UPPER( 'MC%')
- D. WHERE INITCAP(SUBSTR(cust_name、INSTR(cust_name、 '')+ 1))LIKE'Mc% '
- E. WHERE SUBSTR(cust_name、INSTR(cust_name、 '')+ 1)LIKE'Mc% '
正解:C、D
解説:
To find customers whose last names start with "Mc" or "MC", we need to ensure our SQL query correctly identifies and compares these prefixes regardless of case variations. Let's analyze the given options:
* Option B: WHERE UPPER(SUBSTR(cust_name, INSTR(cust_name, ' ') + 1)) LIKE UPPER(' MC%')This clause uses UPPER to convert both the extracted substring (starting just after the first space, assuming it indicates the start of the last name) and the comparison string 'MC%' to uppercase.
This ensures case-insensitive comparison. The LIKE operator is used to match any last names starting with "MC", which will correctly capture both "Mc" and "MC". This option is correct.
* Option C: WHERE INITCAP(SUBSTR(cust_name, INSTR(cust_name, ' ') + 1)) LIKE 'Mc%' This clause applies INITCAP to the substring, which capitalizes the first letter of each word and makes other letters lowercase. The result is compared to 'Mc%', assuming only the last name follows the space.
This approach will match last names starting with "Mc" (like "McEwen"), but not "MC". However, considering we're looking for "Mc" specifically, this clause works under the assumption that "Mc" is treated as proper capitalization for these last names. Thus, it can also be considered correct, albeit less inclusive than option B.
The other options either use incorrect syntax or apply case-sensitive matches without ensuring that both "Mc" and "MC" are captured:
* Option A: Contains syntax errors (unmatched quotes and wrong use of IN).
* Option D: Uses case-sensitive match without combining both "Mc" and "MC".
* Option E: Only matches "Mc", which is too specific.
質問 # 142
EMPLOYEESテーブルの説明を調べます。
どのクエリが有効ですか?
- A. SELECT dept_id、join date、SUM(salary)FROM employees GROUP BY dept_id、join_date;
- B. SELECT dept_id、join_date、SUM(salary)FROM employees GROUP BY dept_id;
- C. SELECT dept_id、MAX(AVG(salary))FROM employees GROUP BY dept_id;
- D. SELECT dept_id、AVG(NAX(salary))FROMemployees GROUP BY dept_id;
正解:A
解説:
When using the GROUP BY clause, every column in the SELECT clause that is not an aggregate function must be included in the GROUP BY clause:
A . SELECT dept_id, join_date, SUM(salary) FROM employees GROUP BY dept_id, join_date: This is a valid query because all non-aggregate columns in the SELECT list (dept_id and join_date) are included in the GROUP BY clause.
Queries B and C are invalid because they attempt to nest aggregate functions, which is not allowed. Query D is invalid because join_date is not included in the GROUP BY clause.
Reference:
Oracle Database SQL Language Reference 12c, specifically the section on GROUP BY clause constraints.
質問 # 143
このステートメントを調べます。
インデックスが自動的に作成されるのは、テーブルのどの2列ですか。
- A. ORDER_TOTAL
- B. PRODUCT_ID
- C. ステータス
- D. ORDER_ID
- E. ORDER_DATE
- F. SERIAL_NO
正解:D、F
質問 # 144
どの3つのステートメントが正常に実行されますか?
A)
B)
C)
D)
E)
F)
G)
- A. オプションB
- B. オプションG
- C. オプションE
- D. オプションF
- E. オプションA
- F. オプションC
- G. オプションD
正解:B、E、F
質問 # 145
INVOICEテーブルにはデータ型NUMBERのQTY_SOLD列があり、データ型DATENLS_DATE_FORMATのINVOICE_DATE列はDD-MON-RRに設定されています。
クエリ式にこれらの列が含まれるデータ型変換について正しいのはどれですか?
- A. qty_sold = '05549821':明示的な変換が必要
- B. CONCAT(qty_sold、invoice_date):明示的な変換が必要
- C. 「101」と「110」の間のqty_sold:暗黙の変換を使用
- D. invoice_date = '15 -march-2019 ':暗黙的な変換を使用
- E. invoice_date> '01 -02-2019 ':暗黙の変換を使用
正解:D、E
解説:
The statements regarding data type conversions and the treatment of literals in SQL expressions involve understanding implicit and explicit data conversions in Oracle SQL.
Statement A is true as invoice_date > '01-02-2019' involves an implicit conversion of the string literal to a date type, based on the NLS_DATE_FORMAT setting, assuming the format matches.
Statement E is true because, similarly to A, invoice_date = '15-march-2019' involves an implicit conversion where the string is automatically converted to a date type according to the Oracle NLS_DATE_FORMAT or an assumed default date format.
Statements B, C, and D involve incorrect or misleading information:
B (qty_sold = '05549821') is misleading and potentially incorrect as leading zeros in a numeric context do not typically require explicit conversion but the presence of spaces might suggest a need for trimming rather than numeric conversion.
C (CONCAT(qty_sold, invoice_date)) would indeed require explicit conversion because CONCAT expects string types, and thus numerical and date values must be explicitly converted to strings before concatenation.
D (qty_sold BETWEEN '101' AND '110') uses implicit conversion where the string literals '101' and '110' are implicitly converted to numbers if qty_sold is a numeric type.
質問 # 146
データディクショナリについて正しいのはどれですか?
- A. すべてのユーザーアクションはデータディクショナリに記録されます。
- B. データベースオブジェクト、権限、およびデータへの変更を反映するために、データディクショナリは常に更新されます。
- C. すべてのユーザーには、デフォルトでデータディクショナリ内のすべての情報にアクセスする権限があります
- D. SYSユーザーは、データディクショナリ内のすべてのベーステーブルとユーザーがアクセスできるビューを所有します。
- E. データディクショナリのベーステーブルには、接頭辞DBA_が付いています。
正解:B、D
解説:
C). True, the data dictionary is constantly updated to reflect changes to the metadata of the database objects, permissions, and structures, among other things.E. True, the SYS user owns all base tables in the data dictionary. These base tables underlie all data dictionary views that are accessible by the users.
A, B, and D are not correct because: A. Base tables do not necessarily have the prefix DBA_; instead, DBA_ is a prefix for administrative views that are accessible to users with DBA privileges. B. The data dictionary records metadata about the actions, not the actions themselves. D. Not all users have access to all information in the data dictionary. Access is controlled by privileges.
References:
* Oracle documentation on data dictionary and dynamic performance views: Oracle Database Reference
* Understanding the Oracle data dictionary: Oracle Database Concepts
質問 # 147
PRODUCT_INFORMATIONテーブルの説明を調べます。
- A. SELECT count(nvl(list_price、0))FROM product_information WHERE list_price is null;
- B. SELECT COUNT(DISTINCT list_price)FROM product_information WHERE list_price isnull。
- C. SELECT(COUNT(list_price)FROM Product_intormation WHERE list_price = NULL;
- D. BELECT COUNT(list_price)FROM product_information where list_price is NULL;
正解:A
質問 # 148
......
1z0-071日本語問題集PDF、1z0-071日本語最速合格したいなら:https://jp.fast2test.com/1z0-071-JPN-premium-file.html