baijuep (9/7/2014)
Sir, i tried the second query and it gives following error
Msg 8120, Level 16, State 1, Line 1
Column 'Trade.Trade' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
I'm sure that if you know the basics of SQL, you should be able to add the missing GROUP BY clause that I missed. 😉