1,306 views
0 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 ?

Please log in or register to answer this question.

Position:
Show:

Related questions

2 2 votes
1 1 answer
5.2k
5.2k views
Parshu gate asked Nov 6, 2017
5,218 views
0 0 votes
2 answers 2 answers
951
951 views
shikharV asked Dec 8, 2015
951 views
ABC52110NULL21523In the above relation T the output of query:select * from T group by B;ABC10NULL2521Can anyone explain why this is the output?
2 2 votes
2 2 answers
1.2k
1.2k views
Tendua asked Dec 4, 2015
1,201 views
How does group by works. ya it make groups of the data . and what i know it will group the data. what what i found on running on the online tutorials is that , the group ...
3 3 votes
1 1 answer
664
664 views
rahul sharma 5 asked Jan 6, 2017
664 views
I have a small doubt on order by clause usgae.I need to understand the position of null in case i order by ascending order or desending order,I referred http://docs.orac...