Microsoft
Software
Hardware
Network
Question : Finding the oldest date from a set of max dates
I have a lot of history that I need to group by product. I take the most recent update date for each product, then I need to get the Oldest of those most recent dates.
So I start by grouping by product ID to get the most recent update date.
select product_id, max(updateDate)
from productChanges
where company_id = 123
group by product_id
Now I need to get the Oldest from that set of data so that I have one date for company 123
I have tried this but it's giving an error...
select min(theDate)
from (
select max(updateDate) as theDate
from productChanges
where company_id = 123
group by product_id
)
What's the correct syntax to get the oldest date from a set of max() dates?
Thanks!!!
Answer : Finding the oldest date from a set of max dates
You can use below code for the same.
Me.ReportViewer1.SetDispla
yMode(Disp
layMode.Pr
intLayout)
Random Solutions
Importing Calendar files into Excel (.ics > .xls)
OS X 10.6.4 and Flash Player Issues
CentOS 5.3: search keyword in array of logs: how?
Configuration Status error on TMG 2010 Enterprise
What is the best GUI for MySQLfor Windows and why?
java.lang.NoClassDefFoundE
rror: TestZone/java
RHEL command to do an LS and have the result stop until you hit the space bar
How to create bootable DVD from downloaded Windows Server EXE
VPN Disconnects
"Export Failed" in VB.Net and Crystal Reports 10