Viewing 15 posts - 541 through 555 (of 683 total)
When other solutions are loopy, you can always count on numbers
(sorry )
March 29, 2006 at 9:16 am
And here's the kind of logic you can use in your trigger/sp/whatever...
--data
declare @t table (Name varchar(10), DateFrom datetime, DateTo...
March 29, 2006 at 8:27 am
Did I hear my name?
It looks to me (though I could be wrong) like that link isn't quite what you're looking for because...
March 29, 2006 at 5:17 am
Hi Neetu,
You can use 'with rollup'...
--data
declare @t table (Yr int, Branch int, TRec int)
insert @t
select 2004, 1, 1000
union...
March 29, 2006 at 2:43 am
For the pedants, you could use
MyDateCol >= '2006-03-26' and MyDateCol < '2006-03-27' (note <, not <=)
You calling me a pedant?
March 29, 2006 at 1:34 am
It is possible - just not a good idea.
March 29, 2006 at 1:27 am
Hoa,
How's this...?
--data
declare @t table (Col1 int, Col2 varchar(100))
insert @t
select 917, '2294,2294,2294,2294'
union all select 918, '2294,2294,2294'
union all select 920,...
March 28, 2006 at 10:34 am
There's what we needed! Col2 can have different values in its list, and you've shown what you'd want to do with them. Now, on with the solution...
March 28, 2006 at 10:12 am
Is there some reason why you can't just use cast? See example below...
--data
declare @t table ([Account number] char(10))
insert @t
select '00004'
union all select '0010'
union all select...
March 28, 2006 at 9:48 am
I know this isn't what you're asking for, but here's a solution which works for your example. Now, can you give us an example which breaks this solution? That will make...
March 28, 2006 at 9:42 am
No worries Daryl. Always fun to play with intellectual questions
I was particularly proud of the confusing nature of one of the statements in...
March 28, 2006 at 9:35 am
Steve - wouldn't you want to sort out that non-normalised data structure before you spent ages writing a stored procedure based on it? (As I mentioned above...
March 28, 2006 at 9:30 am
That doesn't answer the question he was asking, Amit.
March 28, 2006 at 7:58 am
Viewing 15 posts - 541 through 555 (of 683 total)