Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the datatype returned by count(*)

Answers were Sorted based on User's Feedback



What is the datatype returned by count(*)..

Answer / krishna

int data type

Is This Answer Correct ?    4 Yes 1 No

What is the datatype returned by count(*)..

Answer / harsh

SELECT COUNT(*) as "Number of employees"
FROM employees
WHERE salary > 55000;

It would return the following result set:
Number of employees
5
HENCE IT RETURNS 'INT' TYPE.

Is This Answer Correct ?    3 Yes 0 No

What is the datatype returned by count(*)..

Answer / sanjeev kumar

It will return Int or Bigint depend on the size of the row.
(But both are same)

Is This Answer Correct ?    2 Yes 0 No

What is the datatype returned by count(*)..

Answer / sujatha_k

number data type is return.

Is This Answer Correct ?    1 Yes 0 No

What is the datatype returned by count(*)..

Answer / thirumal

count(*) returns the total number of not null values in
given column

Is This Answer Correct ?    3 Yes 3 No

What is the datatype returned by count(*)..

Answer / amar_chhatwani

ir returned Int datadtpe

Is This Answer Correct ?    2 Yes 2 No

What is the datatype returned by count(*)..

Answer / 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

What is the datatype returned by count(*)..

Answer / vikneswaran

number

Is This Answer Correct ?    0 Yes 1 No

What is the datatype returned by count(*)..

Answer / haribabu

it returns how meny columns in the data table (or)
how meny records in the table

Is This Answer Correct ?    1 Yes 4 No

What is the datatype returned by count(*)..

Answer / server.getlasterror().message

Server.GetLastError().Message

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More SQL Server Interview Questions

How do we get month name in SQL Server 2000, Oracle, MS Access?

11 Answers  


Explain syntax for viewing, dropping and disabling triggers?

0 Answers  


How to delete a database in ms sql server?

0 Answers  


How do you find the number of rows in a table?

7 Answers  


What is difference between view and materialized view?

0 Answers  


Benefits of Stored Procedures?

0 Answers   Wipro,


What are the magic tables in SQL Server 2000?

7 Answers   Infogain, Merrill Lynch,


How do I create a trace in sql server?

0 Answers  


What is the fastest way to permanently delete a 1 million row table named customers?

0 Answers  


How to modify an existing stored procedure in ms sql server?

0 Answers  


What is a cube? : sql server analysis services, ssas

0 Answers  


How to edit table in sql server 2017?

0 Answers  


Categories