Viewing 8 posts - 16 through 23 (of 23 total)
GilaMonster (4/5/2011)
The IN clause perhaps? (SQL doesn't have arrays)Post the two queries and we may be able to help you better.
Ok here is query 1. This query looks up...
April 6, 2011 at 12:00 am
I get your trying to teach me, I wish i had more time to dedicate to learning SQL more. But I think i figured it out anyway. Im...
February 10, 2011 at 6:05 pm
ok im all sorted out now working just how i want it.
I had another requirment come up last night however and try as I did I couldnt figure...
February 9, 2011 at 8:23 pm
Lynn Pettis (2/8/2011)
lance.kentwell (2/8/2011)
SELECT DATEDIFF(s, '1970-01-01 00:00:00', (SELECT DATEADD(s,0,DATEADD(mm, DATEDIFF(m,0,getdate())-1,0))))/86400
SELECT DATEDIFF(s, '1970-01-01 00:00:00', (SELECT DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,getdate()),0))))/86400
I also added "/86400" on the end to convert the whole...
February 8, 2011 at 9:17 pm
I figured it out 🙂
SELECT DATEDIFF(s, '1970-01-01 00:00:00', (SELECT DATEADD(s,0,DATEADD(mm, DATEDIFF(m,0,getdate())-1,0))))/86400
SELECT DATEDIFF(s, '1970-01-01 00:00:00', (SELECT DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,getdate()),0))))/86400
I also added "/86400" on the end to convert the whole tings to days...
February 8, 2011 at 8:55 pm
ok, first I am using this query to get first day of the previous month:
SELECT DATEADD(s,0,DATEADD(mm, DATEDIFF(m,0,getdate())-1,0))
Then I take the result and convert it to epoch time suing this...
February 8, 2011 at 8:25 pm
Actually using a staging table is an option. problem is im such a newbie all the ways you suggested to remove the duplicates etc are chinese to me. ...
February 11, 2010 at 1:33 am
Nope, not an option unfortunately, the service populating this file wont allow it.
February 10, 2010 at 9:19 pm
Viewing 8 posts - 16 through 23 (of 23 total)