Viewing 15 posts - 511 through 525 (of 683 total)
Hans is right, jthill. This is not something you really should be doing with T-SQL.
Why don't you take a step back, describe what it is you want to achieve (i.e....
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
April 19, 2006 at 9:47 am
Hi Richard,
I'm guessing this isn't as easy as...
select sum(hours), sum(cost), sum(esthours), sum(estcost) from yourview
...but I don't see why not from your description of your problem.
Please post some sample data and...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
April 19, 2006 at 9:34 am
Pieter,
I can't get my head around it without some sample data, but surely if you use a full outer join and no where clause, nothing will be left out? Is...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
April 19, 2006 at 7:29 am
Pieter - Why would you do that rather than simply a left outer join?
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
April 19, 2006 at 6:33 am
Hi jthill,
That's as clear as mud to me. ![]()
If you post an example of what you're trying to do (i.e. table structure, sample data,...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
April 19, 2006 at 6:12 am
Hi Kavita,
I don't know if the link gave you what you needed (there's a lot there!), but I've had a stab...
--data
declare @t table (i int identity(1,...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
April 19, 2006 at 4:55 am
Here's some info on the ISNUMERIC function, and a work-around...
http://aspfaq.com/show.asp?id=2390
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
April 19, 2006 at 3:53 am
Hi Ben,
Try using 'left outer join' instead of 'inner join'...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
April 19, 2006 at 3:31 am
The answer is probably yes, but it does depend on what 'sproc' does.
If you post an example with the table structure, some sample data, and the expected output, you'll get...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
April 18, 2006 at 10:18 am
Hi Ashok,
If you post an example with your table structure, some sample data and the result you would like to get based on that sample data, you'll get an answer...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
April 18, 2006 at 10:08 am
Hi Darin,
The case method is more efficient, and I'd normally recommend using that. If you need to group/rollup numbers, you can always use the select containing the cases as a...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
April 12, 2006 at 9:57 am
I can't find the article by Itzik Ben Gan - can someone please post a link.
Any idea when he 'came up with' the algorithm? I ask because it is suspiciously...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
April 12, 2006 at 7:00 am
Hi Karthik,
It's hard to understand what you're asking for, but maybe it's this...
--data
declare @t table (words varchar(100))
insert @t
select 'hello, thanks, movies, tickets'
union all select 'abc,...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
April 12, 2006 at 4:56 am
I suspect this is not what you want, but it does do what you asked...
![]()
Ryan Randall Solutions are easy. Understanding the problem, now, that's the hard part.
April 12, 2006 at 4:40 am
Thanks Howard. Glad I could help ![]()
It's not such an easy skill to learn to define a problem well, but it looks like you're...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
April 7, 2006 at 2:45 am
Viewing 15 posts - 511 through 525 (of 683 total)