Dbms 1
Dbms 1
SetA
Createtablefortheinformationgivenbelowbychoosingappropriatedatatypesand
alsospecifyingproperprimarykeyconstraintonfieldswhichareunderlined(Attempt
anytwo)
◻1.Player(player_id int,name varchar(50),Birth_date date,Birth_place varchar(100))
◻2.Student(roll_noint,class varchar(20),weight numeric(6,2),height numeric(6,2))
◻3.Project(project_idint,project_name varchar(20),project_description text,status
boolean)
◻4.Donor(donor_no,donor_name,blood_group,last_date)
ANS:
SetB
Create table for the information given below by choosing appropriate datatypes and
also specifying proper primarykey constraint on fields which are underlined.
◻1.Property(property_id,property_desc,area,rate,agri_status)
ANS:
SetC
Create table fo rthe information given below by choosing appropriate data types and
also specifying proper primary key constrainton fields which are underlined(Attempt
anyone)
◻1.Teacher(Teacher_no,
Tname,qualification,address)Primarykey:
Teacher_no
ANS:
create table Teacher
(teacher_no integer primary key,
Tname varchar(20),
qualification text,
address text);