SELECT User, COUNT(*) as count FROM Tests GROUP by User;
This may return row, where User is null but count is some number. How can I modify query so instead of empty(null) row I can see some string?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Normally, I’d suggest
coalesceto automatically morph null values to something else, but it appears MsAccess may not have this. You could trynzinstead:instead.
You may also find that it’s more efficient (this depends on your DBMS of course) to get rid of per-row functions altogether and
uniontwo separate queries, something like:But whether MsAccess allows this (or whether you care), I don’t know. I know it will most likely perform better on the main DBMS I use but you should always remember: measure, don’t guess!