TAILIEUCHUNG - OCA: Oracle Database 11g Administrator Certified Associate- P8

Tham khảo tài liệu 'oca: oracle database 11g administrator certified associate- p8', công nghệ thông tin, cơ sở dữ liệu phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Review Questions 281 13. The following table describes the DEPARTMENTS table Column Name dept_id dept_name mgr_id location_id Key Type pk Nulls Unique NN FK Table Datatype NUMBER VARCHAR2 NUMBER NUMBER Length 4 30 6 4 Default Value None None None 99 Which of the following INSERT statements will raise an exception A. INSERT INTO departments dept_id dept_name location_id VALUES 280 Security 1700 B. INSERT INTO departments VALUES 280 Security 1700 C. INSERT INTO departments VALUES 280 Corporate Giving 266 1700 D. None of these statements will raise an exception. 14. Refer to the DEPARTMENTS table structure in question 13. Two SQL statements are shown here. Choose the best option that describes the SQL statements. INTO departments dept_id dept_name mgr_id VALUES 280 Security 1700 INTO departments dept_id dept_name mgr_id location_id VALUES 280 Security 1700 NULL A. Statements 1 and 2 insert the same values to all columns in the table. B. Statements 1 and 2 insert different values to at least one column in the table. C. The location_id column must be included in the column list of statement 1. D. A NULL value cannot be inserted explicitly in statement 2. 282 Review Questions 15. The SALES table contains the following data SELECT channel_id COUNT FROM sales GROUP BY channel_id C COUNT T 12000 I 24000 How many rows will be inserted into the NEW_CHANNEL_SALES table with the following SQL statement INSERT FIRST WHEN channel_id C THEN INTO catalog_sales prod_id time_id promo_id amount_sold VALUES prod_id time_id promo_id amount_sold WHEN channel_id I THEN INTO internet_sales prod_id time_id promo_id amount_sold VALUES prod_id time_id promo_id amount_sold WHEN channel_id IN I T THEN INTO new_channel_sales prod_id time_id promo_id amount_sold VALUES prod_id time_id promo_id amount_sold SELECT channel_id prod_id time_id promo_id amount_sold FROM sales A. 0 B. 12 000 C. 24 000 D. 36 000 16. How many rows will be counted in the last SQL statement that follows .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.