Forums Register Login

Problem doing inner select with MySql

+Pie Number of slices to send: Send
I have the following code, can somoene tell me what I did wrong? Thanks in advance.
Select ProfitLoss, Name, DatePosition
FROM interestprofit
Where Security = '13508754'
And TraderName = 'CAN'
GROUP BY TraderName, Security
Having DatePosition IN (Select DatePosition FROM interestprofit WHERE DatePosition = MAX(DatePosition))
+Pie Number of slices to send: Send
 

can somoene tell me what I did wrong?


Yes, you didn't tell us what the problem was.
+Pie Number of slices to send: Send
Haven't tried it but shouldn't it be:
+Pie Number of slices to send: Send
Yes, that would do it. Thanks

Originally posted by Jason Steele:
Haven't tried it but shouldn't it be:

 
No one can make you feel inferior without your consent - Eleanor Roosevelt. tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 822 times.
Similar Threads
Hibernate subquery
Need Help in JDBC-Ms access
Security manager
JDBC & Oracle
Looking for Study Material on -Security, Internalization and Messaging
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 22:04:05.