I have a problem I need some help with. I have a table that keeps trades for the day:
TDate TTime Type Amount. The type is L for Long, S for short. Multiple trades occur each day. I want to summarize each day to a single record:
Date TradeCnt Longs Shorts Amount
My problem is how do I count the number of Long (L) trades and the number of Short (S) trades. Heres where I'm at:
SELECT TDate, count(TDate), ??Longs Shorts?? Sum(Amount) FROM tblTrade GROUP BY TDate
How do I do the Longs and shorts, thanks in advance !!
Tony
TDate TTime Type Amount. The type is L for Long, S for short. Multiple trades occur each day. I want to summarize each day to a single record:
Date TradeCnt Longs Shorts Amount
My problem is how do I count the number of Long (L) trades and the number of Short (S) trades. Heres where I'm at:
SELECT TDate, count(TDate), ??Longs Shorts?? Sum(Amount) FROM tblTrade GROUP BY TDate
How do I do the Longs and shorts, thanks in advance !!
Tony