Click here to Skip to main content
16,004,529 members
Home / Discussions / Database
   

Database

 
AnswerRe: duplication problem Pin
Mycroft Holmes10-Jun-10 19:34
professionalMycroft Holmes10-Jun-10 19:34 
QuestionDatabase for iPhone Pin
future383910-Jun-10 17:19
future383910-Jun-10 17:19 
AnswerRe: Database for iPhone Pin
Mycroft Holmes10-Jun-10 19:35
professionalMycroft Holmes10-Jun-10 19:35 
GeneralRe: Database for iPhone Pin
Chris Meech11-Jun-10 7:02
Chris Meech11-Jun-10 7:02 
QuestionA connection to Sqlce using c++ for a smart device using ADO Pin
king'ori10-Jun-10 1:47
king'ori10-Jun-10 1:47 
AnswerRe: A connection to Sqlce using c++ for a smart device using ADO Pin
hairy_hats11-Jun-10 3:17
hairy_hats11-Jun-10 3:17 
GeneralRe: A connection to Sqlce using c++ for a smart device using ADO Pin
king'ori12-Jun-10 0:37
king'ori12-Jun-10 0:37 
QuestionMultiple queries as one table Pin
Morgs Morgan9-Jun-10 4:44
Morgs Morgan9-Jun-10 4:44 
Hi guys,
I have these three queries and i would like to join them as one table so that i can
read from one table using my DataReader(). I don't want to use subqueries because certain queries will
return more than one result and Sql Server does not like that one.
(
	SELECT [number], [dateTime]
	FROM [Database].[dbo].[table]
	WHERE [dateTime]
	BETWEEN '2010-04-30 00:00:00' AND '2010-04-30 23:59:59' AND 
	[number] NOT IN ('227000000', '2274000000', '2770000000')
)
(
	SELECT RIGHT ([number_pair], 11) AS [number_pair] FROM [Database].[dbo].[table]
        WHERE [number_pair] != '' AND [used] = '1' AND [number_pair] IN
	(
		SELECT [Database].[dbo].[table].[num_pair] FROM [Database].[dbo].[table]
		WHERE [dateTime] BETWEEN '2010-04-30 00:00:00' AND '2010-04-30 23:59:59' AND
		[number] NOT IN ('227000000', '2274000000', '2770000000')
	)
)
(
	SELECT column FROM [Database].[dbo].[table]
        WHERE [sent] = '1' AND
        [sent_date] BETWEEN '2010-04-30 00:00:00' AND '2010-04-30 23:59:59'
)

Please anyone help me D'Oh! | :doh:
Thanks,
Morgs
AnswerRe: Multiple queries as one table Pin
loyal ginger9-Jun-10 5:17
loyal ginger9-Jun-10 5:17 
GeneralRe: Multiple queries as one table Pin
Morgs Morgan9-Jun-10 5:45
Morgs Morgan9-Jun-10 5:45 
GeneralRe: Multiple queries as one table Pin
J4amieC9-Jun-10 6:46
J4amieC9-Jun-10 6:46 
GeneralRe: Multiple queries as one table Pin
Morgs Morgan9-Jun-10 7:42
Morgs Morgan9-Jun-10 7:42 
GeneralRe: Multiple queries as one table Pin
Johan Hakkesteegt10-Jun-10 3:15
Johan Hakkesteegt10-Jun-10 3:15 
QuestionSQL query to read all the records one by one Pin
Yvon Bourgouin9-Jun-10 3:13
Yvon Bourgouin9-Jun-10 3:13 
AnswerRe: SQL query to read all the records one by one Pin
R. Giskard Reventlov9-Jun-10 3:31
R. Giskard Reventlov9-Jun-10 3:31 
GeneralRe: SQL query to read all the records one by one Pin
Yvon Bourgouin9-Jun-10 3:53
Yvon Bourgouin9-Jun-10 3:53 
GeneralRe: SQL query to read all the records one by one Pin
R. Giskard Reventlov9-Jun-10 4:45
R. Giskard Reventlov9-Jun-10 4:45 
AnswerRe: SQL query to read all the records one by one Pin
Scubapro9-Jun-10 4:50
Scubapro9-Jun-10 4:50 
GeneralRe: SQL query to read all the records one by one Pin
Yvon Bourgouin9-Jun-10 4:58
Yvon Bourgouin9-Jun-10 4:58 
GeneralRe: SQL query to read all the records one by one Pin
Johan Hakkesteegt10-Jun-10 3:09
Johan Hakkesteegt10-Jun-10 3:09 
GeneralRe: SQL query to read all the records one by one Pin
supercat99-Jun-10 5:43
supercat99-Jun-10 5:43 
GeneralRe: SQL query to read all the records one by one Pin
Yvon Bourgouin9-Jun-10 8:55
Yvon Bourgouin9-Jun-10 8:55 
GeneralRe: SQL query to read all the records one by one Pin
David Skelly9-Jun-10 5:44
David Skelly9-Jun-10 5:44 
GeneralRe: SQL query to read all the records one by one Pin
i.j.russell9-Jun-10 8:20
i.j.russell9-Jun-10 8:20 
GeneralRe: SQL query to read all the records one by one Pin
Yvon Bourgouin9-Jun-10 8:53
Yvon Bourgouin9-Jun-10 8:53 

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.