Click here to Skip to main content
15,884,838 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCode Standards Pin
mazemalik4-Jun-10 3:17
mazemalik4-Jun-10 3:17 
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 
Hi guys,
I have three different queries and i would like to put them as one huge query.
This will reduce the number of times i make a connection to Sql Server and hence load
time on my page.
I have already managed to put two queries like:
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]
   FROM [Cellsmart_ussd].[dbo].[ussd_log]
   WHERE [request] = '*120*789#'

But i also want the query below to be part of the two subqueries above^:
SELECT COUNT([ussd_clean].[dbo].[unique_codes].[msisdn_pair]) AS tota FROM [ussd_clean].[dbo].[unique_codes]
WHERE [msisdn_pair] != '' AND [used] = '1'

Unfortunatly I can't use INNER JOINS because all these single queries refer to
different databases and tables.

Please help me D'Oh! | :doh:
Thanks, Morgs
AnswerRe: Subqueries Pin
Peace ON4-Jun-10 2:47
Peace ON4-Jun-10 2:47 
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 

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.