-將tablet _ a創建為select * from where press =' Xinhua '
-從b中選擇書名《借書人》to_char(借書日期,' yyyy-mm-DD '),其中書名= '老人與海',B. ISBN = T。
-從b中選擇書名,借書人,出版社,其中B. ISBN = T. ISBN (+)
- select cc from (select title,count (*) as cc from b,t其中B. ISBN = T. ISBN and to_char(借閱日期,' yyyy-mm ')= ' 2009-01 ' group by(title))其中title =' Grimm '
-select借方from(select借方,count(*) as dd from b where to_char(借入日期,' yyyy')='2009' group by(借方))where DD =(select max(DD)from(select借方,Count(*) as dd from b where to_char(借入日期,' yyyy')='2009' group by))
- select * from user_views創建所有視圖。
select * from all _觸發器