Tuesday, February 24, 2015

Getting Count For Duplicate Values And Distinct Value

Getting Count For Duplicate Values And Distinct Value?

STEP 1:-
create table t1(t1 VARCHAR2(5),C2 VARCHAR2(5),C3 VARCHAR2(5));
create table t2(t1 VARCHAR2(5),C2 VARCHAR2(5),C3 VARCHAR2(5),C4 VARCHAR2(10));

INSERT INTO t1 values('a','b','c'); 
INSERT INTO t1 values('a','b','c'); 
INSERT INTO t1 values('x','y','z'); 
INSERT INTO t1 values('x','y','z'); 
INSERT INTO t1 values('a','s','d'); 
INSERT INTO t1 values('z','x','c'); 
INSERT INTO t1 values('v','b','n'); 
INSERT INTO t1 values('v','b','n'); 
INSERT INTO t1 values('q','w','e'); 
INSERT INTO t1 values('x','c','v'); 
COMMIT;


STEP:2 








No comments:

Post a Comment

Data engineering Interview Questions

1)  What all challenges you have faced and how did you overcome from it? Ans:- Challenges Faced and Overcome As a hypothetical Spark develop...