| Author |
assistance with a subselect query
|
Dave Bosky
Ranch Hand
Joined: Dec 16, 2003
Posts: 72
|
|
How can I lookup the 'dept_name' each 'parent_order_id' when performing a select query? Will I need to use to use two select queries? tbl_dept -------------------------------------- int PK NOT NULL dept_id int NULL parent_dept_id char (25) NOT NULL dept_name char (25) NOT NULL dept_location -------------------------------------- Regards, Dave
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26496
|
|
Dave, Where is parent order id? In another table? If so, you can do a join.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
 |
|
|
subject: assistance with a subselect query
|
|
|