Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

display results from two tables

Explorer ,
Oct 16, 2008 Oct 16, 2008

Copy link to clipboard

Copied

Hello,

I have two tables, PRODUCTS and MANUFACTURERS
I can show the results of all the products passing a querystring in the url stating the product category. not a problem.

but now, I do I show the results from both tables: PRODUCTS and MANUFACTURERS where the query string should be the manufacturer name.

the two tables have this foreign key:

PRODUCTS >> manufacturerid
MANUFACTURERS>> manufacturerid

other related fields of the tables:

PRODUCTS>> prodimage, price, description
MANUFACTURERS>> manufacturer name

and the query string should be the manufacturer name, which is not hte manufacturer id.

Mauricio
??
TOPICS
Server side applications

Views

177
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 17, 2008 Oct 17, 2008

Copy link to clipboard

Copied

LATEST
Look up information on "INNER JOINS"

Select P.manufacturerid, P.price, P.description, M.manufacturerid
From PRODUCTS P INNER JOIN M.manufacturerid ON P.manufacturerid =
M.manufacturerid

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines