Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

CS403 Assignment No 03 Spring 2019 Solution & Discussion

Views: 1680

Replies to This Discussion

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions. Read More>>

Discussed & be touched with this discussion. After discussion a perfect solution will come in a result at the end.

 

“How to Join Subject Study Groups & Get Helping Material”

 

P.S:    Please always try to add the discussion in proper format title like “CS101 Assignment / GDB No 01 Solution & Discussion Due Date: ___________”

 

Share below link with friends for solution & Discussion. A Single link for help in your education.

http://bit.ly/vucodes

 

Site Overview | Assignment Solutions | Past Papers |Site Features

SOLUTION Assignment No. 3 (CS403 – Database Management System) Spring 2019

With full details and explanation and guidance.

sir jo snapshot lagna hai woh code ka lagna hai jo ap ny show kiya hai?

Code sirf samjany ky liay hai. 

sir i am confuse snapshot kis chz ka lagna hai?

Boss, two very major issues are there.

  1. No Foreign Key Constraints.
  2. Insert clause have errors with date format...

CS403 ASSIGNMENT NO 3 IDEA SOLUTION

By Mani Siddiqui BS VII

CS403 ASSIGNMENT NO 3 IDEA SOLUTION

check attachtment 

Attachments:

CS403 – Assignment # 3
All queries


Create database <your vu id>

Right-click on your own database name and then click on “New Query” and then start typing an executing all these command sets one by one and take screenshots of them.

Create table Role (
Role_id int primary key not null,
Name varchar(50) not null
)

Create table Task (
Task_id nvarchar(50) primary key not null,
Title nvarcar(50) not null,
Creation_date date not null,
Deadline date not null,
Assigned_to int not null
)

Create table Users (
User_id int primary key not null,
Name varchar(50) not null,
R_U_FK int FOREIGN KEY REFERENCES Role(Role_id)
)

Create table DiscussionThread (
Thread_id varchar(50) primary key not null,
T_D_FK nvarchar(50) FOREIGN KEY REFERENCES Task(Task_id),
Title varcar(50) not null
)

Create table Messages (
Msg_id int primary key not null,
M_T_FK varchar(50) FOREIGN KEY REFERENCES DiscussionThread(Thread_id),
Message_body varchar(50) not null,
Sender_id int not null
)

Insert into Task values(‘T0001’, ‘Computer Science’, ‘01/01/2019’, ‘2019/01/15’, ‘1’);
Insert into Task values(‘T0002’, ‘Management Sciences’, ‘02/02/2019’, ‘2019/02/16’, ‘2’);
Insert into Task values(‘T0003’, ‘Mass Communication’, ‘03/03/2019’, ‘2019/03/17’, ‘3’);
Insert into Task values(‘T0004’, ‘Bio Informatics’, ‘04/04/2019’, ‘2019/04/20’, ‘4’);

Select*from Task

Insert into DicsussionThread values(‘Th001’, ‘T0001’, ‘BSCS’);
Insert into DicsussionThread values(‘Th002’, ‘T0002’, ‘BBA’);
Insert into DicsussionThread values(‘Th003’, ‘T0003’, ‘M.Sc. Zoology’);

Select*from DiscussionThread


Select*from Task where Task_id=‘T0001’;

RSS

Looking For Something? Search Below

Latest Activity

Terry Brown replied to irshad kausar's discussion math
1 hour ago
Profile IconTerry Brown and Fahad Chaudhary joined Virtual University of Pakistan
1 hour ago
+ Dazzling smile updated their profile
3 hours ago
Muhammad Rizwan Ansari liked Karina Lopez's profile
7 hours ago
alvia khan and Shoaib Hasan Khan are now friends
7 hours ago
Huma noor left a comment for Karina Lopez
11 hours ago
Shoaib Hasan Khan updated their profile
13 hours ago
memon added a discussion to the group CS615 Software Project Management
14 hours ago

© 2022   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service