Viewing 15 posts - 1,666 through 1,680 (of 1,920 total)
T.alkathiri (4/27/2010)
Thank you very much for the solution.It works just fine and the result as I wanted it to be.
Please accept my best wishes and best regards
Cheers
Oh boy :blush:!! Thanks...
April 27, 2010 at 7:16 am
Happy that my code helped you..
As for your error, you are trying to concatenate INT value to a VARCHAR variable.. To negate his error , we will have to...
April 27, 2010 at 6:56 am
Hey Jus, can you please post sample data for tblPeriod (in tthe form of INSERT INTO TABLE <> SELECT statments) ?? This will be very helpful to revamp the query...
April 27, 2010 at 5:53 am
~Edit: Code removed - Better version of this is posted in the next post of mine
Cheers!!
April 27, 2010 at 5:19 am
Gianluca Sartori (4/27/2010)
jasonshaw (4/27/2010)Why do we have the "For XML path ''" and the 1,1, space[0] ?
It's a "trick" to generate on the fly a string with concatenation of all...
April 27, 2010 at 4:59 am
Why do we have the "For XML path ''" and the 1,1, space[0] ?
FOR XML PATH concatenates the rows values present in the column which you want to become as...
April 27, 2010 at 4:52 am
Gianluca Sartori (4/27/2010)
ColdCoffee (4/27/2010)
Alessandro, Sei il benvenuto!
Aaah! You fell victim of the "google translator" bug!
I think you wanted to translate "You're welcome", that's "Prego" in Italian.
"Sei il benvenuto" means...
April 27, 2010 at 3:44 am
Jason, you could have closely followed either mine or Gianluca's code and with further modifications, you could have accomplished the task..
But anyways, here is your code
First, the table structure (teh...
April 27, 2010 at 3:39 am
Gianluca, you beat me to it 😎
And Alessandro, as he said convert the bit column into tinyint (i used INT though) and then you can aggregate..
Cheers!!
April 27, 2010 at 2:25 am
hey buddy, i did not understand fully your requirement, but i have a pivot query which might interest you..
SELECT datax , [1] StatoImp1, [2] StatoImp3, [3] StatoImp3 FROM
...
April 27, 2010 at 2:22 am
Buddy, can you be more specific with your requirement??
Please go through this following article and helping us help you?? 🙂
CLICK HERE FOR FORUM POSTING ETIQUETTES - JEFF MODEN[/url]
When u...
April 27, 2010 at 2:13 am
Buddy, can you be more specific with your requirement?? i mean, why do u wnat to compare the InvoiceDate and StartDate and then again using the same combination to filter...
April 27, 2010 at 2:12 am
Hey Gerald, as promised , here is mini-version of the dynamic update query.. It is just a starter, you will have to build up on the start and customize it...
April 26, 2010 at 11:50 pm
Lynn Pettis (4/26/2010)
with GroupData as (
SELECT
Key1,
MAX(VAL1) as MAX1,
SUM(VAL2) as SUM2
FROM
...
April 26, 2010 at 8:07 pm
Viewing 15 posts - 1,666 through 1,680 (of 1,920 total)