incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony <asotolo...@uci.cu>
Subject how i can do a join in couchdb ?
Date Tue, 21 Feb 2012 22:12:26 GMT
Hello, greetings to everyone, I'm super rookie using couchdb
How I can get the sum of the notes of a student? (classic join in 
relational database)
I was designed 2 doc (students and notes)


other quetions
How i get only the data of note of "juan"?


{
     type: "estudiante",
     id: 1,
    nombre: "juan"
}
{
     type: "estudiante",
     id: 2,
    nombre: "pepe"
}


{
     type: "nota",
     id: 1,
    nota:5,
    asignatura:"mat"
}
{
     type: "nota",
     id: 1,
    nota:4,
    asignatura:"fis"
}
{
     type: "nota",
     id: 1,
    nota:5,
    asignatura:"esp"
}
{
     type: "nota",
     id: 2,
    nota:5,
    asignatura:"esp"
}

thank



Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE ENCUENTRAN INJUSTAMENTE
EN PRISIONES DE LOS EEUU!
http://www.antiterroristas.cu
http://justiciaparaloscinco.wordpress.com
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message