Viewing 15 posts - 106 through 120 (of 388 total)
You could probably do the whole thing without any parameters or variables (or maybe one variable for the sum.)
February 7, 2013 at 6:00 am
Agree with Gazareth, best to start by simplifying the query.
It looks like you take everything in as a parameter, and then overwrite the value of each parameter...am I missing a...
February 7, 2013 at 5:47 am
It's kind of hard to follow what's going on precisely...because of the different schemas, the language (former yugoslavian something!), and all the "noise" i.e. code not related to the actual...
January 30, 2013 at 9:11 am
Try changing
select csa.* ,ROW_NUMBER() over (Partition BY csa.customer_number order by
csa.erp_id,csa.ANNUAL_CONTRACT_PRICE desc) as Rank
to
select csa.* ,ROW_NUMBER() over (Partition BY csa.customer_number order by
csa.ANNUAL_CONTRACT_PRICE, csa.erp_id desc) as Rank
So that if...
January 28, 2013 at 1:05 am
I think this is because your trying to execute the create table sql from Reporting Services (and not in Management Studio.) Hence the connection type is not the same,...
January 25, 2013 at 9:08 am
I agree that the problem's going to be connected to your row_number() and the fact that the field used in the Order by section of the OVER clause i.e. ANNUAL_CONTRACT_PRICE...
January 25, 2013 at 8:58 am
already given.....now all you've got to do is read them.
November 29, 2012 at 6:04 am
I'm reading between the lines.
----------
The 3rd party has given you an .xsd and asked you to produce an xml extract for them which corresponds to their format.
You suppose that you...
November 29, 2012 at 5:59 am
Again, it depends on what you want to do in your transformation.
If you include a reference to your stylesheet (where to find it) in your xml document, you can use...
November 29, 2012 at 5:47 am
Not sure if you want guidance on writing an xsl stylesheet or on applying the transformation.
The two articles below should give you some info on both of the above -...
November 29, 2012 at 5:40 am
This isn't a stylesheet; it's an xsd schema. A stylesheet would be used to transform your xml (once you have it!) into a different format (xml / html /text...
November 29, 2012 at 1:46 am
Take a look at the following article "Linking to the previous row", and perhaps more importantly the subsequent discussion which compares CTE with alternatives for this type of problem.
http://www.sqlservercentral.com/articles/T-SQL/62159/
Regards,
David McKinney.
November 29, 2012 at 1:11 am
I agree with the poster in this example. A left join in the other direction might make some sense, but B lj A makes no sense given the direction...
November 22, 2012 at 9:27 am
sri.chithu.selva (11/8/2012)
November 8, 2012 at 1:18 am
fwob04 (11/7/2012)
When I try to use it to create a table, it runs with no errors, but I can't find the table anywhere.
EITHER the table already exists (it's called Archives),...
November 7, 2012 at 9:16 am
Viewing 15 posts - 106 through 120 (of 388 total)