Hi
SELECT IDENTITY(INT) "n" INTO Numbers
FROM sysobjects s1
CROSS JOIN sysobjects s2
GO
SELECT * ,CASE n%2 WHEN 0 THEN 'even' ELSE 'odd' END
FROM Numbers
> Hi!
>
[quoted text clipped - 4 lines]
>
> Thanks all,
Marius - 07 Jul 2008 10:53 GMT
How can I modify this sentence to only give me the rows where a certain
column has a even number?
SELECT * ,CASE n%2 WHEN 0 THEN 'even' ELSE 'odd' END
FROM Numbers

Signature
Marius
> Hi
> SELECT IDENTITY(INT) "n" INTO Numbers
[quoted text clipped - 13 lines]
> >
> > Thanks all,
Uri Dimant - 07 Jul 2008 10:59 GMT
Add WHERE n%2=0
> How can I modify this sentence to only give me the rows where a certain
> column has a even number?
[quoted text clipped - 21 lines]
>> >
>> > Thanks all,