Viewing 14 posts - 1 through 14 (of 14 total)
Hi,
There is no index because this is a temp table to find the Median value per Code.
Hope this clears.
Thanks
March 3, 2010 at 10:09 am
Hi
Apoligize for the confusion..
Here is what I want
ID CODE Value Volume RunningTotal Average
1 ...
March 3, 2010 at 9:47 am
Hi,
Actually 46 will not be there as the next row will be for different ID
i.e
Insert into dr_temp(ID,Code,Value,Volume) Values(
2,'120',31,2311)
if present then Yes! it matches, I think Let's get the 1st...
March 2, 2010 at 2:41 pm
Hi,
Yep we can use the last one.
Can this done in a SQL Query?
Thanks
March 2, 2010 at 2:20 pm
Hi,
Thanks for the reply
Here is the business rule
280164.5 falls in the range b/w 106886 and 380683
However the ending range i.e 380683 > than 280164.5, due to which we need to...
March 2, 2010 at 2:03 pm
Thanks...
But the only problem is Description is ntext field and Distinct doen't work on this type.
I cannot convert to nvarhar(4000) since only 4000 charactes will be fetched.
:hehe:
its taking time to...
November 11, 2008 at 11:31 am
Hi Seth Phelabaum,
DECLARE @Language VARCHAR(10)
SET @Language = 'JP'
SELECT DISTINCT T1.ID, COALESCE(T2.Name, T3.Name) Name, COALESCE(T2.Description, T3.Description) Description,
COALESCE(T2.Language, T3.Language) Language
FROM #Table1 T1
...
November 11, 2008 at 10:21 am
Thanks for you reply.
Actually let me explain what I am looking for
Insert into Table1 (ID, NAME, Descrition, Language)
Select 1,’TEST’,’English Testing’,’EN’ UNION ALL
Select 1,’JP TEST’,’JAPAN Testing’,’JP’ UNION ALL
Select ...
October 22, 2008 at 12:44 pm
Any one can please provide me a soluition.
Thanks
October 22, 2008 at 10:57 am
Hi gardian
The Query you have provided works well for this cond
Insert into Table1
(ID, NAME, Descrition, Language)
Select 1,’TEST’,’English Testing’,’EN’ UNION ALL
Select 1,’JP TEST’,’JAPAN Testing’,’JP’ UNION ALL
Select 1,’CH TEST’,’CHINA...
October 22, 2008 at 10:20 am
Here are my replies
You supply a language and return a row for each ID, attempting to grab the one for that language. If that language does not exist in...
October 16, 2008 at 1:12 pm
Thanks. It works well.
If I am not wrong this will always get the max of the Version id.
However my requirement is this
Insert into Table1
(ID, NAME, Descrition, Language)
Select 1,’TEST’,’English...
October 16, 2008 at 12:23 pm
Create Table Table1
{
VersionID INT IDENTITY(1,1) PRIMARY KEY CLUSTERED,
ID INT,
NAME Varchar(50),
Description varchar(100),
Language Char(5)
}
Insert into Table1
(ID, NAME, Descrition, Language)
Select 1,’TEST’,’English Testing’,’EN’ UNION ALL
Select 1,’JP TEST’,’JAPAN Testing’,’JP’ UNION ALL
Select...
October 16, 2008 at 11:59 am
Viewing 14 posts - 1 through 14 (of 14 total)