Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2004-03-10 : 08:35:41
|
| Paulo writes "i got this query"SELECT max(idaula), IdEdicaoCadeira, IdActividadeDocente, IdActividadeDocenteTipo, ActividadeDocenteTipo FROM vCadeiraTurmaDocenteAula WHERE (IdEdicaoCadeira = 90)group by IdActividadeDocenteTipo, ActividadeDocenteTipo , IdEdicaoCadeira, IdActividadeDocente"the result isNULL 90 111 1 TeóricaNULL 90 112 2 Teórica-PráticaNULL 90 113 3 PráticaNULL 90 114 7 Regênciasame query without "max(idaula),""SELECT IdEdicaoCadeira, IdActividadeDocente, IdActividadeDocenteTipo, ActividadeDocenteTipo FROM vCadeiraTurmaDocenteAula WHERE (IdEdicaoCadeira = 90)group by IdActividadeDocenteTipo, ActividadeDocenteTipo , IdEdicaoCadeira, IdActividadeDocente"the result is90 114 7 Regênciawhy i don't have the same 4 results?" |
|
|
X002548
Not Just a Number
15586 Posts |
Posted - 2004-03-10 : 11:01:54
|
You shouldn't...something else is going on...what doesSELECT DISTINCT IdEdicaoCadeira , IdActividadeDocente , IdActividadeDocenteTipo , ActividadeDocenteTipo FROM vCadeiraTurmaDocenteAula WHERE IdEdicaoCadeira = 90 give you?Brett8-) |
 |
|
|
|
|
|
|
|