0% found this document useful (0 votes)
108 views

SQLQuery1 SQL

The document contains SQL statements that create three tables - Team4_Customer, Team4_Login, and Team4_Vehicle, to store customer, login, and vehicle data respectively. It then performs insert, update, delete operations on these tables - inserting login credentials for an admin user, updating customer records, dropping and recreating the tables.

Uploaded by

ajeetmohan32
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
108 views

SQLQuery1 SQL

The document contains SQL statements that create three tables - Team4_Customer, Team4_Login, and Team4_Vehicle, to store customer, login, and vehicle data respectively. It then performs insert, update, delete operations on these tables - inserting login credentials for an admin user, updating customer records, dropping and recreating the tables.

Uploaded by

ajeetmohan32
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

create table Team4_Customer( name varchar(200), dob varchar(15), gender varchar(10), marital_status varchar(15), email varchar(150) primary key,

addr varchar(200), city varchar(30), cust_state varchar(30), zip bigint, age_first_licence int, US_licence_status varchar(20), social_security_number varchar(20), industry varchar(40), occupation varchar(40), higest_level_of_education varchar(40), has_licence_been_suspended varchar(3), total_no_of_days_licence_susprnded int, drivers_incident_and_violation varchar(3), incident_type varchar(20), incident_count int, violation_type varchar(20), violation_count int) create table Team4_Login( email varchar(150) , passwd varchar(20), question varchar(200), answre varchar(50), identify varchar(15), Foreign Key (email) references Team4_Customer(email) ) create table Team4_Vehicle( Model_Year int, Make varchar(20), Model varchar(20), VIN varchar(10) primary key, Vehicle_Description varchar(30), Primary_use_of_vehicle varchar(20), Days_per_week_driven int, Milag_One_Way bigint, Annual_Milage bigint, Anti_Theft_Device varchar(20), Kept_at_mailing_address varchar(5), Garage_Address varchar(200), Vehicle_State varchar(20), Zip bigint, email varchar(150) references Team4_Customer(email)) select * from Team4_Customer select * from Team4_Login select * from Team4_Vehicle insert into team4_login values('admin','admin',' ',' ','admin') alter table Team4_Login alter column identifier varchar(10)

drop table Team4_Customer drop table Team4_Vehicle update Team4_Customer set addr='chintamaniswar',city='bbsr' where email='san' update Team4_Customer set marital_status='married', addr='barampur',city='keonjh er',cust_state='andhra',zip=1 ,age_first_licence= 2,US_licence_status='go',socia l_security_number='oo',industry='hyd',occupation='kkk',higest_level_of_education ='lll',has_licence_been_suspended='mmm',total_no_of_days_licence_susprnded=12,dr ivers_incident_and_violation='ooo',incident_type='kkk',incident_count=9,violatio n_type='nnn',violation_count=7where email='san' update Team4_Login set identity='admin' where insert into Team4_Login values('admin','admin','qqq','qqq','admin') update Team4_Customer set marital_status='Single', addr='bbsr',city='bbsr',cust_state='Orissa',zip=123,age _first_licence=12,US_licence_status='active',social_security_number='111',indust ry='Education',occupation='Teacher',higest_level_of_education='M.Tech',has_licen ce_been_suspended='Yes',total_no_of_days_licence_susprnded=12,drivers_incident_a nd_violation='Yes',incident_type='Mojor',incident_count=1,violation_type='Speedi ng',violation_count=2where email='san'

You might also like