Viewing 15 posts - 811 through 825 (of 5,356 total)
What about:
select
o.customerID
, o.orderdate
from
northwind..orders o
where
o.orderdate=
(select
max(o1.orderdate)
from
northwind..orders o1
where
o.customerID = o1.customerID)
group by
o.customerID
,o.orderdate
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 17, 2005 at 4:57 am
In order to get this running you need to execute sp_addextendedproc with this DLL. Otherwise SQL Server doesn't know how to handle it. And yes, it will be then an...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 17, 2005 at 4:49 am
Can it be you're doing this exercise for some sorting reasons?
Here are several methods that will sort correctly on a VARCHAR:
SELECT
TOP 1000 n = IDENTITY(INT)
INTO
Nums
FROM
Sysobjects S1...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 17, 2005 at 4:38 am
Search the site here. This is a FAQ. ![]()
I for myself like the stuff by Ken Henderson.
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 17, 2005 at 4:37 am
To add to Steve:
If in your place ASP hosting is also much more expensive than PHP hosting, you might want to use a PHP based content management system like mambo, postnuke...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 17, 2005 at 4:34 am

--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 17, 2005 at 4:29 am
< vbg > ![]()
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 4, 2005 at 6:44 am
Sorry for being late on this. ![]()
Actually, I think there is more than one way to solve this.
Given your sample data:
set nocount on
use...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 4, 2005 at 4:23 am
I will paint an "L" on my forehaed for the rest of the day!!
Bear with me, since I am a non-native english speaker. ![]()
What...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 4, 2005 at 12:39 am
There are many ways for this. If you search the web for trees and/or hierachies and SQL Server, you'll find some very good approaches. Maybe you can start from here:...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 4, 2005 at 12:33 am
Hm, a little bit vague is your description. Anyway, does this help you:
http://support.microsoft.com/?kbid=274463
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 4, 2005 at 12:13 am
Can't comment on the formatting of MONEY. However, MONEY gets also funky when division and/or multiplications are involved in calculations with MONEY:
declare @m1 money, @m2 money, @m3 money
declare @d1 decimal(19,4),...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 3, 2005 at 8:49 am
Even if you can repair it for now, check your hardware closely to make sure it won't happen again.
If it doesn't help, I would call MS PSS.
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 3, 2005 at 7:56 am
May I ask what's the purpose of this whole exercise? What are you trying to accomplish?
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 3, 2005 at 7:11 am
Have you searched the script section here?
Anyway, it would also help if you could post the procedure along with sample data and the desired output. ![]()
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
March 3, 2005 at 6:50 am
Viewing 15 posts - 811 through 825 (of 5,356 total)