Holiday Homework Computer Science Part1
Holiday Homework Computer Science Part1
Create a database with your name, list all the databases and
open the database with your name
Client Table
Q2.Create the following table using SQL statements. And also show
its structure:
Field name Data Type Attribute
Clientno Char(6) Primary Key
Name Varchar(20) Not Null
City Varchar(50) Not Null
Pin Number
Mobile Char(10)
Q3.Insert and display following data in Client table (made in
practical1) using SQL statements.
Client Table
Clientno Name City Pin Mobile
C00001 Ivan Bayross Bombay 400054 3456212343
C00002 Vandana Saitwal Madras 780001 8976532322
C00003 Pramada Jaguste Bombay 400007 9090868765
C00004 Ravi Shreedharan Delhi 110020 8727121232
C00005 Rukmani Kolkata 340003 2312376543
C00006 Pradeep Jaipur 130102 1222132333
Singhania
C00007 George Paul Kolkata 340010 3323211232
C00008 D Ravichandran Bombay 400014 2212387896
Q4.List records of all clients who are not from Bombay
Note:
coachid as primary key
Coachname unique
Age not null
Pay should be greater than 0
Sports not null
Gender default gender M
Q12.Find the min, max, sum, and average of the pay in a club
table
Table :Supplier