Viewing 5 posts - 1 through 5 (of 5 total)
declare @datetime table
(EmpID int ,
WrkdTime datetime
);
insert into @datetime
select '12','2010-09-01 10:06:00.000' union all select '12','2010-09-01 10:11:00.000' union all
select '12','2010-09-01 10:16:00.000' union all select '12','2010-09-01 12:11:00.000' union all
select '12','2010-09-02 10:00:00.000' union...
January 21, 2011 at 11:42 pm
declare @tbl table
(
ID int ,
NAME varchar(max),
STATE varchar(max),
[E.MAIL] varchar(max)
);
insert into @tbl
select 1,'JAMES',NULL, NULL union all
select 1, NULL ,'CA', NULL union all
select 1 ,NULL, NULL ,'abc@hotmail.com' union all
select 2,'steve',NULL,...
January 20, 2011 at 3:53 am
declare @tbl table
(
ID int ,
NAME varchar(max),
STATE varchar(max),
[E.MAIL] varchar(max)
);
insert into @tbl
select 1,'JAMES',NULL, NULL union all
select 1, NULL ,'CA', NULL union all
select 1 ,NULL, NULL ,'abc@hotmail.com' union all
select 2,'steve',NULL,...
January 20, 2011 at 3:52 am
create procedure usp_Returnadd(@Address varchar(max))as
begin
insert into tbl
select newid(),@Address
WHERE not EXISTS
(
SELECT * FROM Tbl ...
January 19, 2011 at 10:17 pm
declare @products table
(
price int identity(1,1) primary key,
product varchar(30)
);
INSERT into @products
Select 'toy' union all
Select 'toy' union all
Select 'toy' union all
Select 'toy' union all
Select 'game' union all
Select 'game' union...
January 19, 2011 at 4:59 am
Viewing 5 posts - 1 through 5 (of 5 total)