Viewing 9 posts - 16 through 24 (of 24 total)
DECLARE @Tour TABLE (tourID INT IDENTITY PRIMARY KEY
,tourName VARCHAR(50) NOT...
January 2, 2009 at 12:23 pm
SELECT REPLICATE('0', 16 - LEN(LTRIM(RTRIM('SomeValue'))))
+ LTRIM(RTRIM('SomeValue'))
January 2, 2009 at 9:24 am
If Product can have only 1 Type:
SELECT ProductId
,[Type]
,COUNT(1) ProductCount
,AVG(MAN) MAN
,AVG(PUR) PUR
,AVG(SUB) SUB
,AVG(LB) LB
,AVG(OH) OH
,AVG(TotalCost)...
January 2, 2009 at 9:19 am
We have a job that runs every couple of minutes on all servers and populates table with the following information: LoginName, HostName, DatabaseName, CreateDT, LastModifiedDT, etc.
From this we can see...
January 2, 2009 at 9:04 am
Please try this:
CREATE TABLE dbo.TestDate (ID TINYINT IDENTITY
...
December 31, 2008 at 2:14 pm
SELECT * FROM NoActivity
WHERE (BranchNumber = '135' ...
December 30, 2008 at 4:45 pm
In SQL Server 2000 it is not possible to pass a table column as parameter for a table-valued function.
December 30, 2008 at 4:14 pm
Not the most elegant solution, but maybe this will help:
SELECT ProductId
,COUNT(1) ProductCount
,SUM(MAN) MAN
,SUM(PUR) PUR
,SUM(SUB) SUB
,SUM(LB) LB
,SUM(OH) OH
...
December 30, 2008 at 2:09 pm
Viewing 9 posts - 16 through 24 (of 24 total)