Viewing 15 posts - 571 through 585 (of 1,957 total)
Do you need to do this in a SQL query or is it destined for a report ? SSRS/Crystal/Excel?
January 22, 2014 at 6:36 pm
pmadhavapeddi22 (1/21/2014)
Hi ,I have a view which contains a CTE and I need to pass the parameter inside the CTE.
our application is not accepting sps or functions. Please help me
You...
January 22, 2014 at 6:33 pm
Steve Jones - SSC Editor (1/21/2014)
Happy to add this, and apologies for not thinking of it.
If you come up with other ideas, please send them to the webmaster (@ domain...
January 21, 2014 at 9:19 am
Jeff Moden (1/17/2014)
[font="Arial Black"]"Ahhhhhhh MAGOO! You've done it again." [/font]:-P (Sorry ol' friend... I've been holding it...
January 17, 2014 at 4:52 pm
Here is a revised version that gives the correct results I think.
with GroupData as
(
-- Gather the groups and item codes together and count how many items in each group
...
January 17, 2014 at 4:51 pm
Sorry, it is no clearer I'm afraid, unless ...
Are you saying that any works order that has :
more than one occurrence of any single ItemCode, <-- in this case 101
and
that...
January 17, 2014 at 9:49 am
DavidKBennett (1/17/2014)
Thanks for your help.
The problem is that a given work order can't just have the codes at all, but must match quantity as well.
So WO #11 has the 101...
January 17, 2014 at 9:00 am
David, I still don't understand 11 not matching 4.
Group 4 has two ItemCodes, WOnum 11 has those two codes ???
What is the logic behind it not matching group 4?
January 17, 2014 at 8:09 am
That is some excellent work on the testing there Dohsan - well done!:-)
January 17, 2014 at 8:06 am
Luis Cazares (1/16/2014)
Mr. Magoo, it's really nice how you handle the start of a word. However, it might...
January 16, 2014 at 5:52 pm
I almost have an answer for you, but order number 11 confuses me...why does it not match GroupId 4 (D)?
with GroupData as
(
-- Gather the groups and item codes together...
January 16, 2014 at 5:47 pm
Have you check the setting of InteractiveMode in your project properties under the debugging section?
January 16, 2014 at 5:06 pm
Here's one similar to Luis, but handles detecting the start of a word differently and works on nvarchar(4000) input.
create function [dbo].[propercase](@text nvarchar(4000))
returns table with schemabinding
as
return (
with seed1 (a)
as...
January 16, 2014 at 4:59 pm
Great! Thanks for the feedback.
January 16, 2014 at 4:06 pm
You have to get a bit inventive and add a parent group to your tablix, with an expression for the "group" value that evaluates to blank for no paging and...
January 15, 2014 at 6:30 pm
Viewing 15 posts - 571 through 585 (of 1,957 total)