Viewing 15 posts - 481 through 495 (of 898 total)
kevinsd1 (7/12/2012)
I am a newbie and I am trying to change the content of a field in a column which is the primary key and in relation with other tables....
July 12, 2012 at 5:47 am
Change the part in the code that says -- Rows with Children as shown below
-- Rows with Children
UPDATE C
SET status2 = I.status2
,Active_status = I.Active_status
FROM inserted...
July 12, 2012 at 3:39 am
pamozer (7/11/2012)
July 12, 2012 at 1:56 am
SGT_squeequal (7/11/2012)
what i want to do is...
July 11, 2012 at 9:28 am
You can declare a variable, say @today to hold the value for DATEPART(WEEKDAY, GETDATE()) and modify the code as below
DECLARE@today TINYINT
SET @today = DATEPART(WEEKDAY, GETDATE())
WITH CTE AS
(
SELECT
RE.DISPLAYTITLE,
CONVERT(DATE,PPS.Start_Date) AS DateStamp,
DATEDIFF(MINUTE,PPS.Start_Date,PPS.End_Date) AS...
July 11, 2012 at 8:21 am
naeemkhan72 (7/11/2012)
July 11, 2012 at 7:36 am
rhythmk (7/11/2012)
Kingston Dhasian (7/11/2012)
A quick search on this site gave me the below linkI hope this will be helpfull
http://www.sqlservercentral.com/scripts/Miscellaneous/65769/
Hello Kingston,
If I am not wrong then he wants all columns of...
July 11, 2012 at 6:39 am
Can you explain the logic for the second row in your expected output
113044,RAS,6/7/2012
113044,EDI,6/8/2012 -- should this not be NULL too, as there is no BLL after the BLL on...
July 11, 2012 at 6:32 am
A quick search on this site gave me the below link
I hope this will be helpfull
http://www.sqlservercentral.com/scripts/Miscellaneous/65769/
July 11, 2012 at 6:01 am
If you want Access Chapter 1 Big Name [ment] as your column name, the below query should give you the exact way to represent your column name in the table...
July 11, 2012 at 5:38 am
No. There is no need to add any code after the ROLLBACK TRANSACTION statement.
The ROLLBACK TRANSACTION rolls back all DML statements between your BEGIN TRANSACTION and GOTO ERROR_HANDLER statement.
July 9, 2012 at 8:44 am
CASE statements cannot be used in the manner you have used
I think this is what you are trying to achieve
SELECTPay.DetailId, clm.AssetId,
CASE WHEN Pay.DetailId IS NULL THEN ISNULL(clm.NoteIds,0) ELSE ISNULL(pay.NoteIds,0) END...
July 6, 2012 at 5:58 am
This should give you the desired result
SELECTStudentName,
MAX( CASE WHEN Question = 1 THEN Answer ELSE '' END ) Ans1,
MAX( CASE WHEN Question = 2 THEN Answer ELSE '' END )...
July 6, 2012 at 5:39 am
vijayarani87.s (7/6/2012)
Currently my updte statement is updating only for the first metric ID in the lean table
Can you tell how many rows are being returned by the SELECT query that...
July 6, 2012 at 2:16 am
Viewing 15 posts - 481 through 495 (of 898 total)