Viewing 15 posts - 12,571 through 12,585 (of 26,486 total)
Instead of what you posted, how about this:
create table dbo.WorkItems
(workitem_id int
, app varchar (20)
, resolution_reason varchar(20)
, severity int
, date_opened datetime
)
insert into dbo.WorkItems
values
(20, 'hearts', 'deferred', 1, getdate()-30),
(21, 'spades', 'deferred', 1,...
April 22, 2012 at 10:13 pm
Not quite sure what you are attempting to accomplish based on your post. It would help if you would take the time to read the first article I reference...
April 22, 2012 at 9:21 pm
polkadot (4/22/2012)
I would say that it would create such a wide...
April 22, 2012 at 9:19 pm
SQLServerCentral.com is a MS SQL Server site. Your code is Oracle and you will probable get much better help from a site that is Oracle centric.
April 22, 2012 at 3:12 pm
Missed where your syntax error was caught. But as I looked at what you wanted next, does the following work:
create table dbo.WorkItems
(workitem_id int
, app varchar (20)
, resolution_reason varchar(20)
)
insert into...
April 22, 2012 at 2:10 pm
polkadot (4/22/2012)
April 22, 2012 at 1:17 pm
I'd say your problem is that your code is syntacticly incorrect. You may want to review the PIVOT operator in Books Online.
Below is what I was able to come...
April 22, 2012 at 1:05 pm
First, you are fairly new here, so one thing you should do is read the first article I reference below in my signature block. It will show you what...
April 22, 2012 at 12:07 pm
Which of the following do you want?
select CONVERT(varchar(10), getdate(), 102) + '.' + CONVERT(varchar(10), dateadd(dd,datediff(dd,0,getdate()) + 1,0),2);
select CONVERT(varchar(10), getdate(), 102) + '.' + CONVERT(varchar(10), dateadd(dd,datediff(dd,0,getdate()) + 1,0),102);
April 21, 2012 at 10:42 pm
I'd suggest hiring someone more experienced with MS SQL Server to help you on your project.
April 21, 2012 at 6:34 pm
riya_dave (4/20/2012)
create table #temp4(account INT,
monthirr FLOAT)
it gives syntax error
INSERT INTO #temp4
(select account ,(select i1 from account(p1) phd
union
select MTD from #temp2)...
April 21, 2012 at 2:44 am
Here is what you are trying to accomplish:
create table Opening([Date] date,item_id int,location_id int,qty int)
Insert into Opening
Select '14-Mar-2012', 75 ,36 ,1
Union
select '14-Mar-2012', 75, 43, 1
Union
select '29-Mar-2012' ,75, 43, 3
Union
select...
April 21, 2012 at 2:40 am
deebabat (4/21/2012)
DECLARE @num INT = 102
SET STATISTICS TIME ON;
SET STATISTICS IO ON;
;WITH
L0 AS(SELECT 1 AS c UNION ALL SELECT 1),
...
April 21, 2012 at 12:27 am
deebabat (4/21/2012)
Here is another method I tried and it's worked just fine.
DECLARE @num INT = 1000000
SET STATISTICS TIME ON;
SET STATISTICS IO ON;
;WITH
L0...
April 21, 2012 at 12:20 am
Viewing 15 posts - 12,571 through 12,585 (of 26,486 total)