Viewing 15 posts - 11,506 through 11,520 (of 26,486 total)
If you are asking the latter, then give this a try. It isn't tested as I have nothing to test it against.
WITH CurrentPO AS (
SELECT
v.ACCTNO,
...
June 6, 2012 at 9:33 am
Not quite sure what you are asking for here. Are you asking for the most recent PO regardless of account number or are you looking for the most recent...
June 6, 2012 at 9:27 am
We are going to need more information to really help. Please post the DDL (CREATE TABLE statement) for the table(s) used in the query, sample data (as a series...
June 6, 2012 at 9:21 am
You do know that 1) SQLServerCentral.com is a site whose focus is Microsoft SQL Server and 2) you posted this is a SQL Server 2005 Integration Services forum.
You may not...
June 6, 2012 at 8:53 am
SQL_NuB (6/6/2012)
its being stored as a number(6,0) such as 200109
Made a slight change:
DECLARE @MyDate DECIMAL(6,0);
SET @MyDate = 201003;
SELECT DATEADD(mm, -12, DATEADD(mm, (CAST(@MyDate AS INT) % 100) - 1, DATEADD(yy, (CAST(@MyDate...
June 6, 2012 at 8:45 am
Here is an alternative method for converting a date stored as an integer in the format yyyymm:
DECLARE @MyDate INT;
SET @MyDate = 201003;
SELECT DATEADD(mm, -12, DATEADD(mm, (@MyDate % 100) - 1,...
June 6, 2012 at 8:43 am
sestell1 (6/6/2012)
That's a bit frightening. Good to know. I'm glad I've never run into this!
That's why I submitted this question. I'm sure at some point that someone...
June 6, 2012 at 8:31 am
Okay, I should have used the DATE data type for the question, then I could have left the time portion off the answers.
June 6, 2012 at 8:27 am
Why do you care if there is a gap in the id's? Is there a business case for this?
June 6, 2012 at 6:38 am
Well, he didn't say if the web server was internal or external, so it depends. You could possibly have an external website requiring authentication allowing you to restrict access...
June 5, 2012 at 4:30 pm
harri.reddy (6/5/2012)
u dont really need to know code,i just want to know which join will give me duplicate rows.left,right ,full.
Here is my suggestion, read the first article I reference below...
June 5, 2012 at 4:26 pm
harri.reddy (6/5/2012)
u dont really need to know code,i just want to know which join will give me duplicate rows.left,right ,full.
I don't know, why don't you just try each and see...
June 5, 2012 at 4:21 pm
Bad_Karma (6/5/2012)
June 5, 2012 at 4:13 pm
latingntlman (6/5/2012)
I have tested my 3 steps of the solution and they all work great. However, after presenting it, I was asked that...
June 5, 2012 at 2:20 pm
Go here: http://www.bing.com/search?q=sql+server+2008+licensing&qs=AS&form=QBLH&pq=sql+server+2008+licensing&sc=8-25&sp=1&sk=. Clink on the third link. Page 3 of the overview tells you what you need to know regarding licensing.
All you need to do is install...
June 5, 2012 at 2:10 pm
Viewing 15 posts - 11,506 through 11,520 (of 26,486 total)