Go Back   CodingForums.com > :: Server side development > MySQL

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-12-2005, 02:21 AM   PM User | #1
lukeurtnowski
New to the CF scene

 
Join Date: Jun 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
lukeurtnowski is an unknown quantity at this point
help!

OK Here's what I have. 2 Tables, the first table (COMPANY) holds data for companies and its primary key is C_ID) The second table (ACTIVITY) which holds activities and has a primary key of A_I*D and a foreign key named C_NUMBER which references the other tables primary key (C_ID). I'm trying to perform a search by company name (Which I have working well) I'm also trying to search by a certain activity date which should return all the activities scheduled on that date, along with their coresponding companies. Can you help me develop a sql query that would return the activity date (A_DATE) along with its C_NUMBER so I can put this info into a tabular format, so it could be read on the next page?

Thanks and sorry my explanation is so long.
lukeurtnowski is offline   Reply With Quote
Old 06-12-2005, 02:34 AM   PM User | #2
Kid Charming
Regular Coder

 
Join Date: Jun 2005
Posts: 804
Thanks: 0
Thanked 0 Times in 0 Posts
Kid Charming is an unknown quantity at this point
I don't think I understand exactly what you're asking for -- do you want a list of all activity dates and their c_numbers, or a list of all activities and their companies for a specific date?
Kid Charming is offline   Reply With Quote
Old 06-12-2005, 11:39 AM   PM User | #3
Crake
Regular Coder

 
Crake's Avatar
 
Join Date: Dec 2004
Location: Loose, Maidstone, KENT
Posts: 577
Thanks: 0
Thanked 3 Times in 3 Posts
Crake is an unknown quantity at this point
please change your thread title a little bit more according to the kind of help you need

also

HELP!

is a little demanding dont you think

good luck with the help you need
__________________
SteveO
Crake is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:34 AM.


Advertisement
Log in to turn off these ads.