ODBC driver for Mongo - WHERE clause always return empty
Posted: Sun 04 Nov 2018 22:52
Hi,
I have problem with DevArt ODBC driver ofr MongoDB.
MongoDB ver 3.2
MS Excel
DevArt ODBC driver trial version
When i use Microsoft Query to build my sql (in MS Excel), it will return data only when i do not put any WHERE clause.
SELECT customer.account_id, customer.name, order.account_id, order.billing_id
FROM myDB.customer customer, myDB.order order
which will return all rows from both tables
But when i put WHERE clause:
SELECT customer.account_id, customer.name, order.account_id, order.billing_id
FROM myDB.customer customer, myDB.order order
WHERE customer.account_id = order.account_id
it will return empty rows although they have data with same account_id (both have account_id of 1,2,3)
WHERE customer.account_id = 1 also not working
Thanks in advance
I have problem with DevArt ODBC driver ofr MongoDB.
MongoDB ver 3.2
MS Excel
DevArt ODBC driver trial version
When i use Microsoft Query to build my sql (in MS Excel), it will return data only when i do not put any WHERE clause.
SELECT customer.account_id, customer.name, order.account_id, order.billing_id
FROM myDB.customer customer, myDB.order order
which will return all rows from both tables
But when i put WHERE clause:
SELECT customer.account_id, customer.name, order.account_id, order.billing_id
FROM myDB.customer customer, myDB.order order
WHERE customer.account_id = order.account_id
it will return empty rows although they have data with same account_id (both have account_id of 1,2,3)
WHERE customer.account_id = 1 also not working
Thanks in advance