Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Query returning 0 for values

(0) ShareShare
ReportReport
Posted on by 65

Query-returns-0-part-2.png

My current problem is I'm getting back a 0 from values that you can tell from the image are obviously in the database tables.

From what I've seen in the relations the link between my table PdsBatchAttributes and VMVinInfo is VMVinInfo.VINNumber to PdsBatchAttributes.InventBatchId.

Upon receiving zeros, to double check this, I went and grabbed the value from the pds table and inserted it into the VINumber field on VMVinInfo. I found a matching record as you can see in the image.

I then went to the VIN dashboard to make sure the value 'FRU00001H718' being sent would be picked up by VMVinInfo AND pdsBatch but I'm getting 0's

I have two instances of the SalesTable (slsTable & salesTable).

The current instance I'm using for this particular query is salesTable. 

P.S. I also recently used another solution provided through a similar question I asked. Outer joins and re-adding queries helped me solve the problem. I am no closer to retrieving that data I obviously see though. But I will link it in case it helps anyone solve this problem or for a less experienced developer in the future. SQL query returning 0's

  • Suggested answer
    JGjinx321 Profile Picture
    JGjinx321 65 on at
    RE: Query returning 0 for values

    Decided to just use an already existing instance to sub in for the value of vinInfo and it worked well enough

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans