Greetings!

I run the following query against MySQL:

SELECT
   demographic_no,
   first_name,
   last_name,
   chart_no,
   sex,
   year_of_birth,
   month_of_birth,
   date_of_birth,
   family_doctor,
   roster_status,
   patient_status,
   phone
FROM demographic
JOIN demographic ON allergies.demographic_no = demographic.demographic_no
JOIN drugs ON demographic.demographic_no = drugs.demographic_no
JOIN dxresearch ON drugs.demographic_no = dxresearch.demographic_no
JOIN echart ON dxresearch.demographic_no = echart.demographicNo
JOIN ichppccode ON dxresearch.dxresearch_no = ichppccode.ichppccode
WHERE allergies.description LIKE '%CARBACHOL%'

MySQL returns the following error:
Not unique table/alias: 'demographic'

What exactly is meant by this statement :( Thank you in advance!

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Business.Solution.Developers
emotionalize.conceptualize.visualize.realize
Landlines
Tel: +27125468436
Fax: +27125468436
Web
email:[EMAIL PROTECTED]
Global: www.volume4.com
Messenger
Yahoo!: v_olume4
AOL: v0lume4
MSN: [EMAIL PROTECTED]

We support OpenSource
Get Firefox!- The browser reloaded - http://www.mozilla.org/products/firefox/

This message contains information that is considered to be sensitive or 
confidential and may not be forwarded or disclosed to any other party without 
the permission of the sender. If you received this message in error, please 
notify me immediately so that I can correct and delete the original email. 
Thank you.



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to