关系表SQL Plus

关系表SQL Plus,sql,oracle,Sql,Oracle,所以我只想了解关系表没有使用以下查询 (1) Create a relational table TOTAPPS(anum,totap) that contains information about the numbers of applicants (anum) and the total number of applications (totap) submitted by each applicant. If an applicant submitted no applicatio

所以我只想了解关系表没有使用以下查询

(1) Create a relational table TOTAPPS(anum,totap) that contains information 
about the numbers of applicants (anum) and the total number 
of applications (totap) submitted by each applicant. If an applicant submitted 
no application then a value ofattribute   
totap should be equal to zero. Load data to a relational table TOTAPPS.
我如何让anum使用关系表计算申请者的数量

我的申请者表示例如下:

CREATE TABLE test_table ( anum INTEGER, totap INTEGER );
//Applicant
A# 
---------
1 
2 
3
4
5

//Application
A#         POSITION
--------------------
1            CEO
1            GM
2            DIRECTOR
3            MANAGER
因此,当我从TOTAPPS中选择*时,以下结果应该是这样的:

CREATE TABLE test_table ( anum INTEGER, totap INTEGER );
//Applicant
A# 
---------
1 
2 
3
4
5

//Application
A#         POSITION
--------------------
1            CEO
1            GM
2            DIRECTOR
3            MANAGER

我必须手动插入,或者当我创建关系表时,我可以直接计算它?

假设您有一个包含应用程序的表,以及一个包含申请者的表,其中每个申请者可以有多个应用程序?但是这个要求没有意义;如果
anum
是申请者数量,那么这是一个单一值,即申请者表中的记录计数
totap
可以是应用程序表中的记录计数;但“每个申请人提交”并不合适。所以它可能真的只需要两个表之间的左外连接,以及每个申请者的申请总数?那么?我该怎么办?创建新的关系表的步骤