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

inner join maybe

New Here ,
Dec 17, 2006 Dec 17, 2006

Copy link to clipboard

Copied

hi i have the query below which is getting info from 2 tables, think there is a conflict as i need to show in my output

#CODE##PlayerPhone#

this should format like 6144444444

but i am getting 616144444444

do i need a inner join or something?

if so how would i do this

many thanks

Keith
TOPICS
Advanced techniques

Views

273

Translate

Translate

Report

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 ,
Dec 17, 2006 Dec 17, 2006

Copy link to clipboard

Copied

In the select clause of your query, either don't qualify the unambiguous field names at all, or give them alias names. Then cfdump your query so you get a better idea of what is happening.

Votes

Translate

Translate

Report

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
New Here ,
Dec 17, 2006 Dec 17, 2006

Copy link to clipboard

Copied

how do i do a cfdump of this query? and what u mean by ambiguous?

Votes

Translate

Translate

Report

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 ,
Dec 17, 2006 Dec 17, 2006

Copy link to clipboard

Copied

Read the cfml reference manual for cfdump. If you don't have one, google <cfdump>, you'll find it.

By unambiguous, I meant that the field exists in only one of the tables from which you are selecting in your query.

Votes

Translate

Translate

Report

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
New Here ,
Dec 18, 2006 Dec 18, 2006

Copy link to clipboard

Copied

LATEST
ok sorted it thank you

Votes

Translate

Translate

Report

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
Documentation