Click here to Skip to main content
15,889,992 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Code Standards Pin
dan!sh 4-Jun-10 3:21
professional dan!sh 4-Jun-10 3:21 
AnswerRe: Code Standards Pin
Jamil Hallal4-Jun-10 4:22
professionalJamil Hallal4-Jun-10 4:22 
GeneralRe: Code Standards Pin
R. Giskard Reventlov4-Jun-10 4:33
R. Giskard Reventlov4-Jun-10 4:33 
AnswerRe: Code Standards Pin
R. Giskard Reventlov4-Jun-10 4:35
R. Giskard Reventlov4-Jun-10 4:35 
AnswerRe: Code Standards Pin
T M Gray4-Jun-10 5:48
T M Gray4-Jun-10 5:48 
QuestionGDI+ Image wont Show Properly Pin
Randal Vance Cunanan4-Jun-10 2:55
Randal Vance Cunanan4-Jun-10 2:55 
QuestionSubqueries Pin
Morgs Morgan4-Jun-10 2:37
Morgs Morgan4-Jun-10 2:37 
AnswerRe: Subqueries Pin
Peace ON4-Jun-10 2:47
Peace ON4-Jun-10 2:47 
You can join all the three queries as following.


SELECT COUNT(Cellsmart_ussd.dbo.ussd_log.[msisdn]) AS totentries,

(
   SELECT COUNT(ussd_clean.dbo.ster_vouchers.sent) FROM ussd_clean.dbo.ster_vouchers 
   WHERE [sent] = '1' AND [sent_date] BETWEEN @start AND @end
) AS [totsent],

(
SELECT COUNT([ussd_clean].[dbo].[unique_codes].[msisdn_pair]) FROM [ussd_clean].[dbo].[unique_codes]
WHERE [msisdn_pair] != '' AND [used] = '1'
) AS tota

   FROM [Cellsmart_ussd].[dbo].[ussd_log]
   WHERE [request] = '*120*789#'


It is in the same manner as you joined the first two query.

Also, please post database related question in General Database[^] section.


HTH
Jinal Desai - LIVE
Experience is mother of sage....

GeneralRe: Subqueries Pin
Morgs Morgan4-Jun-10 4:17
Morgs Morgan4-Jun-10 4:17 
Questionwhat is trace listeners Pin
somasekhara7774-Jun-10 2:16
somasekhara7774-Jun-10 2:16 
AnswerRe: what is trace listeners Pin
Peace ON4-Jun-10 2:28
Peace ON4-Jun-10 2:28 
AnswerRe: what is trace listeners Pin
Not Active4-Jun-10 2:29
mentorNot Active4-Jun-10 2:29 
AnswerRe: what is trace listeners Pin
JHizzle4-Jun-10 2:44
JHizzle4-Jun-10 2:44 
AnswerRe: what is trace listeners Pin
Jamil Hallal4-Jun-10 4:28
professionalJamil Hallal4-Jun-10 4:28 
QuestionIE8 on Windows 7 Does not Respond Pin
Vimalsoft(Pty) Ltd4-Jun-10 2:15
professionalVimalsoft(Pty) Ltd4-Jun-10 2:15 
AnswerRe: IE8 on Windows 7 Does not Respond Pin
Vimalsoft(Pty) Ltd6-Jun-10 21:27
professionalVimalsoft(Pty) Ltd6-Jun-10 21:27 
Questionwhat is the difference between appsettings and connectionstring Pin
somasekhara7774-Jun-10 1:40
somasekhara7774-Jun-10 1:40 
AnswerRe: what is the difference between appsettings and connectionstring Pin
Not Active4-Jun-10 1:55
mentorNot Active4-Jun-10 1:55 
GeneralRe: what is the difference between appsettings and connectionstring Pin
somasekhara7774-Jun-10 2:17
somasekhara7774-Jun-10 2:17 
QuestionExcel to sqlserver Pin
amina894-Jun-10 0:54
amina894-Jun-10 0:54 
AnswerRe: Excel to sqlserver Pin
walterhevedeich4-Jun-10 1:31
professionalwalterhevedeich4-Jun-10 1:31 
GeneralRe: Excel to sqlserver Pin
amina894-Jun-10 2:00
amina894-Jun-10 2:00 
GeneralRe: Excel to sqlserver Pin
Sadheesh R7-Jun-10 20:53
Sadheesh R7-Jun-10 20:53 
Questionshow multiple files in a single iframe at once Pin
raghvendrapanda4-Jun-10 0:01
raghvendrapanda4-Jun-10 0:01 
QuestionIs RowEditing Event not required in ASP.Net 2.0? Pin
meeram3953-Jun-10 23:46
meeram3953-Jun-10 23:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.