consulta SQL

From: "eburg" <eburg(at)mailchile(dot)cl>
To: pgsql-es-ayuda(at)postgresql(dot)org
Subject: consulta SQL
Date: 2005-06-01 13:37:59
Message-ID: 20050601133635.M67924@mailchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Primero que nada estoy realizando un sistema de encuestas docentes
en la cual tengo esta tabla que donde guardo las evaluaciones de cada alumno
con el profesor calificado y el ramo correspondiente, bien ahora la pregunta es que
necesito contar todas las votaciones de cada profesor con su respectivo ramo, me explico
mejor:

profesor votos ramo
JUAN 20 CALCULO
PEDRO 10 ALGEBRA

create table EVALUACION (
ID_EVALUAC NUMERIC(5) not null,
FIRMA VARCHAR(50) not null,
ID_RAMOS NUMERIC(5) null,
RUT_PROF CHAR(10) null,
FECHA DATE not null,
ID_PREGUNTAS NUMERIC(5) null,
CAL_PERSONAL FLOAT8 not null,
CLA_PROFESIONAL FLOAT8 not null,
constraint PK_EVALUACION primary key (ID_EVALUAC)
);
alter table EVALUACION
add constraint FK_EVALUACI_EVAL_PREG_PREGUNTA foreign key (ID_PREGUNTAS)
references PREGUNTAS (ID_PREGUNTAS)

GRACIAS POR SU RESPUESTAS....

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Mauricio Zea (Gmail) 2005-06-01 13:41:31 Re: Fw: imagenes en la DB
Previous Message Ramiro Arenas 2005-06-01 13:11:47 Re: Problemas con libpq