| empid ename course |
| 1104 abc btech |
1105 cde java
| 11 05 cde inter | |||
| 1106 efg dotnet |
| empid ename course |
| 1104 abc btech |
| 11 05 cde inter | |||
| 1106 efg dotnet |
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Jan 21, 2015, 5:41 PM EST
Create TABLE #LocalTempTable(
empid int,
ename varchar(50),
course varchar(150))
insert into #LocalTempTable values ( 1104, 'abc','xyz');
insert into #LocalTempTable values ( 1104, 'abc','xyz');
insert into #LocalTempTable values ( 1104, 'abc','xyz');
insert into #LocalTempTable values ( 1105, 'abc','xyz');
insert into #LocalTempTable values ( 1106, 'abc','xyz');
insert into #LocalTempTable values ( 1105, 'abc','xyz');
insert into #LocalTempTable values ( 1106, 'abc','xyz');
insert into #LocalTempTable values ( 1107, 'abc','xyz');
insert into #LocalTempTable values ( 1108, 'abc','xyz');
SELECT COUNT(DISTINCT empid) FROM #LocalTempTable;
Swapna Chanda12 reputationPosted Jan 21, 2015, 5:55 PM EST