Tabla 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.
Así que solo quiero entender que la tabla relacional no está usando la siguiente consulta
CREATE TABLE test_table ( anum INTEGER, totap INTEGER );
y cómo apunto el anum para contar el número de solicitantes que usan la tabla relacional
ejemplo, mi tabla de solicitantes de esta manera:
//Applicant
A#
---------
1
2
3
4
5
//Application
A# POSITION
--------------------
1 CEO
1 GM
2 DIRECTOR
3 MANAGER
así que cuando SELECCIONO * DE TOTAPPS, el siguiente resultado debería ser así:
//TOTAPPS
ANUM TOTAP
-------------------
1 2
2 1
3 1
4 0
5 0
debo insertar manualmente o cuando creo la tabla relacional, ¿puedo contarla directamente?