Retrieved data from latest date. (1 Viewer)

NurulScare

Member
Local time
Tomorrow, 01:53
Joined
Jan 6, 2021
Messages
31
Hi all, Good Morning!!

I need your advise guys.
I have 2 tables
1. Quantity In by date
2. Quantity out by date.
Result: Quantity balance by date.
The problem is: I want to check my Quantity balance by latest date. Example below:
1611190363755.png

Scenario: From this stock balance, I want to create another query to plan production Quantity. Formula (Quantity Balance - New Order Quantity)
So how to retrieve latest date (19/1/2021 as example above)?
Can someone please help meeee. Thanks!
 

cb1

New member
Local time
Today, 18:53
Joined
Jan 21, 2021
Messages
5
could you not use the max function?
 

cb1

New member
Local time
Today, 18:53
Joined
Jan 21, 2021
Messages
5
If I read your question properly it is as simple as below to get the latest date in a date/time.

select max([yourTable.dateField]) as LatestDate
from yourTable
 

NurulScare

Member
Local time
Tomorrow, 01:53
Joined
Jan 6, 2021
Messages
31
If I read your question properly it is as simple as below to get the latest date in a date/time.

select max([yourTable.dateField]) as LatestDate
from yourTable
Still all date appear even when I put it on criteria.
 

Users who are viewing this thread

Top Bottom