TAILIEUCHUNG - Oracle Unleashed- P4

Oracle Unleashed- P4: When I first started using Oracle many years ago, it was possible to know the database and the tools available. With the rash of recent releases of different options for the database and the spate of new tools, only people who wear their underpants over their trousers will be able to know everything there is to know about the Oracle products. | Nissan 2 000 Nissan 1 500 Toyota 2 500 Total 12 500 Sales Person Emily Ford 1 000 Ford 1 000 GM 2 000 GM 2 400 Nissan 2 000 Nissan 2 000 Toyota 1 000 Toyota 2 500 Toyota 2 500 Total 16 400 Sales Person Thomas Chrysler 1 500 Ford 1 000 Ford 3 000 GM 1 400 GM 1 600 GM 3 000 Nissan 2 000 Toyota 1 000 Total 16 400 Please purchase PDF Split-Merge on to remove this watermark. Listing creates a master detail SQL Plus report by utilizing the SQL UNION command. In this example there are six distinct separate types of lines to be printed the sales person line 4 a line of dashes under the sales person line 7 the detail line line 10 a line of dashes under the detail total line 14 a total line line 17 and a blank line line 21 . There are six separate queries that have their output merged and sorted together by the SQL JOIN statement see lines 6 9 13 16 19 and 23 . When you use JOIN to merge the output of two or more queries the output result set must have the same number of columns. The headings are turned off line 2 because regular SQL Plus column headings are not desired for this type of report. The first column of each query has an alias column name of DUMMY. This DUMMY column is used to sort the order of the six types of lines denoted by each of the six queries . The DUMMY column s only role is to maintain the order of the lines within the major sort field SALES_REP_NO in this example therefor the NOPRINT option is specified in line 3. Listing uses the JOIN feature to display output from two or more tables within the same report. Listing . Multitable SQL Plus report code. 1 column OBJECT_TYPE format a20 heading Object 2 column OBJECT_NAME format a8 heading Name 3 column COMMENT format a8 heading Comments 4 break on OBJECT_TYPE skip 1 5 ttitle System Summary Report 6 select Program OBJECT_TYPE program_name OBJECT_NAME 7 program_comments COMMENTS 8 from program_table 9 UNION 10 select Command Language cl_name assoc_system 11 from cl_table 12 UNION .

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.