• T-SQL supports all your common comparison operators, e.g.

    =

    <

    >

    != or <>

    Comparisons involving two rows might imply the comparison would take place in a WHERE-clause. If you provide table definitions (CREATE TABLE statements), some test data (INSERT INTO statements) and a better idea of what you're trying to do I'd be happy to further help you.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato