Hello
try these queries to get the result you want. They work with SQL Server and Ms Access though, so modify them is you are using another RDBM.
SQL Server:
Code:
SELECT Date, Particulars,
(CASE
WHEN Money < 0 THEN 0
ELSE Money
END) AS [In],
(CASE
WHEN Money >= 0 THEN 0
ELSE Money
END) AS [Out]
FROM YourTableName
!! IN is a reserve word in SQL Server and must be enclosed in braces.
Ms Access:
Code:
SELECT Date, Particulars,
IIf([Money]>=0,[Money],0) AS [In],
IIf([Money]<0,[Money],0) AS Out
FROM YourTableName;
cheers,
psychadelic