Jamil Atta Junior Atta wrote: > so can't we use couchdb like in SQL that we use join to get union from two > tables?
You can, but views are constrained to a database. Just like SQL joins are constrained to a single database AFAIK. CouchDB doesn't have the concept of tables, but a common pattern is to store documents of different types in a single database. You can combine them any way you want in a view. > Explain: > 1. I have a database1 and daabase2; > > 2. I get all metadata from this database1; > > 3. but another information is in database2 (Today I open another connection > to database2 send a key to get this information); > > I'm asking if is possible have one view to get all the information in one > return to my .php, today I open two connections. No, it's not possible, since queries can not span multiple databases. But maybe you can store all information in a single database? Otherwise you will need to do multiple queries. Nils. De informatie vervat in deze e-mail en meegezonden bijlagen is uitsluitend bedoeld voor gebruik door de geadresseerde en kan vertrouwelijke informatie bevatten. Openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekking van deze informatie aan derden is voorbehouden aan geadresseerde. De VPRO staat niet in voor de juiste en volledige overbrenging van de inhoud van een verzonden e-mail, noch voor tijdige ontvangst daarvan.
