Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

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

(0) ShareShare
ReportReport
Posted on by 4,376

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 74,036 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,091 Super User 2024 Season 1 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,376 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,091 Super User 2024 Season 1 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

News and Announcements

Announcing Category Subscriptions!

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans