1. Home
  2. Computing & Technology
  3. Databases
photo of Mike Chapple
Mike's Databases Blog

By Mike Chapple, About.com Guide to Databases since 2000

Joining of Three Tables

Monday December 15, 2003
In a recent forum posting, KimDim asks:

"I am trying to write an SQL query and need to join three tables - XXXXXX.DISC_HIST_P , XXXXXX.DISC_HIST, XXXXXX.USSL_ERATE_ACCUM. The problem I am having is when joining the combination of the first two tables to the third table. I am joining the combination table and third table on the shared USSL_FED_REQ_B field.

There is a one to many relationship between these two tables with the unique USSL_FED_REQ_B on the third table being identified by the combination of this field and a version number. When I do the join it must be on the USSL_FED_REQ_B that has the MAX version number. How can I do this within one SQL query?"

Can you help KimDim? Stop by our forum and post your reply.

Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Explore Databases
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Databases

©2009 About.com, a part of The New York Times Company.

All rights reserved.