on 12-06-2011 3:08 AM
Dear all,
I have date filed in Universe- DATAB(field) name stroing the data like 01.01.2010, 02.03.2010,20.10.2011, need to write one logic to get the Latest Date (20.10.2011),please any one help me to get the correct SQL logic.
Regards,
Kavitha.
Hi Kavitha
create a duplicate object
in that select filed add your dataB field and in where condition dataB=max(dataB)
Hope this helps u
Sunil
Edited by: K.sunil on Dec 6, 2011 8:10 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kavitha,
Please use maxdate SQL function . what database using to your universe?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.