TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Amudhan Kuppan
NA
378
29.9k
References Key in SQL
Apr 29 2018 11:27 PM
hi
please help me
use hospital_database
go
CREATE
TABLE
Department (
DepartmentID
int
NOT
NULL
,
Name
varchar
(30),
EmployeeID
int
,
Primary
Key
(DepartmentID),
FOREIGN
KEY
(EmployeeID)
REFERENCES
Physician(EmployeeID)
);
this is my table Structure
my question is How will you cross check this
i need insert a data right?
try to enter the employeeid which is not phyisician table
i dont know please send me a query
and iam also give physician table structure:
EmployeeID int not null, it should be primary key
Name varchar(30),
Position varchar(200),
SSN Numeric(9,0)
Reply
Answers (
5
)
refernces column for table
Group by Name and sum column radnisati and prekovremeni sati