1. CouchDB :
Apache CouchDB is an open-source document-oriented NoSQL database that uses multiple formats and protocols to store, transfer, and process its data, it uses JSON to store data, JavaScript as its query language using MapReduce, and HTTP for an API. It was developed by Apache Software Foundation and initially released in 2005. It is written in Erlang.

2. IBM Db2 :
Db2 is a family of data management products, including database servers, developed by IBM. It is a Relational Database Management System (RDBMS) which supports Object Oriented features and non relational structure with XML. Db2 is designed to store, analyze and retrieve the data efficiently. It was initially released in 1983 and written in C, C++, Assembly language, Java languages.
Difference between CouchDB and IBM Db2 :
| S.NO. | CouchDB | IBM Db2 |
|---|---|---|
| 1. | Developed by Apache Software Foundation and initially released in 2005. | Developed by IBM and initially released in 1983. |
| 2. | CouchDB is written in Erlang. | Db2 is written in C, C++, Assembly language, Java languages. |
| 3. | The primary database model for CouchDB is Document Store. | The primary database model for Db2 is Relational DBMS. |
| 4. | In CouchDB there is no predefined datatypes. | Db2 have predefined datatypes such as boolean, string, number, etc. |
| 5. | CouchDB supports Map Reduce method. | Db2 does not supports of Map Reduce method. |
| 6. | CouchDB does not provides the concept of Referential Integrity.Hence, no Foreign keys. | Db2 provides the concept of Referential Integrity and have Foreign keys. |
| 7. | CouchDB does not supports ACID transactions. | Db2 supports ACID transactions. |
| 8. | CouchDB does not support SQL. | Db2 supports SQL. |
| 9. | The license for CouchDB is Open Source. | The license for Db2 is Commercial. |
| 10. | Server operating systems for CouchDB are Android, BSD, Linux, OS X, Solaris and Windows | Server operating systems for Db2 are AIX, HP-UX, Linux, Solaris, Windows, z/OS. |
| 11. | Famous companies like Akamai Technologies, Hothead Games, Inc., GenCorp Technologies, Vivint Solar, etc uses CouchDB. | Famous companies like JPMorgan Chase, Bank of America, Scotiabank, Citi, etc uses Db2. |