select count(1) from emp? what is the o/p?
Answers were Sorted based on User's Feedback
Answer / chandu
count(1) means it will count based on 1st column in the
select statement
| Is This Answer Correct ? | 14 Yes | 1 No |
Answer / munni
count(1) will give the count of the numbr of records in the
table. count(1) is faster than count(*) since the count is
not based on all the fields.
| Is This Answer Correct ? | 13 Yes | 1 No |
Answer / moorthy g
select count(1) from emp;
Count(1):
14
It will display how many records in emp table
Total 14 Records are there in my table.
Correct If I'm wrong
Regards,
Moorthy
| Is This Answer Correct ? | 11 Yes | 2 No |
Answer / ankur saini er.ankur861@gmail.
count(1) means it will count based on the first columnin
the table ..say first column is a_id and data ia
a_id a_nm
1 a
2 b
3 c
4 d
? e
so here count(1) will be =4 where as count(*) =5
so count(1) give the count for column 1 excluding nulls
| Is This Answer Correct ? | 0 Yes | 1 No |
What is the use of transformation?
how to get the first row without using rank t/r?
What is Performance tuning in Informatica?
What is a filter transformation and why it is an active one?
What are the types of presistent cache in look up tr.
What is the exact difference b/w IN and EXIST in Oracle..?
In What Situations we can use MappingParameters ,Mapping Variables AND Session Parameters in REAL TIME.
how can i invoke pmcmd in command line prompt
What is dynamic cache?
Can we use Union Transformation for Heterogeneous sources? i.e; 3 sources, 1 from Oracle, 2nd from Informix, 3rd from Sql Server with same metadata?
In Real Time what are the scenarios u faced, what r the tough situations u have overcome, and explain about sessions.
2 Answers Cap Gemini, CTS, TCS, Tech Mahindra, Wipro,
How to extract the informatica rejected data?