Skip to main content
Inspiring
April 15, 2010
Answered

SQL query problem

  • April 15, 2010
  • 1 reply
  • 475 views

Using my query below, is there a way where the servicearea and location is the same it is only shown once?

SELECT     *
FROM        medicaldevices, location, servicearea
WHERE
medicaldevices.devicelocation=location.locationid
and
medicaldevices.deviceservice=servicearea.serviceareaid

Thanks guys

This topic has been closed for replies.
Correct answer Dan_Bracuk

instead of select *, select just the fields you intend to use.

Also, use select distinct

1 reply

Dan_BracukCorrect answer
Inspiring
April 15, 2010

instead of select *, select just the fields you intend to use.

Also, use select distinct