Hello everyone!
I have a really urgent problem. I have 3 tables
_______________________________________________________
Customer
--------
CustomerID
Name
Phone
..
Password
_______________________________________________________
Employee
--------
EmployeeID
FirstName
LastName
..
Password
_______________________________________________________
Vendor
--------
VendorID
Name
Phone
..
Password
_______________________________________________________
As you can see there are many columns but what all of these tables have in common is the IDs (Primary Keys) and Passwords.
I need to make a sign-in page for my project where each of the customers, employees, or vendors can use to access their accounts. I was planning on using the ID's as their usernames and the Password field as their Password.
Although using MS-Access autonumber I can get unique keys for all my tables within themseleves. But what can I do if a CustomerID = VendorID or a VendorID = EmployeeID... ?
Basically My question is : How can I assign autonumber values to make sure they are the continuence of other tables values. In PostgreSQL or MySQL I would use the SEQUENCE object. What can I do here?
I have a really urgent problem. I have 3 tables
_______________________________________________________
Customer
--------
CustomerID
Name
Phone
..
Password
_______________________________________________________
Employee
--------
EmployeeID
FirstName
LastName
..
Password
_______________________________________________________
Vendor
--------
VendorID
Name
Phone
..
Password
_______________________________________________________
As you can see there are many columns but what all of these tables have in common is the IDs (Primary Keys) and Passwords.
I need to make a sign-in page for my project where each of the customers, employees, or vendors can use to access their accounts. I was planning on using the ID's as their usernames and the Password field as their Password.
Although using MS-Access autonumber I can get unique keys for all my tables within themseleves. But what can I do if a CustomerID = VendorID or a VendorID = EmployeeID... ?
Basically My question is : How can I assign autonumber values to make sure they are the continuence of other tables values. In PostgreSQL or MySQL I would use the SEQUENCE object. What can I do here?