Viewing 15 posts - 4,066 through 4,080 (of 8,761 total)
Quick suggestion, unpivot the second table and join the results to the first table.
😎
create table #test_table_2
(EmailAddress varchar(100),Email1 varchar(100),Email2 varchar(100))
INSERT INTO #test_table_1
SELECT 'c@b.com' as EmailAddress, 'Jack' as FirstName, 'Quick' as...
January 9, 2016 at 10:24 pm
IE or Internet Exploiter as it's been known in the security community for years has given so much problems that it in hard start to fathom that problem. The death...
January 9, 2016 at 1:18 pm
Hugo Kornelis (1/9/2016)
Eirikur Eiriksson (1/9/2016)
😎
As demonstrated here, often in-line date tables are easier solutions than physical date tables, especially if they are...
January 9, 2016 at 9:35 am
You are very welcome and thanks for the feedback.
😎
As demonstrated here, often in-line date tables are easier solutions than physical date tables, especially if they are supporting logic rather than...
January 9, 2016 at 9:11 am
Quick solution
😎
USE tempdb;
GO
SET NOCOUNT ON;
DECLARE @START_DATE DATE = CONVERT(DATE,'20100101',112);
DECLARE @END_DATE DATE = CONVERT(DATE,'20100901',112);
DECLARE @INTERVAL INT = 14;
;WITH T(N) AS (SELECT N FROM (VALUES (0),(0),(0),(0),(0),(0),(0),(0),(0),(0)) AS...
January 9, 2016 at 12:54 am
MyDoggieJessie (1/8/2016)
Thanks a lot for this, had to create an index on the larger table been hit but it does work well!
You are very welcome.
😎
January 8, 2016 at 11:08 pm
Luis Cazares (1/8/2016)
Ed Wagner (1/8/2016)
Brandie Tarvin (1/8/2016)
rodjkidd (1/8/2016)
Brandie Tarvin (1/8/2016)
January 8, 2016 at 7:41 am
joe-584802 (1/6/2016)
Thank you for taking the trouble to give me such a comprehensive example, you've given me another road to go down which I'll pursue.
You are all...
January 7, 2016 at 7:28 am
ChrisM@Work (1/7/2016)
Grumpy DBA (1/7/2016)
Ed Wagner (1/7/2016)
Stuart Davies (1/7/2016)
Belated?Late
Pregnant
paws
Rescue
January 7, 2016 at 6:08 am
neomerdien (1/7/2016)
looks really good, thanks!
so just to make sure, i need to replace TBL_TEST_AUDIT with my table and my columns and i cant audit the deletes in question, correct?
also, im...
January 7, 2016 at 3:23 am
Quick suggestion, just make certain that the right indices are in place.
😎
/* SELECT GIVING THE DESIRED OUTPUT */
SELECT
AC.ID
,AC.AcctID
,MAX(TT.tpyModifiedDate) AS tpyModifiedDate
FROM...
January 7, 2016 at 1:55 am
lsalih (1/6/2016)
January 7, 2016 at 1:15 am
Quick solution in line with Jason's suggestion
😎
USE tempdb;
GO
SET NOCOUNT ON;
;WITH SAMPLE_DATA(SD_ID,SD_DATE) AS
( SELECT SD_ID,CONVERT(DATE,SD_DATE,120) FROM
( VALUES
...
January 6, 2016 at 11:23 pm
Jeff Moden (1/5/2016)
Raastarr (1/4/2016)
Thanks for all of the responses.I've gone with the first solution from Eirikur as [font="Arial Black"]it did exactly what was required [/font]:-).
Careful now... Does it? With...
January 6, 2016 at 10:38 pm
neomerdien (1/6/2016)
lets say this is my table, so you can use that as a reference:
TABLE [test1]
ID [int] NOT NULL,
ExpDate [datetime] NOT NULL
i want to log all the deletes from...
January 6, 2016 at 10:20 pm
Viewing 15 posts - 4,066 through 4,080 (of 8,761 total)