PL/SQL development skill test
PL/SQL development skill test
Name:
比如如何進行異常處理? 比如為什麼用FORALL ,比如如何用RECORD ,COLLECTION ,為什麼? 比如自治transaction,如何使用等等
1. In Oracle there are 4 types of logically ‘join’ relationship between tables they are : ___________________,_________________, ___________________,_____________________
2. When run a SQL the data scan method between two tables may be:
:____________________,_________________,__________________________.
3. The index type in Oracle include: b*tree index, __________________,__________________.
4. SQL in Oracle can be classified as ‘DDL’ and ‘DML’ please fill the type for below SQL:
create table __________________ Update table ____________
Truncate table _________________ delete data from table ____________ 。
According below SQL answer the question 5-7:
Select c.class_name, p.age, max(c.score) (1)
From class c (2)
left join person p On c.name = p.name (3)
Where p.gender = ‘man’ (4)
Group by c.class_name, p.age (5)
Order by -1 (6)
5. what is the order when this SQL is executed ________________________________。
The result of this SQL will ordered by column: _____________,
Ascending or Descending: _____________.
6. If we move (4) to the end of (3 ) change the (3) to:
On c.name =p.name And p.gender = ‘man’
And then delete the ‘where’ the result of this new SQL will ____________(Same/different) as the original one
7. To improve the performance of this SQL to add ________________index on column _____________ may works and after this change the execute plan of the table join relationship may changed
from___________________________to _____________________________
8. Write a simple SQL to get the Monday date of the week ’2015-10-22’:
_________________________________________________________________
9. Write a simple SQL to move data from Table_1 to Table_2, in case when the column Table_1.A ‘s value equal to Table_2.A then don’t insert this row data to Table_2 but update Table_2.B using Table_1.B’s value for this row in other situation just copy the whole row from Table_1 to Table_2.
10. Write a Update SQL to update Table_b.name using Table_a.name these two table both have a column
Named ‘code’ and these two tables can be joined by this column ‘code’:
According to below table to answer the question from 11-12
Table name: t_student
Subject |
Name |
gender |
Score |
English |
Jack |
M |
79 |
Mathematics |
Jack |
M |
58 |
Sports |
Grece |
F |
66 |
………………………… |
11. According to the table t_student which contains the info about students’ score for each subject please write a simple SQL to find the student whose score is the third of each subject
12. According to the table t_student to write a SQL to calculate the student num by gender:
The layout of the SQL should like this:
For example:
Male_num |
Fmale_num |
total num |
20 |
19 |
38 |
13 :Descript. the function of below three hint:
A: /*+ORDERED*/
B: /*+APPEND*/
C: /*+bypass_ujvc*/
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7899089/viewspace-750455/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- PL/SQL 宣告SQL
- Oracle PL/SQLOracleSQL
- pl/sql to_dateSQL
- PL/SQL 運算子SQL
- PL/SQL 條件SQL
- PL/SQL 迴圈SQL
- PL/SQL 遊標SQL
- Oracle PL/SQL塊簡介OracleSQL
- ultraedit高亮顯示pl/sqlSQL
- [ Skill ] Cadence Skill 語言入門
- Oracle 的PL/SQL語言使用OracleSQL
- PL/SQL 條件控制語句SQL
- PL/SQL程式設計急速上手SQL程式設計
- [20240607]PL/SQL中sql語句的註解.txtSQL
- 使用profiler測試Oracle PL/SQL效能OracleSQL
- Oralce之PL/SQL程式設計(遊標)SQL程式設計
- OCP 複習筆記之PL/SQL (1)筆記SQL
- Oracle PL/SQL程式碼中的註釋OracleSQL
- PL/SQL第二章--基本語法SQL
- PL/SQL第三章--游標SQL
- OCP 複習筆記之PL/SQL (3)筆記SQL
- 6.4. PL/SQL語法——6.4.7. 集合SQL
- pl/sql developer的一個小問題SQLDeveloper
- OCP 複習筆記之PL/SQL (2)筆記SQL
- OCP 複習筆記之PL/SQL (4)筆記SQL
- OCP 複習筆記之PL/SQL (5)筆記SQL
- ORA-06544:PL/SQL:internal error,arguments:[56319]SQLError
- Oracl資料庫+PL/SQL安裝與配置資料庫SQL
- PL/SQL Developer連線到Oracle 12cSQLDeveloperOracle
- openGauss關於PL/SQL匿名塊呼叫測試SQL
- 【OracleEBS】 在PL/SQL中呼叫Oracle ERP請求OracleSQL
- 6.4. PL/SQL語法——6.4.6. 遊標SQL
- 如何在PL/SQL中讀寫檔案(轉)SQL
- 「Oracle」客戶端 PL/SQL DEVELOPER 安裝使用Oracle客戶端SQLDeveloper
- D. Smithing SkillMIT
- Ncrystal Skill設計
- 【TUNE_ORACLE】列出LOOP套LOOP的PL/SQL程式碼SQL參考OracleOOPSQL
- PL/SQL 連線 Oralce 提示 Could not initialize oci.dllSQL
- PL/SQL Developer下載地址和漢化包地址SQLDeveloper