Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

select another column in same table in CF query

Guest
Mar 17, 2010 Mar 17, 2010

Hello..

I'm curious as to the best way to run this query..

When my CF template page loads I would like it to grab a number value in one column and match it up to the table ID in the same table and display the name for that ID.

Do I have to make another table to do this...? QoQ's?

Thanks!

306
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 17, 2010 Mar 17, 2010

The question is not clear.  Could you show some sample data and describe the desired result?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 17, 2010 Mar 17, 2010

Hi Dan..

Sorry I wasnt clearer.. here is a picture.

Thanks for the help!

ct.gif

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 17, 2010 Mar 17, 2010
LATEST

select t2.name

from yourtable t1 join yourtable t2 on t1.primarykeyfield = t2.otherfield

etc

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources