Viewing 15 posts - 1,891 through 1,905 (of 2,171 total)
I think you can alter the data afterwards, but only if you turn off IDENTITY for the column with ALTER statement.
July 30, 2006 at 4:35 pm
I think this looks quite nice too...
SELECT CONVERT(VARCHAR, DATEADD(minute, 30 * (b0.i + b1.i + b2.i + b3.i + b4.i + b5.i), 0), 108) Time
FROM (SELECT 0 i UNION ALL...
July 28, 2006 at 1:14 pm
Microsoft says you just ad the parameter to the command object, never initialize it, and after excuting the stored procedure, check the value of the parameter.
The return_value parameter is a...
July 28, 2006 at 1:01 pm
For the command object, check out property Direction with value adParamReturnValue
July 28, 2006 at 4:20 am
For the command object, check out property Direction with value adParamReturnValue
July 28, 2006 at 4:20 am
What datatype is dteDiaJuro? What datatypes are @periodo_inicio and @periodo_fim?
Give the whole picture, please. Are you building a dynamic SQL statement?
July 27, 2006 at 7:52 am
What will happen if you replace your code with this instead?
SELECT @periodo_temp2 = SUM(nValorJuro4)
FROM #TAB2
WHERE dteDiaJuro BETWEEN @periodo_inicio AND @periodo_fim
Also, which datatypes are nValorJuro4 and @period_temp2?
July 26, 2006 at 11:33 pm
Suresh, use this function to calculate your MEDIAN.
CREATE FUNCTION dbo.fnMedian
(
@TypeOfRequest VARCHAR(20),
@Priority INT,
@InputStyle TINYINT
)
RETURNS FLOAT
AS
BEGIN
DECLARE @Items INT,
@Low INT,
@High INT
DECLARE @Values...
July 26, 2006 at 11:40 am
The median of {1,5,1233} is 5. It is the middle value of a set of numbers, not the average value.
Applicable only if there are odd numbers of values.
The median of...
July 26, 2006 at 11:21 am
-- prepare test data
declare @batches table (batchid int primary key clustered)
insert @batches
select 1 union all
select 3 union all
select 2
declare @tests table (testid int primary key clustered)
insert @tests
select 1 union...
July 26, 2006 at 4:14 am
Is it something like this you want?
-- prepare test data
declare @batches table (batchid int primary key clustered)
insert @batches
select 1 union all
select 2 union all
select 3
declare @tests table (testid...
July 26, 2006 at 3:57 am
You must use LEFT JOIN here. And possibly a CROSS JOIN, depending on your table designs.
I can't tell you more until you post the table design here, together with some sample...
July 26, 2006 at 3:47 am
And just a quick note to get the RelationGroup...
Put
select (select count(distinct main) from @relations r where r.main <= z.main) relationgroup, related
from (
and
) z
order...
July 26, 2006 at 3:23 am
DECLARE @sql VARCHAR(8000),
@Field VARCHAR(100)
SELECT @Field = MyField -- This is where you get the "6,7,8" string...
FROM MyTable
WHERE SomeID = 31
SELECT @sql = 'SELECT * FROM...
July 26, 2006 at 2:39 am
Viewing 15 posts - 1,891 through 1,905 (of 2,171 total)