Viewing 15 posts - 226 through 240 (of 371 total)
No problem. 🙂
If you need all possible months between two dates you could use something like this:
DECLARE @STRING VARCHAR(500),
@DATE1 DATETIME,
...
October 31, 2011 at 4:33 am
You're talking about only two dates?
If yes, the following should work for you:
DECLARE @STRING VARCHAR(500),
@DATE1 DATETIME,
...
October 31, 2011 at 4:20 am
Wow, that's odd.
Thank you for the information.
Interesting behaviour.
Best regards,
October 27, 2011 at 1:47 pm
SQLRNNR (10/27/2011)
Gianluca Sartori (10/27/2011)
LadyRuna (10/27/2011)
I got it right, but only because I've read Grant Fritchey's book about execution plans. 🙂Ouch! I read that book as well.
I'm totally hopeless.
Ha - I...
October 27, 2011 at 9:22 am
Wouldn't a distributed partitioned view help achieve that?
Best regards,
October 26, 2011 at 3:32 pm
Such an easy question since you are allowed to create columns of type GEOMETRY.
I'm amazed that 41% got it wrong.
Maybe it's because of the answer #4 that can lead to...
October 26, 2011 at 4:17 am
Thomas Abraham (10/25/2011)
#7 fails because personname is declared NOT NULL in the table def, I believe.
Yes, you're right. I was so sure that there were five values being passed.
Thanks for...
October 25, 2011 at 9:07 am
As Paul White would say, this is one of those questions that turns us into a T-SQL parser. 😀
But nice question.
Almost got it wrong because I couldn't see the error...
October 25, 2011 at 4:51 am
Ah, I see.
Try this:
SELECT * FROM dbo.TblTemp AS TMP1
INNER JOIN (SELECT MAX(Date) AS Date, Vendor FROM dbo.TblTemp
...
October 24, 2011 at 5:16 pm
nfpacct (10/24/2011)
I omitted one key item in the request. I would like the max date for by a field in my table called vendor.
The suggested query works as it...
October 24, 2011 at 4:22 pm
You could use something like this:
SELECT Fields FROM dbo.MyTable
WHERE MyDate = (SELECT MAX(MyDate) FROM dbo.MyTable);
Best regards,
October 24, 2011 at 4:11 pm
Hugo Kornelis (10/24/2011)
October 24, 2011 at 4:05 pm
wware (10/24/2011)
October 24, 2011 at 3:41 pm
dg1407 (10/24/2011)
Sometimes questions here look more like riddles rather than teaching questions, still there thanks for the effort... 😀
Oh, but they do teach us a lot. 🙂
Sometimes a QoTD followed...
October 24, 2011 at 9:29 am
caspersql (10/23/2011)
October 23, 2011 at 6:35 pm
Viewing 15 posts - 226 through 240 (of 371 total)