Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Distinct Count? 1

Status
Not open for further replies.

azwaan

Programmer
Jan 11, 2002
42
i basically want to get a count of all distinct values in a specific column.

i have the following statement which returns unique tranid's . distinct clause is necessary cos table contains duplicate tranid's.

"select distinct tranid from temptransactions"

how do i get a count of these fields? Distinct Count?

 
count( distinct tranid )

------
"There's a man... He's bald and wears a short-sleeved shirt, and somehow he's very important to me. I think his name is Homer."
(Jack O'Neill, Stargate)
[banghead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top