Tabela relacional SQL Plus
(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.
Então, eu só quero entender que a tabela relacional não está usando a consulta a seguir
CREATE TABLE test_table ( anum INTEGER, totap INTEGER );
e como aponto o anum para contar o número de candidatos usando a tabela relacional
exemplo minha tabela de candidatos como esta:
//Applicant
A#
---------
1
2
3
4
5
//Application
A# POSITION
--------------------
1 CEO
1 GM
2 DIRECTOR
3 MANAGER
portanto, quando eu SELECT * FROM TOTAPPS, o seguinte resultado deve ser assim:
//TOTAPPS
ANUM TOTAP
-------------------
1 2
2 1
3 1
4 0
5 0
devo inserir manualmente ou quando crio a tabela relacional posso contá-la diretamente?