Click here to Skip to main content
15,887,812 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have some trouble a bit with an assignment for school. Here are the following questions I need some answer for.

employee table_zpswtkoqjyh.jpg Photo by dao1001 | Photobucket[^]

employee table 2_zpsrqnsrmhf.jpg Photo by dao1001 | Photobucket[^]

Please help me answer a bit...

Thanks

What I have tried:

I used to tutorial create tables in SQLPLUS but it does not work for me.
Posted
Updated 25-Aug-16 18:54pm
v2

Use Sql Server Management Studio and it's pretty simple: cretae table Sql Server Management Studio - Google Search[^] gives you loads of links, including video tutorials to guide you through.
 
Share this answer
 
PRIMARY KEY is a constraint indicates that a set of columns are unique and not NULL. Most implementations use an index to support this and in some implementation the primary key is also the clustering index for ordering the data in pages in disk storage.

FOREIGN KEY is a constraint that indicates that a set of columns refer to another set of columns in another table. Generally a foreign key can still be NULL, but if it is not NULL, then it has to be a valid key in the table it references and that also has to be unique. The key it references DOES NOT have to be the PRIMARY KEY, just a unique key
 
Share this answer
 
Comments
bearforever99 26-Aug-16 4:15am    
is this an answer?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900