Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cs403 database management mini project July 2010
#1
Q1. You are required to create the following tables using SQL CREATE command, table names along with column description is given below. One of the important things is to use appropriate data types for each column definition and choosing primary and foreign keys for the tables. 20 Marks
Step 1:
1. Table Name: MEMBER

i. MemberId (Member Identification Number)
ii. FirstName
iii. LastName
iv. DateOfBirth
v. City
vi. ZipCode Email
vii. DateOfJoining

2. Table Name: ATTENDANCE

i. MeetingDate
ii. Location
iii. MemberAttended Hint: This Column is used to check either the member attend the meeting or not so you can use its data type ‘CHAR(1)’.
iv. MemberId Hint: Behaving as foreign key here in Attendance table.

3. Table Name: DOCUMENTARY

i. DocumentaryId (Documentary Identification Number)
ii. DocumentaryName
iii. YearReleased
iv. AvailableOnDVD Hint: This Column is used to check either the this documentary is available on DVD or not like MemberAttended in ATTENDANCE table.
v. Rating
vi. CategoryId Hint: Behaving as foreign key here in Documentary table.

4. Table Name: CATEGORY

i. CategoryId
ii. Category Hint: This means the documentary is either about People, Agriculture, Law, War, Religion or Human Rights. It can be from any category.
5. Table Name: FAVOURITE_CATEGORY

i. CategoryId Hint: Behaving as foreign key here in favourite_category table.
ii. MemberId Hint: Behaving as foreign key here in favourite_category table.

Step 2:
What to do next???
After creating these tables successfully you are required to enter Five (5) records in each of the tables using SQL’s INSERT command.
Important: Students are supposed to submit screen shots of there work for proof. Screen shot for each and every step is not required; these screen shots should be taken after Inserting records in your designed tables. For Example, SELECT * from Category;
Reply
#2
first you start with this command
create database project
create table MEMBER


Code:
rest discuss with me here.
Confusedmileys75:
Reply
#3
Anyone who could help ?!?!
Reply
#4
i can help u but you have to discuss it with me
Reply
#5
koi mera saath cs403 ki assignment discuss kara
Reply
#6
ok lets discuss i am mcs student and i am in final semester. lets start. that i have given two commands one for creating database and one for table. so now what next
Reply
#7
Xpert Wrote:first you start with this command

create database project
create table MEMBER

Confusedmileys75:

Xpert bhai meri to ye first two lines main hi error aa jata hy

image dekh k btein kia error hy


Attached Files
.jpg   untitled.JPG (Size: 40.46 KB / Downloads: 173)
Reply
#8
dear app nay , dala howa hai yah nahen ata. aur start main ; termination bhi nahen dali. i suggest you run quries one by one. Like first run the create query and then so on. wuhan par query ko one by one run karnay ka tareqa bhi hai. so try it out for more info please discuss it.
Reply
#9
ok
ab dekhien table bna k data enter kia hy kia ye thik hy ???
aur dusri bat PRIMARY KEY ksy lagni hy?


Attached Files
.jpg   untitled.jpg (Size: 98.88 KB / Downloads: 154)
Reply
#10
ok good dear i have seen the image now watch this code and alter it and try to make primary key. we are doing discussion because with this discussion you will learn alot.
Code:
< column_constraint > ::= [ CONSTRAINT constraint_name ] { [ NULL | NOT NULL ] | [ { PRIMARY KEY | UNIQUE } [ CLUSTERED | NONCLUSTERED ] [ WITH FILLFACTOR =fillfactor ] [ON {filegroup | DEFAULT} ] ] ] | [ [ FOREIGN KEY ] REFERENCES ref_table [ ( ref_column ) ] [ ON DELETE { CASCADE | NO ACTION } ] [ ON UPDATE { CASCADE | NO ACTION } ] [ NOT FOR REPLICATION ] ] | CHECK [ NOT FOR REPLICATION ] ( logical_expression )
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  get virtual university Vu final project cs619 online help 2015 Xpert 0 3,185 02-04-2015, 03:56 AM
Last Post: Xpert
  GDB of FIN730 - Investment Analysis & Portfolio Management (Need Solution) Muhammad Husnain Mughal 1 1,876 05-15-2014, 08:21 PM
Last Post: hondasr8
  GDB of FIN723 - Taxation Management (Need Solution) Muhammad Husnain Mughal 1 2,928 05-07-2014, 04:09 AM
Last Post: Vuhelper
  Project Management Assignment 2 --- Last date 27 Dec-2011 wingle 1 1,890 12-25-2011, 04:40 AM
Last Post: wingle
  seeking help for PRAS final project of VU.. maddy 1 1,190 12-20-2011, 03:46 AM
Last Post: Xpert
  cs403 assignment no 1 spring fall 25 october 2011 shoaib001 13 8,172 11-10-2011, 06:04 PM
Last Post: Vuhelper
  solution required of assignment # 2 mgmt 625 change management mc080406652 5 2,800 10-28-2011, 04:37 AM
Last Post: frozen
  Assignment No 1 MGT501 – Human Resource Management (Fall 2011) z.yasin 0 4,216 10-23-2011, 03:39 AM
Last Post: z.yasin
  what are key functions of the human Resource management now a days? vukhan 0 1,398 08-25-2011, 04:50 PM
Last Post: vukhan
  Of MTH202 Spring 2011 Assignment#6 idea solution July 2011 Vuhelper 5 3,967 08-22-2011, 04:32 AM
Last Post: Xpert

Forum Jump:


Users browsing this thread: 1 Guest(s)