Viewing 14 posts - 16 through 29 (of 29 total)
hi,
i have done both of them and i think it depends,
somethimes you do not have the ablility to run your query with union all because you may have your...
March 11, 2009 at 5:42 am
hi
you may need something like this:
select REPLICATE('0',2 - LEN(cast(month(getdate())as varchar(2)))) + cast(month(getdate())as varchar(2))
March 11, 2009 at 5:35 am
hi
i think you better use html.encode in your application code before saving
the data
February 8, 2009 at 4:00 am
hi
select *
from TableName
where DateField Between DATEDIFF(day, GetDate(), 90) and getdate()
February 8, 2009 at 3:50 am
hi
i think you can use xml datatype for ommiting the extra spaces on the document
February 8, 2009 at 3:43 am
hi,
you can use sum function but also you need to grou by other fileds too,
select f1, f2,sum(f3)
group by f1,f2
February 8, 2009 at 2:37 am
hi,
you can set the default property of the column to getdate() for new records , and for updates you may use some trigger to handle that,
February 7, 2009 at 12:55 am
hi,
if you have table1 and table2 and a totalTable with the same columns and same datatypes, you can use something like this:
insert into totalTable
select * from table1
insert into totalTable
select *...
February 7, 2009 at 12:37 am
Viewing 14 posts - 16 through 29 (of 29 total)