DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: SQL command

  1. #1
    Join Date
    Mar 2003
    Location
    MONTREAL
    Posts
    1

    Question SQL command

    Hi,

    I'm getting the following message:
    SQL command not properly ended

    Private Const SQL_COMMAND As String = "SELECT T.DIAG_ID, T.DIAG_FULL_DESC, D.DIAG_ID, D.DIAG_FULL_DESC, W.DOCTOR_WORDING FROM DIAGNOSIS_BRIDGE B, DIAGNOSIS_ICD10 T, DOCTOR_WORDING W, DIAGNOSIS D WHERE T.DIAG_ID = B.DIAG_ICD10_ID AND B.DIAG_ID = D.DIAG_ID AND D.DIAG_ID = W.DIAG_ID"

    The relationship: DIAGNOSIS_bridge diagnosis_ICD10 is a 1 to many realtionship and diagnosis doctor_wording the same.

    Thanks,

    Dalia

  2. #2
    Join Date
    Jan 2002
    Location
    Up s**t creek
    Posts
    1,525
    Not sure how your executing this command, but I think you need to terminate the statement with a ;

    eg

    Private Const SQL_COMMAND As String = "SELECT T.DIAG_ID, T.DIAG_FULL_DESC, D.DIAG_ID, D.DIAG_FULL_DESC, W.DOCTOR_WORDING FROM DIAGNOSIS_BRIDGE B, DIAGNOSIS_ICD10 T, DOCTOR_WORDING W, DIAGNOSIS D WHERE T.DIAG_ID = B.DIAG_ICD10_ID AND B.DIAG_ID = D.DIAG_ID AND D.DIAG_ID = W.DIAG_ID;"

    Regards
    Jim
    Oracle Certified Professional
    "Build your reputation by helping other people build theirs."

    "Sarcasm may be the lowest form of wit but its still funny"

    Click HERE to vist my website!

Posting Permissions

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


Click Here to Expand Forum to Full Width