Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7017299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:53:46+00:00 2026-05-27T22:53:46+00:00

I know there are tools available to rectify this, but somehow i cannot make

  • 0

I know there are tools available to rectify this, but somehow i cannot make out the mistake(s) that disallowed the retrieval of records, despite 2 hours of trying and referencing.

Can anyone help me with this? Im using VS 2008 btw.

SELECT pc.product_category_id, pc.product_category_name,
       pi.product_image_id, pi.product_image_filename, 
       qr.qrcode_id, qr.qrcode_code, *
FROM Product AS p
INNER JOIN ProductCategory AS pc ON p.product_category_id = pc.product_category_id
INNER JOIN ProductImage AS pi ON p.product_image_id = pi.product_image_id
INNER JOIN  QRCode AS qr ON p.qrcode_id = qr.qrcode_id
WHERE p.product_id = '" & DropDownList2.Text & "'"
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T22:53:47+00:00Added an answer on May 27, 2026 at 10:53 pm

    First, manually check that the record you want to acquire and join exists…

    SELECT * FROM Product WHERE product_id = <insert a value here by hand>
    
    SELECT * FROM ProductCategory WHERE product_category_id = <value from the first SELECT>
    
    SELECT * FROM ProductImage WHERE product_image_id = <value from the first SELECT>
    
    SELECT * FROM QRCode WHERE qrcode_id = <value from the first SELECT>
    

    If you get records for all of these, than you can be sure your joins are working. If not, are you missing records, or need to use LEFT JOINs?

    So your next check should be that you’re passing the correct value to your SQL query…

    myCmd.CommandText = "SELECT '" & DropDownList2.Text & "'"
    

    Are you also sure that you need ' around the ID? this indicates strings, and IDs are more normally integers.

    Finally, look at parameterised queries, rather than building up the string manually.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What tools are out there that compete with this product? CodeKana I know ReSharper
I know there are tools out there that will let you see the content
I know there are many JS/CSS minification tools out there, but I'm looking for
What tools are there available for static analysis against C# code? I know about
I would like to know if there are any tools that can help me
I am interested in static analysis tools that are out there. Or rather the
I know that I can use WinDbg+PageHeap+ApplicationVerifier - Microsoft tools. I read there are
I am doing some Java application instrumentation. But the available instrumentation tools that use
I know there are quite a few line count tools around. Is there something
I know there has been previous talk on here about screencasting tools/apps, however I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.