Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Join RM10201 and RM00101

(0) ShareShare
ReportReport
Posted on by 3,015

Can someone help me write a SIMPLE query that joins these two tables on CUSTNMBR? I've asked for help with queries in the past (which I am so thankful for) but I can't make heads or tails of where the JOIN is occurring. I guess I just need the basics.

I need this data specifically:

RM10201

-DOCDATE

-ORTRXAMT

-CURTRXAM

RM00101

-CUSTNAME

Thanks!

*This post is locked for comments

  • Verified answer
    Tristan Clores Profile Picture
    2,812 on at
    RE: Join RM10201 and RM00101

    Hi,

    Much like Sanyays' script, but now using the RM20101 and RM10201:

    SELECT     dbo.RM20101.DOCDATE, dbo.RM20101.ORTRXAMT, dbo.RM20101.CURTRXAM, dbo.RM10201.CUSTNMBR

    FROM         dbo.RM10201 with (nolock) INNER JOIN

                        dbo.RM20101 with (nolock) ON dbo.RM10201.CUSTNMBR = dbo.RM20101.CUSTNMBR

    Let me know if you have further questions.

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Join RM10201 and RM00101

    SELECT     dbo.RM20101.DOCDATE, dbo.RM20101.ORTRXAMT, dbo.RM20101.CURTRXAM, dbo.RM00101.CUSTNAME

    FROM         dbo.RM00101 with (nolock) INNER JOIN

                         dbo.RM20101 with (nolock) ON dbo.RM00101.CUSTNMBR = dbo.RM20101.CUSTNMBR

    Cheers!

    Sanjay

  • painterisaac Profile Picture
    3,015 on at
    RE: Join RM10201 and RM00101

    I'm sorry. I meant RM20101, not RM10201. Thank you.

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics

Product updates

Dynamics 365 release plans