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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,280 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,034 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans