Anda di halaman 1dari 2

ASSIGMENT 6 CARLOS RIVADENEIRA PROAO

1) CREATE Table Student_Info with following fields:

i. Name- Should have only alphabets

ii. Email_ID- Should have at least 1 @


iii. Password- Should have atleast 1Uppercase alphabet, 1 lowercase alphabet , 1
digit and 1 of !@#$% characters

iv. Age- should be between 10 and 70 years

v. Percentage -should not be more than 100

vi. Course- should be 1 of fica, mech and english

vii. Marital_status- can be y or n

viii. Insert Data in all fields and verify that they satisfy the conditions

2) Create Table Customers(CustomerID( Primary Key), CustomerName, CustomerEmail(


can not be null), CustomerCountry, Gender( Default is Female)). Create Table Orders
(OrderID, CustomerID(Foreign Key to customers table), OrderDate). Insert data in both
tables. Show:

a) OrderID, CustomerName, OrderDate of all the orders

b) OrderID, OrderDate of all Orders made by Ecuador citizens.

c) Order Details of all customers with name starting with A.

d) Total Number of Customers in Customers Table.

e) CustomerID, CustomerName, CustomerEmail of all customers who have not


given any orders.

f) CustomerEmail and CustomerName of all Peru customers who have given at


least 1 order.

Anda mungkin juga menyukai