Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 negative Ids
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

9 Posts

Posted - 04/12/2013 :  03:23:32  Show Profile  Reply with Quote
Hi there

I have two tables,
table one is a list items that have a unique id.
table two is a list of things done with those items.
if what ever has been done is normal the referenced id in table two is positive.
Other wise it gets put in as a negative.
my question is, is it possible to to reference table 1's items with a negative representation of its Id

Many thanks for any help


Starting Member

9 Posts

Posted - 04/12/2013 :  03:28:02  Show Profile  Reply with Quote
HI There

ABS(referencedid) Worked a treat

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.55 seconds. Powered By: Snitz Forums 2000