How To SELECT Combine Unique Data COUNT DISTINCT Oracle Database Tutorial Example
Run Query Editor then copy & paste the below code to count number of combine unique data or rows by using SELECT COUNT DISTINCT keyword from a table in Oracle Database Server Tutorial Example
-- CONNECT AS HR -- Let's count how many combine unique DEPARTMENT and SALARY data in HR.EMPLOYEES table SELECT COUNT(1) FROM ( SELECT DISTINCT DEPARTMENT_ID,SALARY FROM EMPLOYEES );
-- That's it!! DISTINCT(Unique) Combine DEPARTMENT and SALARY data count has been selected in oracle database
-- is comment in Oracle
-- in fact it is comment in MSSQL and MySQL as well

No comments:
Post a Comment
leave your comments here..