SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

12many
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

Ian

12many
Starting Member

9 Posts

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

ABS(referencedid) Worked a treat

Ian
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.08 seconds. Powered By: Snitz Forums 2000