Viewing 15 posts - 8,011 through 8,025 (of 8,731 total)
I suppose that you're searching for something different than the Microsoft course 2778
http://www.microsoft.com/learning/en/us/course.aspx?ID=2778A#fbid=EN0FHZ0dEvf
June 21, 2013 at 4:40 pm
An error I made when copying and pasting on the last line.
Change it like this
GROUP BY a.hostname) AS l ON i.ip < INET_ATON( l.hostname )
June 21, 2013 at 4:31 pm
That's because you're making a CROSS JOIN instead of an INNER JOIN.
To give te correct output for a single IP address you need to chage the query.
At least, that's what...
June 21, 2013 at 4:25 pm
There are a few issues here and I will try to help you as much as I can, but I'm not sure that I can give you a final solution.
First...
June 21, 2013 at 3:44 pm
I used a similar code at work a few weeks ago and I just adapted to your problem, so if someone has something better it will be benefitial for both...
June 21, 2013 at 2:09 pm
Something like this?
;WITH Ordered AS(
SELECTDISTINCT
CASE WHEN l.Col1 <= l.Col2 THEN l.Col1 ELSE l.Col2 END AS Col1,
CASE WHEN l.Col1 <= l.Col2 THEN l.Col2 ELSE l.Col1 END AS Col2
FROM Links l
),
rCTE AS(
SELECT...
June 21, 2013 at 1:40 pm
I'm sorry, I edited my response because I saw a rule when I was checking my post.
I'm sure you don't need an extra case, just the correct set of conditions....
June 21, 2013 at 12:10 pm
Sean Lange (6/21/2013)
Or maybe this?
where ISNULL(firstname, '') > ''
This will exclude NULL and empty strings.
Sean,
there's no need for the ISNULL as NULL > '' won't return true. 🙂
where firstname >...
June 21, 2013 at 12:01 pm
Would this help you?
SELECT CASE WHEN DateEnd = MAX(DateEnd) OVER( PARTITION BY ID)
AND DateStart > DateEnd
THEN DATEADD( dd, DATEDIFF( dd, 0,DateEnd),0)
ELSE DateStart END,
CASE WHEN...
June 21, 2013 at 11:50 am
DiverKas (6/21/2013)
GilaMonster (6/19/2013)
bslchennai (6/19/2013)
can we use WITH(NOLOCK) option in select queries for these tables. how it will work.
Will the users be happy if the data that the queries return...
June 21, 2013 at 9:58 am
I'm glad you could solved, I was working on a possible solution but I'm not sure that it will work for you. I'll share it anyway.
;with Vol_Factdata as
(
Select CASE WHEN...
June 20, 2013 at 3:16 pm
Unfortunately, there's not much we can do without more details, DDL, sample data and expected results based on that sample data. These things will allow us to give you a...
June 20, 2013 at 2:59 pm
Does this help you?
http://msdn.microsoft.com/en-us/library/cc645993.aspx#Reporting
June 20, 2013 at 2:40 pm
Would this give you a clue?
SELECT CONVERT( date, CONVERT( char(8), NULLIF( Someintdate, 0)))
FROM (VALUES(20130601), (0), (20130515))x(Someintdate)
June 20, 2013 at 8:04 am
Is not easy to answer as they're not equivalent and can't be measured against each other.
June 19, 2013 at 3:53 pm
Viewing 15 posts - 8,011 through 8,025 (of 8,731 total)