Viewing 15 posts - 271 through 285 (of 532 total)
Take a look at SQL Server Integration Services (SSIS).
July 1, 2010 at 3:25 pm
Hopefully this is what you're wanting:
CREATE TABLE #tempOrder
(
row_num INT PRIMARY KEY CLUSTERED,
tran_id NVARCHAR(14),
emp CHAR(5),
prior_emp CHAR(5),
tran_action NVARCHAR(4),
tranFlag BIT,
grpOrder INT
)
INSERT INTO #tempOrder (row_num, tran_id, emp, prior_emp, tran_action, tranFlag, grpOrder)
SELECT sq.row_num,
sq.tran_id,
sq.emp,
sq.prior_emp,
sq.tran_action,
sq.tranFlag,
grpOrder = CASE...
July 1, 2010 at 3:15 pm
DO NOT use this code with reading Jeff Moden's article[/url] about the quirky update method.
You would still need to take this data and pivot/crosstab. If you want the sequence...
July 1, 2010 at 2:07 pm
First, there are a couple of issues with your structure. To put the transactions in order, there needs to be something to order it by. A datetime or...
July 1, 2010 at 12:54 pm
What would the result set be? What exactly are you trying to do? Your explanation of what you want is a bit lacking.
July 1, 2010 at 11:48 am
Karthikeyan-418364 (7/1/2010)
July 1, 2010 at 11:09 am
Is this what you're trying to do?
SELECT wd.MeterCode, wd.MeterUsage, wd.ReadingYear, wd.Readingtype
FROM #WaterDays wd
WHERE NOT EXISTS
(
SELECT sq.MeterCode
FROM #WaterDays sq
WHERE sq.MeterCode = wd.MeterCode
AND sq.Readingtype = 'Final'
)
June 30, 2010 at 5:21 pm
Not sure what kind of error you're talking about. Sounds like you want to know if records fail to join, but that wouldn't be an error ... it would...
June 30, 2010 at 3:20 pm
PaulB-TheOneAndOnly (6/30/2010)
bteraberry (6/30/2010)
PaulB-TheOneAndOnly (6/30/2010)
Gopal Rathore (6/30/2010)
June 30, 2010 at 3:08 pm
anaherde (6/30/2010)
It used to work fine, but a week ago it began to give error...
June 30, 2010 at 11:31 am
PaulB-TheOneAndOnly (6/30/2010)
Gopal Rathore (6/30/2010)
June 30, 2010 at 11:19 am
WayneS (6/29/2010)
2. I see you changed the input parameter from varchar(8000) to varchar(7999), but I don't see a reason for that in your notes. Would you elaborate on this please?
I...
June 29, 2010 at 5:56 pm
I saw your other post about a seemingly related query before ...
There is a fairly major problem in your question in that your select statement is pulling from a source...
June 29, 2010 at 5:48 pm
goodguy (6/29/2010)
So I agree with your suggestion, but then...
June 29, 2010 at 3:17 pm
There may be an easier way, but this should work:
declare @temp table (theDate datetime, quantity int, theDate1 datetime, quantity1 int);
with cteTable (rowNum, theDate, quantity)
as
(
select ROW_NUMBER() OVER(PARTITION BY theDate ORDER BY...
June 29, 2010 at 1:31 pm
Viewing 15 posts - 271 through 285 (of 532 total)