|
-
Jul 9th, 2009, 05:16 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Refer to same Id on table
Hello all,
I just have a quick question on sql, something that I thought was strange but it does exist.
I need to create a table which contains a filed that needs to refer to some other record on the same table based on the unique id.
I.e
EmployeeID [primary key, identity]
Employee_Name
WeeklyHours
Salary
ManagerID (this column with need to refer to the employeeId field but can be null)
How should I proceed on creating the managerId field?
Thanks in advance,
Please go to the Thread Tools menu and click Mark Thread Resolved when your post is answered 
If someone helped you today then please consider rating their post.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|