Question: ![enter image description here](https://i.stack.imgur.com/WXi5v.jpg)

I have a bit attribute called 'tobacco' in tblVisits. tblICD is a list of medical codes and icd\_jxn is the junction table. tblICD.Descrip is a text description of the medical code (ICD\_ID). I'm trying to see if anyone who does `NOT` have the string 'tobacco' in their list of medical codes has their `bit` 'tobacco' attribute set to one. The query below is my best guess, but it's not correct. 

```
SELECT tblVisits.kha_id, tblVisits.tobacco from tblvisits
WHERE NOT EXISTS (SELECT icd_jxn.kha_id, icd_jxn.icd_fk, tblICD.icd_id, tblICD.Descrip
                   FROM icd_jxn inner join 
                        tblICD on icd_jxn.icd_fk = tblicd.icd_id
                       WHERE (tblicd.descrip like N'%tobacco%') AND (tblVisits.kha_id = icd_jxn.kha_id) and (tblvisits.tobacco=1))

```

Answer: 
MongoDB is a good choice. I'm a huge fan of [Redis](http://redis.io) myself (even for a small, everyday DB).

If you don't need an ORM type modeling for your data, I suggest [MongoJS](https://github.com/gett/mongojs) or [Mongoskin](https://github.com/kissjs/node-mongoskin). They both make it really easy to interface with MongoDB with very little code.
If this is for a project that you are just building on your local machine for learning, then [mongodb](http://www.mongodb.org/) with [mongoose](http://mongoosejs.com/) and [mongoose-auth](https://github.com/bnoguchi/mongoose-auth) can give you a pretty quick start. 

If you are planning to deploy this to production somewhere you should find out what your hosting provider offers. If you have not picked a hosting provider checkout [Heroku](http://www.heroku.com/). They offer [PostgreSQL](http://www.postgresql.org/) and they make it really easy to deploy your app without having to worry about server setup and config, etc.