Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
Answered

How do you locate a PO in the SQL, what is the queries to check?

Posted on by 4,235

Hi Community,

I would like to locate PO in SQL and i wonder if you can help me to understand what are the SQL query I should be inputing.

Thank you!

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 70,124 Super User 2024 Season 2 on at
    RE: How do you locate a PO in the SQL, what is the queries to check?

    Hi, just to add a useful info

    https://www.w3schools.com/sql/sql_where.asp

    Hope this helps as well.

    Thanks.

    ZHU

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,025 Moderator on at
    RE: How do you locate a PO in the SQL, what is the queries to check?

    Hi,

    You can add one more filter with No.

    SELECT *

    FROM [Document No_]

    where [Document Type] = 1 and [No_] ='YourPONohere'

  • joshtechsolutions Profile Picture
    joshtechsolutions 4,235 on at
    RE: How do you locate a PO in the SQL, what is the queries to check?

    Thanks Nitin, what if I only wants to select one  purchase Order?

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,025 Moderator on at
    RE: How do you locate a PO in the SQL, what is the queries to check?

    Hi,

    You can use below

    SELECT *

     FROM YourTablenamehere

     where [Document Type] = 1;

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,564 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,651 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans