Click here to Skip to main content
15,890,825 members
Home / Discussions / Database
   

Database

 
AnswerRe: Changing Datatype of columns Pin
joindotnet7-Nov-08 1:13
joindotnet7-Nov-08 1:13 
QuestionSearch Sql table for a word contains some letters Pin
y_mmohd5-Nov-08 23:39
y_mmohd5-Nov-08 23:39 
AnswerRe: Search Sql table for a word contains some letters Pin
Paddy Boyd6-Nov-08 0:38
Paddy Boyd6-Nov-08 0:38 
AnswerRe: Search Sql table for a word contains some letters Pin
Wendelius6-Nov-08 8:18
mentorWendelius6-Nov-08 8:18 
GeneralRe: Search Sql table for a word contains some letters Pin
y_mmohd6-Nov-08 23:39
y_mmohd6-Nov-08 23:39 
GeneralRe: Search Sql table for a word contains some letters Pin
Ashfield7-Nov-08 1:43
Ashfield7-Nov-08 1:43 
GeneralRe: Search Sql table for a word contains some letters Pin
Wendelius8-Nov-08 4:35
mentorWendelius8-Nov-08 4:35 
QuestionCross Join Pin
Meysam Mahfouzi5-Nov-08 19:59
Meysam Mahfouzi5-Nov-08 19:59 
I've got a query like this:

WITH CTE1 AS
(
  SELECT * FROM TABLE WHERE A = @A
), 
CTE2 AS
(
  SELECT * FROM TABLE WHERE B = @B
)
SELECT * FROM 
CTE1
  CROSS JOIN
CTE2


The above query works fine for me and always returns cross join result of the two queries. The problem happens when one of those CTEs doesn't return any row and therefore the CROSS JOIN returns nothing as well. When only one of those CTEs return something, my expectation is to return the result of that CTE cross joined with null values. Do you know how I can achieve this purpose?
AnswerRe: Cross Join Pin
Wendelius6-Nov-08 7:53
mentorWendelius6-Nov-08 7:53 
Questioninsert_update Stored procedure and return Identity value Pin
wajans5-Nov-08 18:35
wajans5-Nov-08 18:35 
AnswerRe: insert_update Stored procedure and return Identity value Pin
Ashfield5-Nov-08 21:11
Ashfield5-Nov-08 21:11 
AnswerRe: insert_update Stored procedure and return Identity value Pin
wajans6-Nov-08 1:12
wajans6-Nov-08 1:12 
AnswerRe: insert_update Stored procedure and return Identity value Pin
Ben Fair7-Nov-08 2:17
Ben Fair7-Nov-08 2:17 
GeneralRe: insert_update Stored procedure and return Identity value Pin
wajans7-Nov-08 2:55
wajans7-Nov-08 2:55 
QuestionAtomic Sql Statements (Transaction) Pin
Meysam Mahfouzi5-Nov-08 4:41
Meysam Mahfouzi5-Nov-08 4:41 
AnswerRe: Atomic Sql Statements (Transaction) Pin
J4amieC5-Nov-08 4:46
J4amieC5-Nov-08 4:46 
GeneralRe: Atomic Sql Statements (Transaction) Pin
Meysam Mahfouzi5-Nov-08 4:50
Meysam Mahfouzi5-Nov-08 4:50 
AnswerRe: Atomic Sql Statements (Transaction) Pin
Meysam Mahfouzi5-Nov-08 4:48
Meysam Mahfouzi5-Nov-08 4:48 
AnswerRe: Atomic Sql Statements (Transaction) Pin
Wendelius5-Nov-08 8:04
mentorWendelius5-Nov-08 8:04 
GeneralRe: Atomic Sql Statements (Transaction) Pin
PIEBALDconsult5-Nov-08 13:33
mvePIEBALDconsult5-Nov-08 13:33 
GeneralRe: Atomic Sql Statements (Transaction) Pin
Wendelius6-Nov-08 7:39
mentorWendelius6-Nov-08 7:39 
GeneralRe: Atomic Sql Statements (Transaction) Pin
PIEBALDconsult6-Nov-08 11:27
mvePIEBALDconsult6-Nov-08 11:27 
GeneralRe: Atomic Sql Statements (Transaction) Pin
Wendelius7-Nov-08 6:36
mentorWendelius7-Nov-08 6:36 
Questionsql server 2005 query xml datatype fields Pin
arkiboys5-Nov-08 2:55
arkiboys5-Nov-08 2:55 
AnswerRe: sql server 2005 query xml datatype fields Pin
Wendelius5-Nov-08 10:33
mentorWendelius5-Nov-08 10:33 

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.