I've MYSQL Query and working fine The QUERY IS:
select tst_type, count(tst_type) tot from tst_type where project='JupiQA';
The above Query returns single record If I'm adding GROUP BY tst_type
in this query it returns multiple values.
The Query I tried in MSSQL without GROUP BY tst_type
,its showing Error
ERROR IS: Column 'tst_type.tst_type' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
After that added GROUP BY tst_type
in MSSQL query,then working fine and returns multiple value.
But my requirement is it should return same as MYSQL without adding GROUP BY fn OR should return single value like MYSQL