If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > I need help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-20-08, 08:39
yasser_2005 yasser_2005 is offline
Registered User
 
Join Date: Oct 2008
Posts: 3
I need help

I have 3 table

1- Table name : db fileds (dbase_id)PK - (dbase_name)

2- Table name : students fileds (student_id)PK - (student_name)


3- Table name : stud_db fileds (student_id) - (dbase_id) all are FK

I linked db table and students table with stud_db table

and i want to use Select statment to ensure what i did was right but every time i show all rows

select student_name , dbase_name from students , db where students.students_id = stud_db.student_id

please help

Last edited by yasser_2005; 10-20-08 at 08:48.
Reply With Quote
  #2 (permalink)  
Old 10-20-08, 09:51
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
You're question is a tad confusing, and your SQL is flawed...
Quote:
Originally Posted by yasser 2005
from students , db
Quote:
Originally Posted by yasser 2005
where students.students_id = stud_db.student_id
__________________
George
Twitter | Blog
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On