Hi friends,
I have a table named Record with three column :
ID int pk
Tone int
Duration int
IsIncomming bit
i want to select sum of duration of records with IsIncomming=1 And records with IsIncomming=0 as one result ( one row with 2 columns ),how can i do this ?
SELECT Tone,SUM(Duration) FROM Record Group By Tone Where IsIncomming=1
above TSQL command return just records with isIncomming=1 but i need to select both in a row
Thanks