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 7856559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:44:49+00:00 2026-06-02T20:44:49+00:00

Using phpMyAdmin 5.1.44 to experiment with DML commands. I’ve been following tutorials on-line. SELECT

  • 0

Using phpMyAdmin 5.1.44 to experiment with DML commands.

I’ve been following tutorials on-line.

SELECT book.b_isbn, publisher.p_name FROM 'book', 'publisher' WHERE book.b_title='DSA'

Table 1

book

b_id(PK)    b_isbn     b_title   p_id(FK)
-----------------------------------------
1           12345      DSA       1
2           23456      SD        1
3           34567      CSP       2

Table 2

publisher

p_id(PK)    p_name
--------------------
1           Fred
2           John

Expected Results

b_isbn      p_name
---------------------
12345       Fred

Actual Results

b_isbn      p_name
----------------------
12345       Fred
34567       John

Any ideas?

  • 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-06-02T20:44:51+00:00Added an answer on June 2, 2026 at 8:44 pm

    You need to tell MySQL how to join the tables together (without which it just matches every book to every publisher) – use any one of:

    1. add AND publisher.p_id = book.p_id to your WHERE clause;

    2. tell MySQL to join ON that condition / USING that column;

      ... FROM book JOIN publisher ON publisher.p_id = book.p_id WHERE ...
      

      or

      ... FROM book JOIN publisher USING (p_id) WHERE ...
      
    3. use a NATURAL JOIN to have MySQL guess that’s what you want based on the column names.

      ... FROM book NATURAL JOIN publisher WHERE ...
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using phpMyAdmin and running the following query I get 19 registers: SELECT * FROM
Need some guidance figuring out what went wrong. I've been using mysql, phpmyadmin for
how can I do the following points in mysql (possibly using phpmyadmin): 1) Given
Using PHPMyAdmin, I am trying to import a file via the following syntax... LOAD
I'm trying to run the following query using phpMyAdmin: UPDATE TABLE x SET `number`
I'm using phpMyAdmin to query the database. I want to select all the entries
I'm trying to create the following table using phpmyadmin sql console: CREATE TABLE dates
When using phpMyAdmin or the MySQL GUI Tools, whenever I create an InnoDB table,
I'm using PHPMyAdmin and I've got a MySQL table column called timestamp. The type
I am currently using PHPmyadmin to store data in my mySQL database. The android

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.