Click here to Skip to main content
15,922,584 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQL Pin
Farhan Noor Qureshi30-Nov-05 13:19
Farhan Noor Qureshi30-Nov-05 13:19 
QuestionDistinct syntax's matter Pin
ventomito30-Nov-05 7:41
ventomito30-Nov-05 7:41 
AnswerRe: Distinct syntax's matter Pin
Farhan Noor Qureshi30-Nov-05 9:10
Farhan Noor Qureshi30-Nov-05 9:10 
GeneralRe: Distinct syntax's matter Pin
ventomito30-Nov-05 9:35
ventomito30-Nov-05 9:35 
GeneralRe: Distinct syntax's matter Pin
Farhan Noor Qureshi30-Nov-05 11:17
Farhan Noor Qureshi30-Nov-05 11:17 
GeneralRe: Distinct syntax's matter Pin
ventomito1-Dec-05 2:56
ventomito1-Dec-05 2:56 
GeneralRe: Distinct syntax's matter Pin
Farhan Noor Qureshi1-Dec-05 7:16
Farhan Noor Qureshi1-Dec-05 7:16 
GeneralRe: Distinct syntax's matter Pin
ventomito1-Dec-05 8:06
ventomito1-Dec-05 8:06 
ok, i have 5 tables:

Studenti(student):
fields -> CodiceStud(PK),NomeStud,CognStud,DataNascita,Classe,
CodiceIstituto(FK)

Istituti(school):
fields -> CodiceIstituto(PK),Denominazione,Indirizzo,Telefono

Professori(teachers):
fields -> CodiceProf(PK),CognProf,NomeProf,CodiceIstituto(FK),
CodiceManif(FK)

Manifestazioni(Competition):
fields -> CodiceManif(PK),Descrizione,Luogo,DataInizio

Iscrizioni(inscriptions):
fields -> CodiceStud(FK),CodiceManif(FK),DataInizio

The "inscriptions" table result from the N:N relation between student and competition.
The tables i need for the query are student and school only.
With this query i want to have as result the list of the school with the number of students who take part in one of the competition.
PS: Without the Distinct function, if a student take part in more then one competition he will be counted more time...

VentoEngine corp.
Program your life ^^
GeneralRe: Distinct syntax's matter Pin
Farhan Noor Qureshi1-Dec-05 8:49
Farhan Noor Qureshi1-Dec-05 8:49 
GeneralRe: Distinct syntax's matter Pin
ventomito3-Dec-05 5:49
ventomito3-Dec-05 5:49 
GeneralRe: Distinct syntax's matter Pin
Colin Angus Mackay3-Dec-05 6:39
Colin Angus Mackay3-Dec-05 6:39 
GeneralRe: Distinct syntax's matter Pin
Paul Conrad3-Dec-05 15:07
professionalPaul Conrad3-Dec-05 15:07 
QuestionSQL Server 2005 Express edition. question Pin
john111333430-Nov-05 5:58
john111333430-Nov-05 5:58 
AnswerRe: SQL Server 2005 Express edition. question Pin
Colin Angus Mackay30-Nov-05 6:10
Colin Angus Mackay30-Nov-05 6:10 
Questionweb services Pin
7mam30-Nov-05 4:39
7mam30-Nov-05 4:39 
AnswerRe: web services Pin
Farhan Noor Qureshi30-Nov-05 9:14
Farhan Noor Qureshi30-Nov-05 9:14 
QuestionHyperlink Column in SQL Server Pin
R. A. Abbasi29-Nov-05 19:17
R. A. Abbasi29-Nov-05 19:17 
AnswerRe: Hyperlink Column in SQL Server Pin
Mekong River1-Dec-05 14:04
Mekong River1-Dec-05 14:04 
QuestionComparing only Time in Sql? Pin
majidbhutta29-Nov-05 18:41
majidbhutta29-Nov-05 18:41 
AnswerRe: Comparing only Time in Sql? Pin
Michael Potter30-Nov-05 3:46
Michael Potter30-Nov-05 3:46 
QuestionError when install sql server sp4 Pin
Mekong River29-Nov-05 14:02
Mekong River29-Nov-05 14:02 
AnswerRe: Error when install sql server sp4 Pin
Mike Dimmick30-Nov-05 3:10
Mike Dimmick30-Nov-05 3:10 
GeneralRe: Error when install sql server sp4 Pin
Mekong River30-Nov-05 5:36
Mekong River30-Nov-05 5:36 
QuestionRecordset Open method error IDispatch error #3121 Pin
flyflyfly29-Nov-05 9:24
flyflyfly29-Nov-05 9:24 
AnswerRe: Recordset Open method error IDispatch error #3121 Pin
Farhan Noor Qureshi29-Nov-05 12:04
Farhan Noor Qureshi29-Nov-05 12:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.