What is the datatype returned by count(*)
Answer Posted / lakshmi narayanan r
It will return INT. Proof is here...
SELECT COUNT(*) AS Total INTO tmpArchiveStoreMaster1 FROM
ArchiveStoreMaster asm
GO
sp_help tmpArchiveStoreMaster1
Name
Owner
Type
Created_datetime
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
------------------------------- -----------------------
tmpArchiveStoreMaster1
dbo
user table 2010-07-06
15:43:05.310
Column_name
Type
Computed Length
Prec Scale Nullable
TrimTrailingBlanks FixedLenNullInSource
Collation
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
----------------------------------- ----------- ----- -----
-----------------------------------
-----------------------------------
-----------------------------------
--------------------------------------------------------------------------------------------------------------------------------
Total
int
no 4
10 0 yes (n/a)
(n/a)
NULL
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What will be the maximum number of indexes per table?
Can coalesce return null?
What is difference between line feed ( ) and carriage return ( )?
What is de-normalization in sql database administration? Give examples?
Give me any three differences between Truncate and Delete.
What is a periodical index?
What are the types of ssrs?
define and explain the differences between clustered and non-clustered indexes.
What are triggers? How many triggers you can have on a table? How to invoke a trigger on demand?
What is instead of trigger sql server?
What are the new features are introduced in sql server 2012 reporting services?
Does transparent data encryption provide encryption when transmitting data across the network?
What is amo? : sql server analysis services, ssas
What is the difference between having clause and where clause in sql server?
What is attribute? : sql server analysis services, ssas