MySQL

Moderators: Jonathan
Number of threads: 266
Number of posts: 525

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
MySQL probs Posted by Luminarium on 14 Feb 2011 at 8:04 AM
Hi guy's, i just want to know how can i figure out my problem in regards to database designing.

here's the problem, i have created a table that contains basic information about a certain client,
i named the table "r_info", next i created another table that contains the information about a
certaing customer's scheduling for an event or something in similar, i named it "r_schedule_listing".

Next i added two client informations on my "r_info" table

id Name last_name
1 Test1 TestX
2 Test2 TextZ

then i added a certaing scheduled event for customer id "1"

sched_id event_name
1 Swimming

now here's where the problem starts, once i tried a queried approach,
so that i could view only the data's i need, filtered on two different tables!

here's what happen

id Name last_name sched_id event nane
1 Test1 TestX 1 Swimming
2 Test2 TextZ1 1 Swimming

see?, my entry for the "r_schedule_listing" table was just duplicated when i tried to query it and matched the id's to the "r_info" table.

so what do you guys think?? hope you could help me out in here

tools i use:
MySQL 5.3 (database)
MySQL Workbench 5.2 CE (database designing)
phpMyAdmin (web-based database administrator)

thanks, hope someone helps me on this :'(



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.