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 > Searching

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-19-07, 15:13
CrazyTn CrazyTn is offline
Registered User
 
Join Date: May 2007
Posts: 24
Searching

Hi,

I have a table workorder and a table category.

workorder.category (String) which holds the name of the category.
category.department (String) the department the category belongs to.

If given a department name, is there an easy way to filter all the workorder that has that department?
workorder holds the category name, and category holds the department name. I am not sure how to link these two tables together to do this search.
Reply With Quote
  #2 (permalink)  
Old 06-19-07, 16:05
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
You don't know how to write a JOIN? Can't you just join the Category columns of both tables?
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
  #3 (permalink)  
Old 06-19-07, 19:39
CrazyTn CrazyTn is offline
Registered User
 
Join Date: May 2007
Posts: 24
At first I though a join wasn't what I was looking for, but figured it out. Was quite easy
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