Viewing 15 posts - 4,471 through 4,485 (of 5,502 total)
First of all: thank you for providing ready to use test data!! Well done! 😀
Would something like the following help?
;WITH cte AS
(
SELECT RelatedID
FROM #A
GROUP BY RelatedID
HAVING count(DISTINCT...
January 19, 2010 at 12:36 pm
bgeige (1/19/2010)
SSMS/View/Object Explorer Details/Procedures
How would you sort the procs by creation date, as requested in the original post? :ermm:
January 19, 2010 at 12:31 pm
Glad I could help! 🙂
January 19, 2010 at 11:56 am
Based on what you provided so far the cursor could be elminated by a single insert statement like this:
INSERT INTO XMLtemppatientMap(oldpatientID, newpatientID, oldfileID, newfileID)
SELECT patientID,'@newpatientID',fileID,NEWID()
FROM fileList
WHERE patientID = @patientID
AND (fileType...
January 19, 2010 at 11:03 am
I think the major issue is that you use the CROSS APPLY function in a way that forces SQL server to parse the xml string for each and every article.
I'd...
January 19, 2010 at 10:30 am
When adding the following three samples to your data, which one should be displayed (each one has values in two out of three columns)?
select 'fred', 'unsure', 33716, 'test@here.com','444.75.224.23', null
union
select 'fred',...
January 19, 2010 at 8:06 am
I wouldn't really use a while loop for it nor would I order by ordinal column position.
I'd rather go with a set based solution based on the Tally table concept...
January 19, 2010 at 7:55 am
Would the following work (untested)?
CASE WHEN [DOB] = '1899-12-30 00:00:00.000' THEN NULL ELSE [DOB] END
January 19, 2010 at 6:34 am
It sounds like your database structure is far away from being normalized...
Instead of looking for a way to update those 4 tables I strongly recommend to redesign your database to...
January 18, 2010 at 3:00 pm
The percentage sign is misplaced. Therefore it's treated like
SELECT @Query%
Try
AND sdest.[text] LIKE ''%' + @Query +'%''
January 18, 2010 at 1:13 pm
I'd talk to the folks that are responsible for the script that adds the column each day to give me another column [row_total] that would add all previous columns. If...
January 18, 2010 at 1:08 pm
I'd like to repeat what I stated before:
Please provide table definition, sample data (in a ready to use format) and expected output as described in the first link in my...
January 18, 2010 at 12:09 pm
Since you already started using "left" and "right" terms in your table you might want to consider using those columns as holding the data as per the nested set model....
January 17, 2010 at 12:20 pm
What is the business rule for the values for Introducer,LeftMember, and RightMember?
Yor sample do not show an "easy" pattern...
Example: ID=2 has Introducer=10 but is LeftMember of ID=1.
Edit: Thank your...
January 17, 2010 at 9:06 am
Several issues:
1) please provide sample data in a ready to use format
2) include expected result set
3) show us what you've tried so far and where you get stuck
For details reagarding...
January 17, 2010 at 6:28 am
Viewing 15 posts - 4,471 through 4,485 (of 5,502 total)