I understand that, in SQL, even though I don’t have data for the field, the field will be available. Whereas in MongoDB if the data is not there, the field won’t be there.
Out of curiosity, is there a SQL Query Equivalent to the below MongoDb query?
Typically you will not use identical data models in MongoDB vs RDBMS. I included more on this in a discussion yesterday, so please read my related post for more details: