Viewing 10 posts - 31 through 40 (of 40 total)
As suggested i can use output clause as one way.
This is a ETL process and the deletion logic in the WHERE clause varies from table to table based on business...
March 5, 2011 at 10:32 am
Using CTE, you can select, update and delete specific record(s). Pls refer the below code
create table #temp (id int)
--delete #temp
insert into #temp values(1)
insert into #temp values(2)
insert into #temp values(3)
insert into...
March 4, 2011 at 3:32 am
I too tried the same and end up with error. To quickly start with, i am trying to create CLR function to handle this and bring the same functionality and...
February 11, 2011 at 4:08 pm
Hi,
How do we filter the result using WHERE and HAVING clause as used in group by
Say like...
select MAX(TaxRate) AS 'Tax Rate',StateProvinceID
from Sales.SalesTaxRate where Name <> 'Canadian GST'
group by StateProvinceID
having...
November 25, 2010 at 7:20 am
Thanks for posting this.
I am new to SQL server programming. Though both question and answer was clear i would like to know the reason or why SQL server is...
November 25, 2010 at 5:25 am
Pradeep, Thanks for the update. The link you provided was very useful.
October 27, 2010 at 11:18 am
Hi,
Thanks for posting this. I have few clarification on COALESCE result type and i am confused the type conversion.
Consider the case below.
--Case 1
DECLARE
September 9, 2010 at 6:09 am
Hi,
Thanks for the update.
Still few more clarification needed.
We have 8192 bytes of page. 96 bytes is used for header information.In my above example 16 bytes will be reserved for offset...
August 28, 2010 at 10:31 am
Hi,
But another sample query as shown below gives expected result which contradicts from while loop.
DECLARE @i float
set @i = .9
set @i = @i + .1
-- Query 1
if @i <> 1
print...
August 27, 2010 at 3:51 am
Viewing 10 posts - 31 through 40 (of 40 total)