828 views
2 2 votes
1. Can WHERE clause be used with aggregate functions ?

2. DISTINCT operates on a single column. DISTINCT for multiple columns is not supported. [T/F]

1 Answer

0 0 votes
1. its true but only if we are using it in subqueries.

2. False because if u want distinct columns then u should use in group by clause rather using distinct.
edited by
Position:
Show:

Related questions

0 0 votes
0 0 answers
210
210 views
js__ asked Nov 24, 2025
210 views
Should we answer according to the latest version which is in real life practical or stick to the old versions in standard text books ? @Deepak Poonia @Sachin Mittal 1 Que...
0 0 votes
0 0 answers
1.7k
1.7k views
kd..... asked Apr 30, 2019
1,733 views
Here why does the 5th query select * from employees natural join works_on where PID = 'X' AND PID='Y'; is not workingThe queries are The output are
0 0 votes
1 1 answer
498
498 views
Satbir asked Dec 4, 2018
498 views
please give an example to differentiate between self join , natural join and join operation.
0 0 votes
1 1 answer
857
857 views
Shamim Ahmed asked Nov 12, 2018
857 views
In this question:-https://gateoverflow.in/8225/gate2015-1-27I am not understanding how the query is returning 2 .I think DISTINCT must be there to give the correct answer...