Skip to main content

CS403 Assignment No 03 Spring 2019 Idea Solution



#CS403 Query
Create Database Bs140201235
use database Bs140201235



CREATE TABLE Role(
Role_id int not null PRIMARY KEY,
name varchar not null
);

CREATE TABLE Users(
User_id int not null PRIMARY KEY,
name varchar not null,

Role_id int FOREIGN KEY REFERENCES dbo.Role(Role_id)
);

Create Table Task(
Task_id nvarchar(50) not null PRIMARY KEY,
title varchar(max) not null,
creation_date date,
deadline date,
assigned_to varchar(max)
);


Create Table DiscussionThread(
Thread_id int not null PRIMARY KEY,
title varchar not null,
Task_id int FOREIGN KEY REFERENCES dbo.Task(Task_id)
);

create table Messages(
Msg_id  int not null PRIMARY KEY,
message_body varchar not null,
sender_id varchar not null,
Thread_id int FOREIGN KEY REFERENCES dbo.DiscussionThread(Thread_id)
);

insert into dbo.Task (Task_id, title,creation_date,deadline,assigned_to) values ('T0001', 'Computer Science', '2019-01-01', '2019-01-15', '1');
insert into dbo.Task (Task_id, title,creation_date,deadline,assigned_to) values ('T0002', 'Management Science', '2019-02-02', '2019-02-16', '2');
insert into dbo.Task (Task_id, title,creation_date,deadline,assigned_to) values ('T0003', 'Mass Communication', '2019-03-03', '2019-03-17', '3');
insert into dbo.Task (Task_id, title,creation_date,deadline,assigned_to) values ('T0004', 'Bio Informatics', '2019-04-04','2019-04-20', '4');


insert into dbo.DiscussionThread(Thread_id, title) values ('Th001','BSCS');
insert into dbo.DiscussionThread(Thread_id, title) values ('Th002','BBA');
insert into dbo.DiscussionThread(Thread_id, title) values ('Th003','MSC zoology');

ALTER TABLE DiscussionThread
ADD Status varchar(max);


Join My Fb Grp Fb Grp


Comments

Popular posts from this blog

IT Intern (Microsoft Product)

For more discuss and ask question join this group   https://www.facebook.com/groups/143792885956764/ Solved   By : Tahir Siddiqui(Mani) BC-140201235@Vu.edu.pk Job Description We offer Internship in IT 03 months Unpaid internship Responsible for Managing IT Products/Services. Maintains relationships with clients by providing support, information, and guidance. Good presentation skills. Good oral & written communication knowledge of MS Office 50%. Traveling Required Team Work Candidate must have a Motor Bike and laptop. Fresh candidates are encouraged to apply. Job Details Industry: Information Technology ...

cs304 Assimgt 2 2016

Assignment No. 02 Semester: Spring  2016 Object Oriented Programming – CS304 Total Marks: 20 Due Date: July 21, 2016 Objectives: To get a hands on experience of using existing class as base class and implement inheritance. Instructions: Please read the following instructions carefully before submitting assignment: It should be clear that your assignment will not get any credit if: §   The assignment is submitted after due date. §   The assignment is submitted via email. §   The assignment is copied from Internet or from any other student . §   The submitted assignment does not open or file is corrupt. §   It is in some format other than .cpp (Code File). Note: All types of plagiarism are strictly prohibited. For any query about the assignment, contact at CS304@vu.edu.pk Case Study With the technological innovation, th...