Viewing 15 posts - 46 through 60 (of 87 total)
hi there,
please post table structures and sample data
cheers
January 20, 2010 at 10:05 pm
the primary key constraint reqiures values to be unique, by deleting a value, you are still satisfying that reqiurement.
i dont see why you can't
January 20, 2010 at 2:37 am
run this sql
declare @s-2 nvarchar(200)
set @s-2= '[Q1 ''10] ,[Q2 ''10] ,[Q3 ''10] ,[Q4 ''10] '
select @s-2
--this is the result
[Q1 '10] ,[Q2 '10] ,[Q3...
January 20, 2010 at 1:53 am
allow your label to read as [Q4 '10], but your value as [Q4 ''10].
you can achieve this by selecting your quarters as labels and use a replace quarters for values.
hope...
January 20, 2010 at 1:26 am
Hi again,
i inserted the data as
select * into test2 from (
select 'a1' Value, 'S9' Value2,NULL Date, 'M1' as Value3
union all
select 'b1' ,'S3' ,NULL ,'B1'
union all
select 'b1' ,'S3' ,'2010-01-27 00:00:00.000', 'B1'
union...
January 19, 2010 at 10:53 pm
Or select cast(18900 as float)/3600 instead of 2 conversions
January 19, 2010 at 10:15 pm
if you can post some sample data, it would help.
but to answer your question, a'where date is not null' should get what you are looking for
January 19, 2010 at 10:13 pm
Apart from dynamic sql, i dont see how this can be done.
Here's an example...
declare @s-2 nvarchar(200)
declare @w nvarchar(200)
declare @col nvarchar(200)
declare @sql nvarchar(200)
set @s-2 ='Select...
January 19, 2010 at 10:07 pm
Hi,
will this not work?
declare @selectColumns nvarchar(400)
declare @W nvarchar(200)
set @selectColumns ='[Q1 ''10] ,[Q2 ''10] ,[Q3 ''10] ...
January 19, 2010 at 5:20 am
I agree, thus the "True" below,
shanu.hoosen (1/18/2010)
nguyennd (1/14/2010)
But 2 result set are same. Why?True,
I was just answering nguyennd's question above:-)
Again i was answering the 'why is the data...
January 18, 2010 at 10:48 pm
nguyennd (1/14/2010)
But 2 result set are same. Why?
True,
I was just answering nguyennd's question above:-)
January 18, 2010 at 7:35 am
Hi nguyennd,
The answer is simple. you do have a clustered index(Primary Key) on the key column. SQL will store data based on this column.
If i have to alter your create...
January 18, 2010 at 7:13 am
Hi there,
You looking to divide by 3600
eg. 18900/3600=5.25
January 18, 2010 at 5:36 am
Viewing 15 posts - 46 through 60 (of 87 total)