Query Group

0 respostas
S

Boa galera , boa noite,
Tenho duas tabelas no access … CRJJ04 e Ramal…
Ambas relacionadas … CRJJ04.origem = Ramal.ramal.

Preciso cantar a quantidade de registro e agrupar por Ramal.grupo.

Segue query…
estou executando e não aparece nada … alguem pode me ajudar?

st = con.createStatement();

rs = st.executeQuery(“select Ramal.Grupo, Ramal.ramal,CRJJ04.origem COUNT (CRJJ04.origem) As teste FROM CRJJ04, Ramal” +

“where Ramal.Ramal = CRJJ04.origem” +

" Group By Ramal.Grupo");
while (rs.next()){
        
        %>
                            
        <tr>
        <td><%= rs.getString(1) %></td>
        <td><%= rs.getString("teste") %><td>

Boa agradeço os amigos.

Criado 24 de julho de 2007
Respostas 0
Participantes 1