|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Row Count in Results
Here is some sample Data:
Code:
Area G_C Asia 3 EMEA 10 Americas 19 What I would like to do is to add a third column that contains the total number of rows. For instance: Code:
Area G_C Col_Count Asia 3 3 EMEA 10 3 Americas 19 3 I thought I'd add I am using an Oracle Database.
__________________
Click here to Join the most addicting site on the Net. Last edited by InsureDesign : August 13th, 2009 at 04:56 PM. |
|
#2
|
||||
|
||||
|
try something like this:
Code:
SELECT Area, G_C,
(SELECT count(*) FROM tbl_TableName) AS Col_Count
FROM tbl_TableName
__________________
Come JOIN the party!!! Quote of the Month: Pretension: The downside of being better than everyone else is that people tend to assume you're pretentious. Questions to Ponder: You can be overwhelmed and underwhelmed, but why can't you be simply whelmed? iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm") copyright© 2008 sbenj69 |
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > Row Count in Results |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|