Viewing 15 posts - 136 through 150 (of 515 total)
Easy question for the day! Thanks..
February 5, 2013 at 10:36 pm
Select statement cannot be used directly to create headers. Here is how it can be done by creating a list of columns and then creating a PIVOT string which include...
February 5, 2013 at 6:02 pm
This is how it can be done, using PIVOT function
SELECT paymentID, [ASD], [BG],[SD]
FROM (SELECT paymentID,
...
February 5, 2013 at 6:47 am
Try to do this yourself. Here is the link for your reference:
http://msdn.microsoft.com/en-us/library/ms177410(v=sql.105).aspx
February 5, 2013 at 2:29 am
demonfox (2/4/2013)
And the best part ; Float hasa higher precedence over int , so multiplying Amount with -1 doesn't convert the data type of amount ...
Hey demonfox..spot on with regards...
February 5, 2013 at 12:28 am
Here you go:
CREATE TABLE Payment
(
PaymentHistoryID INT,
paymentID INT,
...
February 4, 2013 at 11:00 pm
Thanks Tom!
Really appreciate the way solution is explained.
February 4, 2013 at 10:43 pm
Thanks EdVassie, you reminded me of this.
OP, here is how this can be done.
In SSMS, right click on “Local publication” and click “properties”. In the “Publication properties” window, click on...
February 4, 2013 at 8:38 am
Dineshbabu (2/4/2013)
Thanks Lokesh for ur additional explaination...
Thanks Dinesh 🙂
February 4, 2013 at 12:37 am
demonfox (2/3/2013)
pawan_rb (2/3/2013)
February 4, 2013 at 12:36 am
Your issue is not very clear! still trying to answer partially
If the retention of data in source is only 1 day, for reporting tables create a staging area in Reporting...
February 3, 2013 at 11:12 pm
Good question. Thanks!
Here is a tip to understand:
1) This is how "0" and "114" will look like when converted to DATETIME
SELECT CAST(0 AS DATETIME) -- 1900-01-01 00:00:00.000
SELECT CAST(114...
February 3, 2013 at 10:14 pm
Good one Thomas! I was aware that column values will be swapped 🙂
January 31, 2013 at 9:34 pm
opc.three (1/31/2013)
January 31, 2013 at 6:25 am
Koen Verbeeck (1/30/2013)
Whoops, guessed wrong. Thanks for the question!
+1 Same with me 🙂
January 31, 2013 at 12:33 am
Viewing 15 posts - 136 through 150 (of 515 total)