web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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

I have the same question (0)
  • Suggested answer
    JGjinx321 Profile Picture
    65 on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 514 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 390

#3
Adis Profile Picture

Adis 266 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans