1Z1-051試験無料問題集「Oracle Database: SQL Fundamentals I 認定」

View the Exhibit and examine the data in the PROMO_CATEGORY and PROMO_COST columns of the PROMOTIONS table.
Evaluate the following two queries:
SQL>SELECT DISTINCT promo_category to_char(promo_cost)"code"
FROM promotions
ORDER BY code;
SQL>SELECT DISTINCT promo_category promo_cost "code"
FROM promotions
ORDER BY 1;
Which statement is true regarding the execution of the above queries?

解説: (GoShiken メンバーにのみ表示されます)
You own a table called EMPLOYEES with this table structure:
EMPLOYEE_ID NUMBER Primary Key
FIRST_NAME VARCHAR2(25)
LAST_NAME VARCHAR2(25)
HIRE_DATE DATE
What happens when you execute this DELETE statement?
DELETE employees;

解説: (GoShiken メンバーにのみ表示されます)
The PRODUCTS table has these columns:
PRODUCT_ID NUMBER(4)
PRODUCT_NAME VARCHAR2(45)
PRICE NUMBER(8,2)
Evaluate this SQL statement:
SELECT *
FROM PRODUCTS
ORDER BY price, product_name;
What is true about the SQL statement?

解説: (GoShiken メンバーにのみ表示されます)
The EMPLOYEES table contains these columns:
EMPLOYEE_ID NUMBER(4)
LAST_NAME VARCHAR2 (25)
JOB_ID VARCHAR2(10)
You want to search for strings that contain 'SA_' in the JOB_ID column. Which SQL statement do you use?

解説: (GoShiken メンバーにのみ表示されます)
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?

Which statement is true regarding the UNION operator?

解説: (GoShiken メンバーにのみ表示されます)
Examine the statement:
Create synonym emp for hr.employees;
What happens when you issue the statement?

The DBA issues this SQL command:
CREATE USER scott IDENTIFIED by tiger; What privileges does the user Scott have at this point?

解説: (GoShiken メンバーにのみ表示されます)
Examine this statement:
SELECT student_id, gpa FROM student_grades WHERE gpa > &&value;
You run the statement once, and when prompted you enter a value of 2.0. A report is produced.
What happens when you run the statement a second time?

解説: (GoShiken メンバーにのみ表示されます)
Which statement correctly describes SQL and /SQL*Plus?

The PRODUCTS table has the following structure:

Evaluate the following two SQL statements:

Which statement is true regarding the outcome?

解説: (GoShiken メンバーにのみ表示されます)
The following data exists in the PRODUCTS table:
PROD_ID PROD_LIST_PRICE
123456 152525.99
You issue the following query:
SQL> SELECT RPAD(( ROUND(prod_list_price)), 10,'*')
FROM products
WHERE prod_id = 123456; What would be the outcome?

解説: (GoShiken メンバーにのみ表示されます)
View the Exhibit and examine the data in the PROMO_NAME and PROMO_END_DATE columns of the PROMOTIONS table, and the required output format.

Which two queries give the correct result? (Choose two.)

Which SQL statement returns a numeric value?

解説: (GoShiken メンバーにのみ表示されます)
You need to display the date 11-Oct-2007 in words as 'Eleventh of October, Two Thousand Seven'. Which SQL statement would give the required result?

解説: (GoShiken メンバーにのみ表示されます)
What are two reasons to create synonyms? (Choose two.)

解説: (GoShiken メンバーにのみ表示されます)
You work as a database administrator at ABC.com. You study the exhibit carefully and examine the structure of CUSTOMRS AND SALES tables.

Evaluate the following SQL statement:
Exhibit:

Which statement is true regarding the execution of the above UPDATE statement?

Where can sub queries be used? (Choose all that apply)

正解:A,B,E,F 解答を投票する
解説: (GoShiken メンバーにのみ表示されます)