Viewing 15 posts - 376 through 390 (of 761 total)
This might help:
--Creating Table
CREATE TABLE Ex
(
[Task] [varchar](10) NULL,
[WeekStart] [date] NULL,
[PercentageProductivity] [int] NULL)
--Inserting Sample Data
Insert Into Ex
Select 'Task1', '2012/05/19', 40
Union ALL
Select 'Task1', '2012/05/26', 100
Union ALL
Select 'Task2', '2012/05/26', 30
Union ALL
Select 'Task2', '2012/06/02',...
May 31, 2012 at 12:14 am
You can use a CTE to update your table as follows:
--Creating Table
Create Table Ex1
(idint,
product int,
price int,
qty int,
total int)
--Inserting Sample Data
Insert Into Ex1(id, product, price, qty)...
May 30, 2012 at 11:22 pm
This might help:
--Creating Table
Create Table Ex1
(Col1 int,
Col2 char(1) )
--Inserting Sample Data
Insert Into Ex1
Select 1, 'a'
Union ALL
Select 2, 'a'
Union ALL
Select 1, 'b'
Union ALL
Select 3, 'c'
Union ALL
Select 1, 'd'
Union ALL
Select 2,...
May 30, 2012 at 11:07 pm
riya_dave (5/29/2012)
thanks everyone
You're welcome 🙂
May 29, 2012 at 10:38 pm
sridhar_kola (5/29/2012)
May 29, 2012 at 4:16 am
sridhar_kola (5/29/2012)
MIDTime (Hh:Mm)
M110:22
M112:15
M113:22
M116:00
M117:50
I need to aggregate the counts for MID(M1) based on the condition "to aggregate values that are beyond 2 hrs window"
So...
May 29, 2012 at 2:42 am
You can't specifically create an in memory table in SQL Server.
Why??
Because, SQL Server uses an advanced caching mechanism that ensures that frequently accessed data will normally remain in the data...
May 29, 2012 at 1:09 am
Yes, on a larger set of data your method works better.
I had checked the stats on the same data set that the OP supplied....on that set the stats for both...
May 29, 2012 at 12:39 am
You can also do it using simple sub queries:
--Creating Tables
Create Table Table1
(ID int,
SYMBOL varchar(10),
DATE Date, PRICE Float,
VOLUME int )
Create Table Table2
(ID int,
SYMBOL varchar(10),
COMPANY varchar(50),
...
May 29, 2012 at 12:18 am
Stewart "Arturius" Campbell (5/28/2012)
Try using a LEFT JOIN instead
+1 Stewart.
LEFT JOIN would do it.
May 28, 2012 at 5:00 am
Please explain about what "columns" you have in mind, and who is "using" them.
Are you suggesting that some dynamic procedure is executing and you want to know which columns it...
May 28, 2012 at 4:04 am
This will work:
--Creating table
Create Table Ex
(ac varchar(30) )
--Insert Query For Your Requirement
Insert Into Ex Values('Account''s Value')
--Checking the Inserted Value
Select * From Ex
May 28, 2012 at 12:43 am
I tried executing the following example from your link:
CREATE TABLE #temp (DB sysname, [Schema] sysname, Routine sysname);
INSERT INTO #temp
EXECUTE OVER_SET '
SELECT ROUTINE_CATALOG, ROUTINE_SCHEMA, ROUTINE_NAME
...
May 27, 2012 at 11:11 pm
RBarryYoung (5/26/2012)
vinu512 (5/4/2012)
However un-SetBased( 😛 )...
May 27, 2012 at 10:34 pm
Is the Cursor being Deallocated after it has been used in the Trigger??
EDIT: Sorry didn't read the original post.
But, on second thought I would still ask the above question.
You just...
May 25, 2012 at 5:40 am
Viewing 15 posts - 376 through 390 (of 761 total)