Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.


2 Seperate Table columns, to one other table's single column?

2 Seperate Table columns, to one other table's single column?

I'm building a database that has 2 tables - Users, and Groups.

I created the 2 tables, and a 3rd table, for a many-to-many relationship, so that
I can track which Users are in which Groups. However, I want to be able to add a
group to another group. Is this possible?

For instance, what I'm tracking, is NT Admin security.
In NT, you can set up your security groups, placing Users in the group, as well
as other groups within the group.

The Many-To-Many relationship does not seem to suit this, since I have no way of feeding a Group back into the group.

What sort of design would it take to get this functioning?

RE: 2 Seperate Table columns, to one other table's single column?

Try with this design

Table Users:        Table GroupsUsers:         Table Groups:
IdUser              IdGroupsUsers         |---- IdGroups
UserName            IdGroups     ---------|     GroupName
                    User      (S/N)

Whith the field GroupsUsers.User you know if the field GroupsUsers.IdGroupsUsers is one user or one Group. You can't specify this relationship in the Relationship windows because is with one table or whit the other, but you can do this with program code or with query's.

Do you understand me?? (Sorry, but I don't speak english very well...)

My e-mail is:

RE: 2 Seperate Table columns, to one other table's single column?

Hi Veronica.

Yeah, your repsonse is a little difficult to understand, but I think I figured it out.

Is the User (S/N) field that you listed, a Boolean (logical) field?
I'm assuming this, and that (S/N) is your language's "Yes/No".

I think I can take it from there. I was thinking of useing a method like that, but was just hopeing that there was an easier way of handling it.
Thanks for the response though.

RE: 2 Seperate Table columns, to one other table's single column?

I'm sorry, the User field is a boolean field, but I write that in my language. I don't now a better form to do this, but, if you find another one, please tell me.

Greetings, VerĂ³nica

My e-mail is:

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close