Viewing 15 posts - 1,876 through 1,890 (of 2,171 total)
Aravind, try this solution and see if it does the trick for you
SELECT a.ID,
MAX(CASE WHEN b.Col2 = 'X' THEN b.Col1 END) X,
MAX(CASE WHEN b.Col2 = 'Y' THEN...
August 4, 2006 at 2:20 am
Also you consider changing your database engine from DAO to ADO in ACCESS 2003 when upgrading a solution from ACCESS 97.
August 4, 2006 at 1:02 am
Yes, that is because SQL Server automatically has a RETURN_VALUE output, shich you need to catch.
August 4, 2006 at 1:01 am
You can do without DTS. You can use OPENROWSET instead.
August 4, 2006 at 12:52 am
Use CHARINDEX function.
SELECT Calldata, CHARINDEX('/', Calldata) FROM [Ron's Table]
August 3, 2006 at 8:28 am
Call with either.
SELECT Priority,
MIN(dbo.fnMEDIAN(NULL, Priority, 2)) Median,
COUNT(*) Count
FROM MyTable
GROUP BY Priority
ORDER BY Priority
Or
SELECT Priority,
MIN(dbo.fnMEDIAN(NULL, Priority, 3)) Median,
COUNT(*)...
August 2, 2006 at 1:55 pm
Yes. Replace the MEDIAN function with this new one. For getting the median over Priority only, call this function with dbo.fnMEDIAN(NULL, Priority, 2) or dbo.fnMEDIAN(NULL, Priority,
August 2, 2006 at 1:47 pm
Dinakar has a solution, but the way he wrote it, the database can't use any index for the date column.
Use this instead
SELECT * FROM my_table where created_date >=...
August 2, 2006 at 12:02 pm
SELECT [Type of Request],
Priority,
MIN(dbo.fnMEDIAN([Type of Request], Priority, 0)) Median,
COUNT(*) Count
FROM MyTable
GROUP BY [Type of Request],
Priority
ORDER BY [Type of Request],
Priority
Or
SELECT ...
August 2, 2006 at 9:20 am
David, you are aware the BETWEEN operator is INCLUSIVE with limits?
In your case, BETWEEN 7 AND 15 is true for hours 07, 08, 09, 10, 11, 12, 13, 14 and...
August 2, 2006 at 1:58 am
You mean something like this? I took the liberty to rewrite and optimize your procedure a little...
ALTER PROCEDURE dbo.p_dtu_Store_Line_Fault_Data
(
@AssetID int,
@Timestamp datetime,
@FaultCode int,
@State int
)
AS
August 2, 2006 at 1:52 am
-- prepare test data
declare @section table (companyid int, sectionid int, classid int, sectiontyid int)
insert @section
select 1370, 295, 198, 1 union all
select 1370, 300, 198, 2 union all
select 1370, 482, 277,...
August 1, 2006 at 1:31 pm
Yes, there are easy ways.
Let us know what the files look like and how you compare two rows.
August 1, 2006 at 12:41 pm
By using LEFT JOIN and check for NULL values in column.
And query the files with OPENROWSET function.
Sorry I can't help you more, but if...
August 1, 2006 at 7:45 am
What happened when you tried the first and second time?
August 1, 2006 at 7:42 am
Viewing 15 posts - 1,876 through 1,890 (of 2,171 total)