Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Join RM10201 and RM00101

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
    Tristan Clores 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
    Community Member Microsoft Employee 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
    painterisaac 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans