Viewing 15 posts - 16 through 30 (of 92 total)
Steven Cameron (6/23/2008)
-------------------------------------------------------------------------------
I selected ...
June 23, 2008 at 7:57 am
I was a bit hesitant to answer this one as I noticed there were checkboxes instead of radio buttons, and I thought to myself, "Hmmm... there's only one right answer,...
June 23, 2008 at 6:29 am
Someone else will have to help you out with the specifics on truncating/specific maintenance, but here's some spaghetti code for looping through databases and tables...
DECLARE @DBName varchar(128)
DECLARE databases CURSOR FOR
SELECT...
April 3, 2007 at 11:17 am
I agree with sam. This table design needs some help. If you really must do what you're suggesting here, this is the only way I can think of, and I'm...
April 3, 2007 at 9:47 am
I'm right with Kathi. If any of the stored procs being called in the cursors (AB_FINANCIAL, AB_OVERDUE_BALANCES, or AB_RECONCILIATION) modify the table structure of either FilesInDirectory or INTERFACEFILENAMES, you'll get...
April 3, 2007 at 9:18 am
Whoops, my bad... That's what I get for not testing out my solutions beforehand.
SELECT
OuterQuery.ID
, OuterQuery.School
, ISNULL( OuterQuery.EndYear, '' )
FROM #INSTITUTIONS_YEARS OuterQuery
INNER JOIN
( SELECT ID, MAX( ISNULL(...
April 3, 2007 at 6:22 am
You could try this replacing YourTableName in both places with your table name.
SELECT OuterQuery.Id
, OuterQuery.School
, ISNULL( OuterQuery.EndYear, '' )
FROM YourTableName OuterQuery
INNER JOIN
( SELECT Id, MAX( ISNULL( EndYear, '' ) )
FROM...
April 2, 2007 at 1:52 pm
Resurrecting this thread from the dead because I have questions for you, Jeff. It sounds like you're referring to a SQL Server solution here, but Ben was asking about Access. ...
March 30, 2007 at 12:49 pm
You might have to write an EXEC statement, but it looks like you're trying to do this from ASP. I'm not completely familiar with doing this sort of thing in...
March 14, 2007 at 2:19 pm
Well, this changes everything. Try this...
SELECT COid, BIid, BRid, COofficeName, CMclientName, BRrate AS 'Client Rate',
BIstandardRate AS 'Standard Rate', BIdescription
FROM billrate A, clientoffice,...
March 14, 2007 at 2:12 pm
Without seeing the larger query, it's a bit hard to determine why you're getting that error. Are you using an IN to introduce the subquery?
March 14, 2007 at 1:57 pm
Haha! Not really. It's just that I wrote a very similar query for someone else today over in this thread, and I figured I could just reuse it just...
March 14, 2007 at 1:32 pm
You have a good point, mrpolecat. I'll bet that's the issue. However, if Magy wants to keep BRid in the query, it complicates it quite a lot, but it is...
March 14, 2007 at 1:22 pm
SELECT OuterQuery.mytable_pk, OuterQuery.col1, OuterQuery.goods, OuterQuery.maxval
FROM mytable OuterQuery
INNER JOIN
( SELECT goods, max(maxval) as maxval
FROM mytable
GROUP BY goods
) InnerQuery
ON OuterQuery.goods = InnerQuery.goods
AND OuterQuery.maxval = InnerQuery.maxval
March 14, 2007 at 12:21 pm
In order for this to work, all the OrigCounty data must have the data exactly as you suspect... (County, State). If you have a null or a blank or maybe...
March 14, 2007 at 11:55 am
Viewing 15 posts - 16 through 30 (of 92 total)