0 votes 0 votes If aggregate functions are used in the select clause along with attribute list we must use group by clause for grouping the attribute values ? SELECT a1, COUNT(*) FROM Employee Is above query right or wrong ? Databases sql databases + – vishal burnwal asked Aug 22, 2018 vishal burnwal 759 views answer comment Share Follow See all 6 Comments See all 6 6 Comments reply Show 3 previous comments srestha commented Aug 23, 2018 reply Follow Share count doesnot need group by even having also doesnot need group by every time right? 0 votes 0 votes Shaik Masthan commented Aug 24, 2018 reply Follow Share but in this example he used attribute in select clause, therefore it must required groupby clause if there is no attribute used in select clause, then your statements are true 0 votes 0 votes Mk Utkarsh commented Aug 24, 2018 reply Follow Share This query will ouput 1'st value of a1 along with number of rows in relation which are not null. 0 votes 0 votes Please log in or register to add a comment.