Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. innerjoin problem in sql query

innerjoin problem in sql query

Scheduled Pinned Locked Moved Web Development
databasehelpsysadmintoolsannouncement
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rajiv_kadam
    wrote on last edited by
    #1

    i m displaying records from database in which id of first table and second table should be same so i used inner join but it gives error of type rs mismatch when i display that please help me i m using ASP script. datatype of news_id is autonumber and newsid datatype is number <% OpenDataBase conn sql3="select * from news inner join newsimage on news.news_id =newsimage.newsid" set rs=server.createobject("adodb.recordset") rs.open sql3,conn,1,1 response.Write (rs("news_titile")) %>

    T 1 Reply Last reply
    0
    • R rajiv_kadam

      i m displaying records from database in which id of first table and second table should be same so i used inner join but it gives error of type rs mismatch when i display that please help me i m using ASP script. datatype of news_id is autonumber and newsid datatype is number <% OpenDataBase conn sql3="select * from news inner join newsimage on news.news_id =newsimage.newsid" set rs=server.createobject("adodb.recordset") rs.open sql3,conn,1,1 response.Write (rs("news_titile")) %>

      T Offline
      T Offline
      thatraja
      wrote on last edited by
      #2

      can you show us the table structures for easy understand? but i just now noticed a wrong thing in your code but not sure.

      response.Write (rs("news_titile"))

      may be the field name will be incorrect, it should be news_title
      let me know the status

      thatraja


      Tips/Tricks|Brainbench certifications

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups