Appendix APractices and SolutionsOracle Database 11g: SQL Fundamentals dịch - Appendix APractices and SolutionsOracle Database 11g: SQL Fundamentals Việt làm thế nào để nói

Appendix APractices and SolutionsOr

Appendix A
Practices and Solutions
Oracle Database 11g: SQL Fundamentals I A - 2
Table of Contents
Practices for Lesson I................................................................................................................ 3
Practice I-1: Introduction ................................................................................................ 4
Practice Solutions I-1: Introduction ................................................................................ 5
Practices for Lesson 1 ............................................................................................................. 11
Practice 1-1: Retrieving Data Using the SQL SELECT Statement .............................. 12
Practice Solutions 1-1: Retrieving Data Using the SQL SELECT Statement .............. 16
Practices for Lesson 2 ............................................................................................................. 19
Practice 2-1: Restricting and Sorting Data.................................................................... 20
Practice Solutions 2-1: Restricting and Sorting Data ................................................... 24
Practices for Lesson 3 ............................................................................................................. 27
Practice 3-1: Using Single-Row Functions to Customize Output ................................ 28
Practice Solutions 3-1: Using Single-Row Functions to Customize Output ................ 32
Practices for Lesson 4 ............................................................................................................. 35
Practice 4-1: Using Conversion Functions and Conditional Expressions .................... 36
Practice Solutions 4-1: Using Conversion Functions and Conditional Expressions .... 39
Practices for Lesson 5 ............................................................................................................. 41
Practice 5-1: Reporting Aggregated Data Using the Group Functions......................... 42
Practice Solutions 5-1: Reporting Aggregated Data Using the Group Functions ........ 45
Practices for Lesson 6 ............................................................................................................. 48
Practice 6-1: Displaying Data from Multiple Tables Using Joins ................................ 49
Practice Solutions 6-1: Displaying Data from Multiple Tables Using Joins ................ 52
Practices for Lesson 7 ............................................................................................................. 54
Practice 7-1: Using Subqueries to Solve Queries ......................................................... 55
Practice Solutions 7-1: Using Subqueries to Solve Queries ......................................... 57
Practices for Lesson 8 ............................................................................................................. 59
Practice 8-1: Using the Set Operators........................................................................... 60
Practice Solutions 8-1: Using the Set Operators........................................................... 62
Practices for Lesson 9 ............................................................................................................. 64
Practice 9-1: Manipulating Data ................................................................................... 65
Practice Solutions 9-1: Manipulating Data ................................................................... 69
Practices for Lesson 10 ........................................................................................................... 73
Practice 10-1: Using DDL Statements to Create and Manage Tables .......................... 74
Practice Solutions 10-1: Using DDL Statements to Create and Manage Tables.......... 76
Practices for Lesson 11 ........................................................................................................... 79
Practice 11-1: Creating Other Schema Objects ............................................................ 80
Practice Solutions 11-1: Creating Other Schema Objects ............................................ 82
Practices for Appendix F ........................................................................................................ 84
Practice F-1: Oracle Join Syntax................................................................................... 85
Practice Solutions F-1: Oracle Join Syntax .................................................................. 88
Oracle Database 11g: SQL Fundamentals I A - 3
Practices for Lesson I
In this practice, you perform the following:
• Start Oracle SQL Developer and create a new connection to the ora1 account.
• Use Oracle SQL Developer to examine data objects in the ora1 account. The
ora1 account contains the HR schema tables.
Note the following location for the lab files:
homeoraclelabssql1labs
If you are asked to save any lab files, save them in this location.
In any practice, there may be exercises that are prefaced with the phrases “If you have
time” or “If you want an extra challenge.” Work on these exercises only if you have
completed all other exercises within the allocated time and would like a further challenge
to your skills.
Perform the practices slowly and precisely. You can experiment with saving and running
command files. If you have any questions at any time, ask your instructor.
Note
1) All written practices use Oracle SQL Developer as the development environment.
Although it is recommended that you use Oracle SQL Developer, you can also use
SQL*Plus that is available in this course.
2) For any query, the sequence of rows retrieved from the database may differ from the
screenshots shown.
Oracle Database 11g: SQL Fundamentals I A - 4
Practice I-1: Introduction
This is the first of many practices in this course. The solutions (if you require them) can
be found at the end of this practice. Practices are intended to cover most of the topics that
are presented in the corresponding lesson.
Starting Oracle SQL Developer
1) Start Oracle SQL Developer using the SQL Developer desktop icon.
Creating a New Oracle SQL Developer Database Connection
2) To create a new database connection, in the Connections Navigator, right-click
Connections. Select New Connection from the menu. The New/Select Database
Connection dialog box appears.
3) Create a database connection using the following information:
a) Connection Name: myconnection
b) Username: ora1
c) Password: ora1
d) Hostname: localhost
e) Port: 1521
f) SID: ORCL
Ensure that you select the Save Password check box.
Testing and Connecting Using the Oracle SQL Developer Database Connection
4) Test the new connection.
5) If the status is Success, connect to the database using this new connection.
Browsing the Tables in the Connections Navigator
6) In the Connections Navigator, view the objects available to you in the Tables node.
Verify that the following tables are present:
COUNTRIES
DEPARTMENTS
EMPLOYEES
JOB_GRADES
JOB_HISTORY
JOBS
LOCATIONS
REGIONS
7) Browse the structure of the EMPLOYEES table.
8) View the data of the DEPARTMENTS table.
Oracle Database 11g: SQL Fundamentals I A - 5
Practice Solutions I-1: Introduction
Starting Oracle SQL Developer
1) Start Oracle SQL Developer using the SQL Developer desktop icon.
a) Double-click the SQL Developer desktop icon.
The SQL Developer Interface appears.
Creating a New Oracle SQL Developer Database Connection
2) To create a new database connection, in the Connections Navigator, right-click
Connections and select New Connection from the menu.
Practice Solutions I-1: Introduction (continued)
Oracle Database 11g: SQL Fundamentals I A - 6
The New / Select Database Connection dialog box appears.
3) Create a database connection using the following information:
a) Connection Name: myconnection
b) Username: ora1
c) Password: ora1
d) Hostname: localhost
e) Port: 1521
f) SID: ORCL
Ensure that you select the Save Password check box.
Practice Solutions I-1: Introduction (continued)
Oracle Database 11g: SQL Fundamentals I A - 7
Testing and Connecting Using the Oracle SQL Developer Database Connection
4) Test the new connection.
5) If the status is Success, connect to the database using this new connection.
Practice Solutions I-1: Introduction (continued)
Oracle Database 11g: SQL Fundamentals I A - 8
When you create a connection, a SQL Worksheet for that connection opens
automatically.
Browsing the Tables in the Connections Navigator
6) In the Connections Navigator, view the objects available to you in the Tables node.
Verify that the following tables are present:
COUNTRIES
DEPARTMENTS
EMPLOYEES
JOB_GRADES
JOB_HISTORY
JOBS
LOCATIONS
REGIONS
Practice Solutions I-1: Introduction (continued)
Oracle Database 11g: SQL Fundamentals I A - 9
7) Browse the structure of the EMPLOYEES table.
8) View the data of the DEPARTMENTS table.
Practice Solutions I-1: Introduction (continued)
Oracle Database 11g: SQL Fundamentals I A - 10
Oracle Database 11g: SQL Fundamentals I A - 11
Practices for Lesson 1
In this practice, you write simple SELECT queries. The queries cover most of the SELECT
clauses and operations that you learned in this lesson.
Oracle Database 11g: SQL Fundamentals I A - 12
Practice 1-1: Retrieving Data Using the SQL SELECT Statement
Part 1
Test your knowledge:
1) The following SELECT statement executes successfully:
SELECT last_name, job_id, salary AS Sal
FROM employees;
True/False
2) The following SELECT statement executes successfully:
SELECT *
FROM job_grades;
True/False
3) There are four coding errors in the following statement. Can you identify them?
SELECT employee_id, last_name
sal x 12 ANNUAL SALARY
FROM employees;
Part 2
Note the following points before you begin with the practices:
• Save all your lab files at the following location:
/home/oracle/labs/sql1/labs
• Enter your SQL statements in a SQL Worksheet. To save a script in SQL
Developer, make sure that t
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
Phụ lục AThực hành và giải phápCơ sở dữ liệu Oracle 11g: nguyên tắc cơ bản SQL tôi A - 2Bảng nội dungPractices for Lesson I................................................................................................................ 3Practice I-1: Introduction ................................................................................................ 4Thực hành giải pháp tôi-1: giới thiệu... 5Practices for Lesson 1 ............................................................................................................. 11Hành nghề 1-1: lấy dữ liệu bằng cách sử dụng các lệnh SQL chọn... 12Thực hành giải pháp 1-1: lấy dữ liệu bằng cách sử dụng các lệnh SQL chọn... 16Practices for Lesson 2 ............................................................................................................. 19Hành nghề 2-1: hạn chế và phân loại dữ liệu... 20Thực hành giải pháp 2-1: hạn chế và phân loại dữ liệu... 24Practices for Lesson 3 ............................................................................................................. 27Hành nghề 3-1: bằng cách sử dụng chức năng duy nhất – hàng tùy chỉnh sản lượng... 28Thực hành giải pháp 3-1: bằng cách sử dụng chức năng duy nhất – hàng tùy chỉnh sản lượng... 32Practices for Lesson 4 ............................................................................................................. 35Hành nghề 4-1: bằng cách sử dụng chức năng chuyển đổi và biểu hiện có điều kiện... 36Thực hành giải pháp 4-1: bằng cách sử dụng chức năng chuyển đổi và biểu hiện có điều kiện... 39Practices for Lesson 5 ............................................................................................................. 41Thực hành 5-1: báo cáo tổng hợp dữ liệu bằng cách sử dụng các chức năng nhóm... 42Thực hành giải pháp 5-1: báo cáo tổng hợp dữ liệu bằng cách sử dụng các chức năng nhóm... 45Practices for Lesson 6 ............................................................................................................. 48Hành nghề 6-1: Hiển thị các dữ liệu từ nhiều bảng bằng cách sử dụng tham gia... 49Thực hành giải pháp 6-1: Hiển thị các dữ liệu từ nhiều bảng bằng cách sử dụng tham gia... 52Practices for Lesson 7 ............................................................................................................. 54Thực hành 7-1: sử dụng Subqueries để giải quyết các truy vấn... 55Thực hành giải pháp 7-1: sử dụng Subqueries để giải quyết các truy vấn... 57Practices for Lesson 8 ............................................................................................................. 59Thực hành 8-1: sử dụng các nhà điều hành thiết lập... 60Thực hành giải pháp 8-1: sử dụng các nhà điều hành thiết lập... 62Practices for Lesson 9 ............................................................................................................. 64Hành nghề 9-1: thao tác dữ liệu... 65Thực hành giải pháp 9-1: thao tác dữ liệu... 69Practices for Lesson 10 ........................................................................................................... 73Hành nghề 10-1: sử dụng DDL báo cáo để tạo và quản lý bảng... 74Thực hành giải pháp 10-1: sử dụng DDL báo cáo để tạo và quản lý bảng... 76Practices for Lesson 11 ........................................................................................................... 79Hành nghề 11-1: tạo ra các đối tượng khác của giản đồ... 80Thực hành giải pháp 11-1: tạo ra các đối tượng khác của giản đồ... 82Practices for Appendix F ........................................................................................................ 84Thực hành F-1: Oracle tham gia cú pháp... 85Practice Solutions F-1: Oracle Join Syntax .................................................................. 88Oracle Database 11g: SQL Fundamentals I A - 3Practices for Lesson IIn this practice, you perform the following:• Start Oracle SQL Developer and create a new connection to the ora1 account.• Use Oracle SQL Developer to examine data objects in the ora1 account. Theora1 account contains the HR schema tables.Note the following location for the lab files:homeoraclelabssql1labsIf you are asked to save any lab files, save them in this location.In any practice, there may be exercises that are prefaced with the phrases “If you havetime” or “If you want an extra challenge.” Work on these exercises only if you havecompleted all other exercises within the allocated time and would like a further challengeto your skills.Perform the practices slowly and precisely. You can experiment with saving and runningcommand files. If you have any questions at any time, ask your instructor.Note1) All written practices use Oracle SQL Developer as the development environment.Although it is recommended that you use Oracle SQL Developer, you can also useSQL*Plus that is available in this course.2) For any query, the sequence of rows retrieved from the database may differ from thescreenshots shown.Oracle Database 11g: SQL Fundamentals I A - 4Practice I-1: IntroductionThis is the first of many practices in this course. The solutions (if you require them) canbe found at the end of this practice. Practices are intended to cover most of the topics thatare presented in the corresponding lesson.Starting Oracle SQL Developer1) Start Oracle SQL Developer using the SQL Developer desktop icon.Creating a New Oracle SQL Developer Database Connection2) To create a new database connection, in the Connections Navigator, right-clickConnections. Select New Connection from the menu. The New/Select DatabaseConnection dialog box appears.3) Create a database connection using the following information:a) Connection Name: myconnectionb) Username: ora1c) Password: ora1d) Hostname: localhoste) Port: 1521f) SID: ORCLEnsure that you select the Save Password check box.Testing and Connecting Using the Oracle SQL Developer Database Connection4) Test the new connection.5) If the status is Success, connect to the database using this new connection.Browsing the Tables in the Connections Navigator6) In the Connections Navigator, view the objects available to you in the Tables node.Verify that the following tables are present:COUNTRIESDEPARTMENTSEMPLOYEESJOB_GRADESJOB_HISTORYJOBSLOCATIONSREGIONS7) Browse the structure of the EMPLOYEES table.8) View the data of the DEPARTMENTS table.Oracle Database 11g: SQL Fundamentals I A - 5Practice Solutions I-1: IntroductionStarting Oracle SQL Developer1) Start Oracle SQL Developer using the SQL Developer desktop icon.a) Double-click the SQL Developer desktop icon.The SQL Developer Interface appears.Creating a New Oracle SQL Developer Database Connection2) To create a new database connection, in the Connections Navigator, right-clickConnections and select New Connection from the menu.Practice Solutions I-1: Introduction (continued)Oracle Database 11g: SQL Fundamentals I A - 6The New / Select Database Connection dialog box appears.3) Create a database connection using the following information:a) Connection Name: myconnectionb) Username: ora1c) Password: ora1d) Hostname: localhoste) Port: 1521f) SID: ORCLEnsure that you select the Save Password check box.Practice Solutions I-1: Introduction (continued)Oracle Database 11g: SQL Fundamentals I A - 7Testing and Connecting Using the Oracle SQL Developer Database Connection4) Test the new connection.5) If the status is Success, connect to the database using this new connection.Practice Solutions I-1: Introduction (continued)Oracle Database 11g: SQL Fundamentals I A - 8When you create a connection, a SQL Worksheet for that connection opensautomatically.Browsing the Tables in the Connections Navigator6) In the Connections Navigator, view the objects available to you in the Tables node.Verify that the following tables are present:COUNTRIESDEPARTMENTSEMPLOYEESJOB_GRADESJOB_HISTORYJOBSLOCATIONSREGIONSPractice Solutions I-1: Introduction (continued)Oracle Database 11g: SQL Fundamentals I A - 97) Browse the structure of the EMPLOYEES table.8) View the data of the DEPARTMENTS table.Practice Solutions I-1: Introduction (continued)Oracle Database 11g: SQL Fundamentals I A - 10Oracle Database 11g: SQL Fundamentals I A - 11Practices for Lesson 1In this practice, you write simple SELECT queries. The queries cover most of the SELECTclauses and operations that you learned in this lesson.Oracle Database 11g: SQL Fundamentals I A - 12Practice 1-1: Retrieving Data Using the SQL SELECT StatementPart 1Test your knowledge:1) The following SELECT statement executes successfully:SELECT last_name, job_id, salary AS SalFROM employees;True/False2) The following SELECT statement executes successfully:SELECT *FROM job_grades;True/False3) There are four coding errors in the following statement. Can you identify them?SELECT employee_id, last_namesal x 12 ANNUAL SALARYFROM employees;Part 2Note the following points before you begin with the practices:• Save all your lab files at the following location:/home/oracle/labs/sql1/labs• Enter your SQL statements in a SQL Worksheet. To save a script in SQLDeveloper, make sure that t
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
Phụ lục A
Thực tiễn và giải pháp
Oracle Database 11g: SQL Fundamentals IA - 2
Mục lục
Lệ Lesson 3
Thực hành I-1: Giới thiệu ........................................... .................................................. ... 4
Thực hành Giải pháp I-1: Giới thiệu ....................................... ......................................... 5
Thực tiễn cho Bài 1 11
Thực hành 1-1: Lấy dữ liệu Sử dụng Tuyên bố SQL SELECT .............................. 12
giải pháp thực hành 1-1: Lấy dữ liệu Sử dụng Tuyên bố SQL SELECT .............. 16
Thực tiễn cho Bài 2 19
Thực hành 2-1: Hạn chế và phân loại dữ liệu ........................................ ............................ 20
Thực hành Solutions 2-1: Hạn chế và phân loại dữ liệu ........... ........................................ 24
Thực tiễn cho Bài 3 27
Thực hành 3-1: Sử dụng các hàm Single-Row để tùy chỉnh đầu ra ................................ 28
Thực hành Giải pháp 3 -1: Sử dụng các hàm Single-Row để tùy chỉnh đầu ra ................ 32
Thực tiễn cho Bài 4 35
Thực hành 4-1: Sử dụng các hàm chuyển đổi và điều kiện Expressions .................... 36
Thực hành Solutions 4-1: Sử dụng các hàm chuyển đổi và những biểu hiện có điều kiện .... 39
Thực tiễn cho Bài 5 41
Thực hành 5-1: Báo cáo Tổng hợp dữ liệu Sử dụng các chức năng Nhóm ......................... 42
giải pháp thực hành 5-1: Báo cáo Tổng hợp dữ liệu Sử dụng Nhóm chức năng ........ 45
Thực tiễn cho Bài 6 48
Thực hành 6-1: Hiển thị dữ liệu từ nhiều bảng Sử dụng tham gia ................................ 49
giải pháp thực hành 6- 1: Hiển thị dữ liệu từ nhiều bảng Sử dụng tham gia ................ 52
Thực tiễn cho Bài 7 54
Thực hành 7-1: Sử dụng truy vấn con để Solve Queries ....................................... .................. 55
Thực hành Solutions 7-1: Sử dụng truy vấn con để Solve Queries .................... ..................... 57
Thực tiễn cho Bài 8 59
Thực hành 8-1: Sử dụng các toán tử Set ........................................ ................................... 60
Thực hành Solutions 8-1: Sử dụng các toán tử Set .... .................................................. ..... 62
Thực tiễn cho Bài 9 64
Thực hành 9-1: thao tác dữ liệu .......................................... ......................................... 65
Thực hành Solutions 9-1: thao tác dữ liệu .................................................. ................. 69
Thực tiễn cho Bài 10 73
Thực hành 10-1: Sử dụng câu lệnh DDL để tạo và Quản lý Bàn .......................... 74
Thực hành Solutions 10-1: Sử dụng câu lệnh DDL Tạo và quản lý các bảng .......... 76
Thực tiễn cho Bài 11 79
Thực hành 11-1: Tạo Schema Objects khác ........................................ .................... 80
Thực hành Solutions 11-1: Tạo Schema Objects khác ................... ......................... 82
Thực tiễn cho Phụ lục F 84
Thực hành F-1: Oracle Tham Cú pháp ......................................... .......................................... 85
Thực hành Solutions F-1: Oracle Tham gia Cú pháp ................................................ .................. 88
Oracle Database 11g: SQL Fundamentals IA - 3
Thực tiễn cho Lesson Tôi
Trong thực hành này, bạn thực hiện như sau:
• Bắt đầu phát triển Oracle SQL và tạo ra một mới nối với tài khoản ora1.
• Sử dụng Oracle SQL Developer để kiểm tra các đối tượng dữ liệu trong tài khoản ora1. Các
tài khoản ora1 chứa các bảng schema HR.
Lưu ý các vị trí sau cho các tập tin phòng thí nghiệm:
home oracle phòng thí nghiệm sql1 phòng thí
nghiệm. Nếu bạn được yêu cầu để lưu bất kỳ tập tin phòng thí nghiệm, lưu chúng vào vị trí này
trong bất kỳ thực tế, có thể có bài tập được mở đầu với những cụm từ "Nếu bạn có
thời gian" hay "Nếu bạn muốn một thách thức thêm." Làm việc trên các bài tập này chỉ khi bạn đã
hoàn thành tất cả các bài tập khác trong thời gian được phân bổ và muốn một thách thức hơn nữa
các kỹ năng của bạn.
Thực hiện các hoạt động từ từ và chính xác. Bạn có thể thử nghiệm với tiết kiệm và chạy
file lệnh. Nếu bạn có bất kỳ câu hỏi bất cứ lúc nào, hãy hỏi người hướng dẫn của bạn.
Lưu ý
1) Tất cả các thực hành văn bản sử dụng Oracle SQL Developer như các môi trường phát triển.
Mặc dù đó là khuyến cáo rằng bạn sử dụng Oracle SQL Developer, bạn cũng có thể sử dụng
SQL * Plus có sẵn trong . Tất nhiên điều này
2) Đối với bất kỳ truy vấn, trình tự của các hàng lấy từ cơ sở dữ liệu có thể khác nhau từ các
ảnh chụp màn hình hiển thị.
Oracle Database 11g: SQL Fundamentals IA - 4
Thực hành I-1: Giới thiệu
Đây là lần đầu tiên trong nhiều thực hành trong khóa học này. Các giải pháp (nếu bạn yêu cầu họ) có thể
được tìm thấy ở phần cuối của thực hành này. Thực hành được dự định để bao quát hầu hết các chủ đề
được trình bày trong các bài học tương ứng.
Bắt đầu từ Oracle SQL Developer
1) Bắt đầu Oracle SQL Developer bằng cách sử dụng các biểu tượng máy tính để bàn cho nhà phát triển SQL.
Tạo một New Oracle SQL Developer Database Connection
2) Để tạo một kết nối cơ sở dữ liệu mới , trong Connections Navigator, kích chuột phải vào
kết nối. Chọn New Connection từ menu. The New / Chọn cơ sở dữ liệu
kết nối hộp thoại sẽ xuất hiện.
3) Tạo một kết nối cơ sở dữ liệu bằng cách sử dụng các thông tin sau:
a) Connection Name: MyConnection
b) Tên đăng nhập: ora1
c) Password: ora1
d) Hostname: localhost
e) Port: 1521
f) SID : ORCL
Đảm bảo rằng bạn chọn các hộp Save Password kiểm tra.
Kiểm tra và kết nối Sử dụng cơ sở dữ liệu Oracle Developer SQL kết nối
4) Kiểm tra các kết nối mới.
5) Nếu tình trạng này là thành công, kết nối với cơ sở dữ liệu bằng cách sử dụng kết nối mới này.
Duyệt bảng trong Navigator Connections
6) Trong Connections Navigator, xem các đối tượng có sẵn cho bạn trong nút Tables.
Xác minh rằng các bảng dưới đây được trình bày:
NƯỚC
KHOA
NHÂN VIÊN
JOB_GRADES
JOB_HISTORY
JOBS
ĐỊA ĐIỂM
VÙNG. 7) Duyệt các cấu trúc của bảng NHÂN VIÊN 8) Xem các dữ liệu của KHOA bảng. Cơ sở dữ liệu Oracle 11g: SQL Fundamentals IA - 5 giải pháp thực hành I-1: Giới thiệu Bắt đầu từ Oracle SQL Developer 1) Bắt đầu Oracle SQL Developer bằng cách sử dụng các biểu tượng máy tính để bàn cho nhà phát triển SQL. a) Double-click vào biểu tượng máy tính để bàn SQL Developer . Các giao diện SQL Developer xuất hiện. Tạo một New Oracle SQL Developer Database Connection 2) Để tạo một kết nối cơ sở dữ liệu mới, trong Connections Navigator, kích chuột phải vào kết nối và chọn New Connection từ menu. Thực hành Giải pháp I-1: Giới thiệu (tiếp tục ) Oracle Database 11g: SQL Fundamentals IA - 6 The New / Chọn Database Connection hộp thoại sẽ xuất hiện. 3) Tạo một kết nối cơ sở dữ liệu bằng cách sử dụng các thông tin sau: a) Connection Name: MyConnection b) Tên đăng nhập: ora1 c) Password: ora1 d) Hostname : localhost e) Port: 1521 f) SID: ORCL Đảm bảo rằng bạn chọn Save hộp Password kiểm tra. Thực hành Giải pháp I-1: Giới thiệu (tiếp theo) Oracle Database 11g: SQL Fundamentals IA - 7 Thử nghiệm và kết nối Sử dụng cơ sở dữ liệu Oracle Developer SQL kết nối 4) Kiểm tra các kết nối mới. 5) Nếu tình trạng này là thành công, kết nối với cơ sở dữ liệu bằng cách sử dụng kết nối mới này. Thực hành Giải pháp I-1: Giới thiệu (tiếp theo) Oracle Database 11g: SQL Fundamentals IA - 8 Khi bạn tạo một kết nối, một Worksheet SQL cho kết nối đó sẽ mở ra. tự động Duyệt Tables trong Connections Navigator 6) Trong Connections Navigator, xem các đối tượng có sẵn cho bạn trong nút Tables. Xác minh rằng các bảng dưới đây được trình bày: NƯỚC KHOA NHÂN VIÊN JOB_GRADES JOB_HISTORY JOBS ĐỊA ĐIỂM VÙNG Thực hành Giải pháp I-1: Giới thiệu (tiếp theo) Oracle Database 11g: SQL Fundamentals IA - 9 7) Duyệt các cấu trúc của bảng NHÂN VIÊN. 8) Xem các dữ liệu của bảng KHOA. thực hành Giải pháp I-1: Giới thiệu (tiếp theo) Oracle Database 11g: SQL Fundamentals IA - 10 cơ sở dữ liệu Oracle 11g: SQL Fundamentals IA - 11 Thực tiễn cho Bài 1 Trong thực hành này, bạn viết các truy vấn SELECT đơn giản. Các truy vấn bao gồm hầu hết các SELECT khoản và các hoạt động mà bạn đã học được bài học này. Oracle Database 11g: SQL Fundamentals IA - 12 Thực hành 1-1: Lấy dữ liệu Sử dụng Tuyên bố SQL SELECT Phần 1 Kiểm tra kiến thức của bạn: 1) Các câu lệnh SELECT sau đây thực hiện thành công: CHỌN last_name, job_id, lương AS Sal TỪ nhân viên; True / False 2) Các câu lệnh SELECT dưới đây thực thi thành công: SELECT * FROM job_grades; True / False 3) Có bốn lỗi mã hóa trong các câu sau đây. Bạn có thể nhận ra chúng? CHỌN Employeed_ID, last_name sal x 12 LƯƠNG THƯỜNG NIÊN TỪ nhân viên; Phần 2, lưu ý các điểm sau đây trước khi bạn bắt đầu với việc thực hành: • Lưu tất cả các file trong phòng thí nghiệm tại các vị trí sau: / home / oracle / phòng thí nghiệm / sql1 / các phòng thí nghiệm • Nhập câu lệnh SQL của bạn trong một Worksheet SQL. Để lưu một kịch bản trong SQL Developer, hãy chắc chắn rằng t









































































đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2025 I Love Translation. All reserved.

E-mail: