Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Other Programming (https://www.askmehelpdesk.com/forumdisplay.php?f=437)
-   -   Error in tables (https://www.askmehelpdesk.com/showthread.php?t=34144)

  • Sep 14, 2006, 12:40 AM
    fawwad
    error in tables
    table1 product pk is productID
    table2 problems pk is problemID
    table3 severity pk is severityId
    table4 users pk is userID
    when I used in vb.net then message is
    incorrect syntes near inner

    Const sSelect As String = "select problems.problemID," & "problems.reportedon," & "users.userName,prduct.productName,problems.versio n," & "severity.severityName,problems.description,proble ms.steps" & "from severity inner join(product inner join" & "(users inner join problems on" & "users.userID=problems.userID)on product.productID=" & "problems.productID)on " & " severity.severityID=problems.severityID"& "order by problems.problemID"
  • Sep 14, 2006, 05:33 AM
    ScottGem
    What database are you using as your back end? The problem is your inner joins aren't resolved properly.

    What I suggest you do is test out the query in whatever database environment you are using, then copy the SQL into your code. BTW, there is no need to concatenate in bits and pieces like that. Just use one string.

  • All times are GMT -7. The time now is 12:00 AM.