Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • 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!

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

Donate Today!

Do you enjoy these
technical forums?
Donate Today! Click Here

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

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

MoGryph (Programmer) (OP)
8 Nov 00 15:20
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?

veronica (Programmer)
8 Nov 00 19:13
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: vzudaire@yahoo.com

MoGryph (Programmer) (OP)
10 Nov 00 12:33
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.

veronica (Programmer)
10 Nov 00 18:09
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: vzudaire@yahoo.com

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