Query for language

For users or potential users.
Post Reply
valoo
Posts: 7
Joined: Tue Nov 01, 2011 10:46 pm

Query for language

Post by valoo » Tue Nov 01, 2011 11:11 pm

I need to have a query for the languages used by patients eg. a list of patients that speak english, another list for patients that speak chinese. Does anyone know what is the query for it?
Tried SELECT patient.LName FROM patient WHERE patient.language = 'English'
Didn't seem to work. Can any one tell me where I went wrong?

Thanks

drtmz
Posts: 84
Joined: Thu May 29, 2008 4:27 pm

Re: Query for language

Post by drtmz » Wed Nov 02, 2011 3:25 am

Try this:

SELECT Language, COUNT(*)
FROM patient
GROUP BY Language

Modified from another query.

drtmz

valoo
Posts: 7
Joined: Tue Nov 01, 2011 10:46 pm

Re: Query for language

Post by valoo » Wed Nov 02, 2011 7:19 pm

Thanks... modified it again to show me the whole list
SELECT patient.LName,patient.WirelessPhone,patient.language FROM patient

anyway to sort it by language?

drtmz
Posts: 84
Joined: Thu May 29, 2008 4:27 pm

Re: Query for language

Post by drtmz » Fri Nov 04, 2011 3:49 pm

Try this:

SELECT Language, COUNT(*)
FROM patient
GROUP BY Language
ORDER by Language;

drtmz

Post Reply