Viewing 15 posts - 1 through 15 (of 15 total)
Thank you all, I think I had resolved it
December 14, 2015 at 8:27 am
I want to use a variable (ex: @test-2) to replace value 'College' in LIKE
Sample:
Select * from Table_1 where Description like N'%@test%'
November 19, 2015 at 10:53 am
Naturally I will declare a variable, sample:
Declare @test-2 varchar(50)
select @test-2 = 'College'
(1) Select * from Table_1 where Description like N'%' + @test-2 + '%'
But...
November 19, 2015 at 10:29 am
Thank you very much,
I did successful
November 19, 2015 at 7:13 am
Thanks for your reply, and I think user temp table is the best case.
Sample:
DECLARE @TmpIDAttachment TABLE(
IDActionPerformedAttachment INT,
IDAttachment INT)
INSERT INTO @TmpIDAttachment( IDActionPerformedAttachment ,IDAttachment)
SELECT ActionPerformedAttachment.IDActionPerformedAttachment, dbo.ActionPerformedAttachment.IDAttachment...
May 20, 2013 at 7:44 pm
Hi every one, this is my solution.
update table_name
set theDate = dateadd(dd, datediff(dd, 0, theDate), 0)
March 27, 2012 at 12:26 am
Thank you very much, I have done it. 🙂
March 26, 2012 at 11:08 pm
Thanks for support, but can you write sql select for me, please! Thank you.
January 30, 2012 at 7:41 pm
Thank for your answer very much.
I have done it.
Thank you.
January 2, 2012 at 11:41 pm
Thank for your answer, but result is not right, Your answer have result:
Employee Code, JobCode, FromDate
001,MRO,2011/10/10
001,MRE,2011/09/09
002,CEO,2012/01/01
002,CFO,2011/01/01
003,MG,2011/01/01
but I want result:
Employee Code, JobCode, FromDate
001,MRO,2011/10/10
002,CEO,2012/01/01
003,MG,2011/01/01
The date i want get is Max.
Please help...
January 2, 2012 at 8:37 pm
Viewing 15 posts - 1 through 15 (of 15 total)