Viewing 15 posts - 2,611 through 2,625 (of 5,588 total)
Does this help you out?
declare @test-2 TABLE (RowID int IDENTITY PRIMARY KEY CLUSTERED,
...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 2, 2010 at 8:34 am
Well, it looks to me like you are going to have to get your mapping by an aggregate query against the base table (or, if it is being pushed into...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 2, 2010 at 8:22 am
From your first post:
the profit is
entry price - next exit price for each entry
So, purchase price (p.Price) minus sale price (s.Price).
It definitely seems to me that the "profit" would...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 2, 2010 at 8:13 am
Well, you didn't give us any sample data (in comma-delimited format) to play with, so all I can do for you is to point you to this: Click here for...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 2, 2010 at 7:34 am
From what I can gather, for each entry in t, you want to have a result of t.id, and the minimum t.id where t.col = inserted.col - correct?
In order to...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 2, 2010 at 7:27 am
Is this what you're talking about?
-- declare and initialize variables
DECLARE @StartDate datetime,
@EndDate datetime;
-- get first of year three years ago
SET @StartDate =...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 2, 2010 at 4:59 am
You didn't specify a few things that I'm assuming.
First, you want to split the string apart at the spaces.
Second, you only want items from the split that contain an underscore.
This...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 2, 2010 at 4:51 am
Sounds like you need to use a Conditional Split
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 1, 2010 at 9:44 pm
Jeff Moden (11/1/2010)
ps. (10/29/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 1, 2010 at 9:40 pm
Duplicate post. Please do not respond to this thread; please respond to this thread for all responses.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 1, 2010 at 9:38 pm
In a dual-boot situation.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 1, 2010 at 6:41 pm
Craig Farrell (11/1/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 1, 2010 at 6:29 pm
select top 1 ... order by order_date desc
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 1, 2010 at 3:39 pm
Try changing:
+ 'Use ?
to
+ 'Use [?]
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 1, 2010 at 3:38 pm
Several presenters at conferences do. They either have it set up as a dual-boot, or run it under a VM. However, it CANNOT be installed on the Mac OS -...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 1, 2010 at 3:34 pm
Viewing 15 posts - 2,611 through 2,625 (of 5,588 total)