PhatMackn02
MIS
Hello, I am attempting to retrieve the most recent row or the most recent date in a query, I have used this custom SQL code and for some reason still retrieve a an extra row (Unique rows are not the matter):
Ps_Stdnt_Fa_Term.Effdt = (SELECT MAX(C_Date.Effdt) FROM Ps_Stdnt_Fa_Term C_Date WHERE Ps_Stdnt_Fa_Term.Effdt = C_Date.Effdt AND Ps_Stdnt_Fa_Term.INSTITUTION = C_Date.INSTITUTION
AND Ps_Stdnt_Fa_Term.Strm = C_Date.Strm)
Ps_Stdnt_Fa_Term.Effdt = (SELECT MAX(C_Date.Effdt) FROM Ps_Stdnt_Fa_Term C_Date WHERE Ps_Stdnt_Fa_Term.Effdt = C_Date.Effdt AND Ps_Stdnt_Fa_Term.INSTITUTION = C_Date.INSTITUTION
AND Ps_Stdnt_Fa_Term.Strm = C_Date.Strm)