Viewing 15 posts - 21,826 through 21,840 (of 26,490 total)
The following is test code. Look at it and adapt it as needed for your purposes:
declare @ClaimCat table(
Claims int,
Category char(2)
);
insert...
March 24, 2009 at 10:26 am
raghu (3/24/2009)
i have a proc which displays the result as
CLAIMS CATEGORY
12345 P1
42342 ...
March 24, 2009 at 10:10 am
It would help to see the actual code you are trying to replace. In addition changing from a cursor to a while loop doesn't really change much, it is...
March 24, 2009 at 10:09 am
foxjazz,
First, don't repost this thread, maybe we can get Steve to move it to a SQL Server 2005 forum.
Second, since you are using SQL Server 2005, please post future questions...
March 24, 2009 at 10:01 am
foxjazz,
You post the DDL for your tables, which is good. What you also need to do is post the SQL code you are writing and having difficulty with, not...
March 24, 2009 at 9:38 am
Roy Ernest (3/24/2009)
Maybe you should edit your post and state that you should not use the...
March 24, 2009 at 8:41 am
Is it me or are the people we are trying to help just getting dumber, or do we need to start commenting are code a lot more heavily?
March 24, 2009 at 7:18 am
You don't need to use the INSERT statements. Those were there to load the test table (dbo.TestTab1) with data, which was then used to load dbo.TestTab2 with the same...
March 24, 2009 at 7:15 am
As I said before, we need the DDL (CREATE TABLE statement) for the table, sample data for the table (formated as INSERT statements so we may cut, paste, and run...
March 23, 2009 at 6:08 pm
suhailquadri (3/23/2009)
following expects to display distinct rows but it is not.. can any body help me out..
TID datatype is integer
SELECT distinct TID, EID, ENAME, EDATE, UID, EISSUCCESSFUL, EREMARKS
FROM ...
March 23, 2009 at 5:10 pm
Here is some test code for you to start with and it does it all in T-SQL, not SSIS:
-- Create initial test table that will be the source data
create table...
March 23, 2009 at 4:29 pm
Jack Corbett (3/23/2009)
Steve Jones - Editor (3/23/2009)
He's short, but not Yoda short.I'll let Lynn post a closer photo if he likes.
And what's your definition of short? Even though I'm...
March 23, 2009 at 3:08 pm
You are missing the "end" for the case statement in your original code.
try one of these:
select
(case when (leavedate is null)
...
March 23, 2009 at 2:27 pm
True, but for me there are three seasons of soccer, Fall, Spring, and Tournament with a definate break in there to relax. I haven't done indoor soccer and I...
March 23, 2009 at 1:25 pm
Viewing 15 posts - 21,826 through 21,840 (of 26,490 total)