web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to select multiple columns by joining tables

(0) ShareShare
ReportReport
Posted on by

Hi all , 

I have created the below pasted Query to join three tables ..

I don't if it is correct . when I am executing , it is giving me a Syntax Error . Please Let me know if some thing is wrong there  ? 

select forupdate ( empltbl.EmplId,empltbl.DEL_Name,empE.FirstName
,empE.LastName,DAR.Email,empltbl.DEL_Phone,empltbl.Designation,empltbl.BirthDate ) from EmplTable empltbl JOIN EmplTable.emplId ON Employee.empId
where empltbl.EmplId == empE.EmpId && empltbl.EmplID > 1000 && empltbl.EmpId < = 2000 ;

regards , 

Nishath Salman N.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Florian Hopfner Profile Picture
    2,461 on at

    While similar, the syntax of select statements in SQL and X++ are not the same. Take a look at Select Statement Syntax, your select statement does not follow that syntax.

  • Suggested answer
    Nasheet Siddiqui Profile Picture
    440 on at

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans