A tricky query problem

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default A tricky query problem

    what i am trying to do is
    1. let a user decide which language they want
    2. pull the apropriate information fom a few different tables

    project background: a multilingual hospital guide for non Japanese residents
    here in Sapporo, Japan.
    so i have each hospital and its information and then the languages doctors can
    speak at each hospital.
    What i want the user to be able to do is choose which language they want and
    the query will pull out the hospitals which match this query .
    at the moment i have different tables for each language and a -1 or 0 next to
    each listed hospital depending on whether they have a doctor that speaks the
    language.

    I hope you all know what i mean. I can get a simple query working but not for
    the advanced version

    so far i have

    select hospital_name
    from English_Language, Spanish_Language
    where (here im stuck)


    quiero mas Guest

  2. Similar Questions and Discussions

    1. Query on Query and CF casting problem
      I am using a custom tag in MX7 that was working fine in 5 that renders a table. The input to the custom tag is a query and it's columns along with...
    2. Tricky SOAP input problem; need help with cfinvokesyntax
      Notes on Interfacing CFMX to External Web Services Requiring Complex-Within-Complex XML Documents as Input Authors: Doug James (jamesd@musc.edu)...
    3. Tricky problem with WebControl vs. Panel
      I have built a class derived from WebControl, and added somespecific functionality to it..Then I built a set of web controlsbased on that...
    4. Tricky problem with classes!
      Problem: I try to store data in a objects field and read it out again. Sounds easy, yeah. But its a bit tricky here.... ;-) This is the class...
    5. tricky disable button problem
      Ok, I need to know a little actionscript and hope you will be able to help - I have always found replies here. I have my main movie with home,...
  3. #2

    Default Re: A tricky query problem

    My approach would be to have 3 relevent tables, languages, hospitals and
    languages_hospitals. The last one would have a many to many relationship with
    the other two.

    Then the query would no longer be tricky.

    Originally posted by: quiero mas
    what i am trying to do is
    1. let a user decide which language they want
    2. pull the apropriate information fom a few different tables

    project background: a multilingual hospital guide for non Japanese residents
    here in Sapporo, Japan.
    so i have each hospital and its information and then the languages doctors can
    speak at each hospital.
    What i want the user to be able to do is choose which language they want and
    the query will pull out the hospitals which match this query .
    at the moment i have different tables for each language and a -1 or 0 next to
    each listed hospital depending on whether they have a doctor that speaks the
    language.

    I hope you all know what i mean. I can get a simple query working but not for
    the advanced version

    so far i have

    select hospital_name
    from English_Language, Spanish_Language
    where (here im stuck)




    Dan Bracuk Guest

  4. #3

    Default Re: A tricky query problem

    As always Dan... thanks for the help
    i ll give it a try

    Ta
    quiero mas Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139