Viewing 15 posts - 12,841 through 12,855 (of 15,381 total)
Are you trying to figure out which column would have a more recent date between the date the row was created and the date the row was modified?
Isnull(modified, created)
This would...
March 6, 2012 at 1:16 pm
Can you explain a little more clearly what the issue is?
March 6, 2012 at 1:10 pm
I dont think about the Speed and effiency there. I think about the logic
Analyse the problem matahematicaly,
write the steps required to solve the problem
and then write the code
And there is...
March 6, 2012 at 12:54 pm
Without any ddl or data it is hard to say...but just reading it at face value calculating the average phone number is hysterically funny. 😛
March 6, 2012 at 12:43 pm
The alias t1 does not exist in that query. If you want a value to persist between queries you have to store it somewhere (variable or a table).
March 6, 2012 at 12:27 pm
I sort of remember that thread too. I think that Jeff was trying to say that the "best" solution did not need to use a pivot. I don't recall if...
March 6, 2012 at 10:17 am
adiehl (3/6/2012)
March 6, 2012 at 10:15 am
No problem. 😀 No you can't delete them, unless you send an email to the moderator asking for it to be deleted. Probably not worth it because it will fall...
March 6, 2012 at 9:35 am
HOLY!!!!!!!!!
There are over 30 subselects and somewhere around 5-6 scalar functions. Even if you got that to work you might as well go out for lunch while it runs.
That is...
March 6, 2012 at 9:32 am
siva 20997 (3/6/2012)
Most users on this forum seems to be DBA's who are manipulating large chunks of data and are thinking effiencey. However I think of my self as manaipulating...
March 6, 2012 at 9:20 am
Please don't cross post.
direct all replies here. http://www.sqlservercentral.com/Forums/Topic1262308-392-1.aspx
March 6, 2012 at 9:08 am
Please don't cross post.
Direct all replies here. http://www.sqlservercentral.com/Forums/Topic1262308-392-1.aspx
March 6, 2012 at 9:08 am
This is tricky at best to do with straight sql. Typically it is much easier to do this with an application. Why do you want to take 2400 images that...
March 5, 2012 at 3:18 pm
You have to first have your new schema created. Then you need to alter that schema and transfer the object(s).
March 5, 2012 at 3:11 pm
Matt Miller (#4) (3/5/2012)
Try it this way:
SELECT ItemId FROM Item WHERE ItemTypeId=1
INTERSECT
SELECT ItemId FROM Item WHERE ItemTypeId=3
I think the OP wants to find all items with either type....
March 5, 2012 at 3:07 pm
Viewing 15 posts - 12,841 through 12,855 (of 15,381 total)