Viewing 15 posts - 1,726 through 1,740 (of 5,504 total)
You need to define the submissionbatch you want to return if there is more than one. You could either use MIN(),MAX(),SUM() or any other aggregation you like.
But then you'd need...
March 29, 2011 at 1:17 pm
Here's a script to query the data per SQL instance:
EXECUTE sp_msforeachdb 'USE ? SELECT DB_NAME(); SELECT *
FROM sys.extended_properties'
March 29, 2011 at 1:12 pm
Is it possible the Excel file is still open (= in use by another application)?
March 29, 2011 at 12:44 pm
You could use
Select DISTINCT a.*,b.SubmissionBatchID
If you still get more than 2219944 then you have more than one distinct value of b.SubmissionBatchID per submissionID.
As a side note: I...
March 29, 2011 at 12:34 pm
Would you please be a little more specific? What error message (exactly) do you get?
March 29, 2011 at 12:18 pm
@SUPER SQL STAR:
May I kindly ask you to change your avatar?
The avatar you're using at the moment is connected to WayneS since "ages"...
March 29, 2011 at 11:58 am
Ninja's_RGR'us (3/29/2011)
LutzM (3/29/2011)
20. How to sum a column and make rename is something?
Please ask your tutor to rephrase this question. It will make it easier for you to google for...
March 29, 2011 at 10:57 am
20. How to sum a column and make rename is something?
Please ask your tutor to rephrase this question. It will make it easier for you to google for an answer...
[SET...
March 29, 2011 at 10:50 am
Are you sure this qustion belongs to a SQL forum? :ermm:
Probably better to ask in a C# forum...
March 29, 2011 at 10:42 am
Wouldn't it be also an option just to remove the redundant CASE expression?
Something like
CASE
...
March 29, 2011 at 10:35 am
Did you try the good old Divide'n'Conquer approach?
As far as I see each subquery is limited by at least the TaskId = @TaskId condition, so you'd end up with smaller...
March 28, 2011 at 10:33 am
mattias 58533 (3/28/2011)
I have a machine that needs to be tuned perfectly.
My questions: Are there any good sources/ebooks how to do this from the start?
We don't have any...
March 28, 2011 at 10:10 am
You don't really expect us to analyze over 3000 lines in French(?), do you?
It would be much more helpful if you could describe the kind of performance problems you're dealing...
March 28, 2011 at 10:05 am
That's just part of the stuff Wayne asked for...
Please provide table def and sample data for dbo.MRec_Gather_Med_Reconcilation_1 as well as your expected output.
March 28, 2011 at 9:49 am
I would recommend to unpivot your table. While doing so, you should adjust the column size and/or data type (I don't think NVARCHAR(255) is an appropriate data type). Maybe even...
March 27, 2011 at 1:57 pm
Viewing 15 posts - 1,726 through 1,740 (of 5,504 total)