adspace


Explain the cube operator?

Answer Posted / Abhishek Swaroop

The CUBE operator in SQL creates a cross product of all possible groupings of columns in a query's result set, including all single-column groupings. It is similar to the GROUP BY operator but generates more rows by aggregating data across multiple dimensions. The resulting table has one row for each unique combination of grouped values.nnFor example:n```sqlnSELECT department, job_title, COUNT(*) FROM employees GROUP BY CUBE (department, job_title);```

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi , any one can help me on the same,this is regarding the Informatica Function doc,i want to know how developer is will develop the mapping. pl forwar the any function doc .just for my references. svlc75@yahoo.co.in

2106