Question: Given the Customer table below write SQL statements to 1. Create the table Customer, giving relevent datatypes and pos sible/suitable Primary key 2. To insert
Given the Customer table below write SQL statements to
1. Create the table Customer, giving relevent datatypes and pos sible/suitable Primary key
2. To insert the first two rows shown in the diagram
3. To return customer first names and last names of all customers with AreaCode 615
4 Return customer Code, first name and last name of all customers with balance more than 300.00
5. Return all records with customer first names starting with "A"
Table name: CUSTOMER CUS_CODE CUS_LNAME CUS FNAME CUS_NITIAL CUS AREACODE CUS PHONE CUS_BALANCE Alfred 615 Leona 713 Kathy 615 Paul 615 615 10010 Ramas 10011 Dunne 10012 Smith 10013 Olowski 10014 Orlando 10015 O'Brian 10016 Brown 10017 Williams 10018 Farriss 10019 Smith Myron Amy James George Anne Olette A K W F 8 G G K 713 615 615 713 615 844-2573 894-1238 894-2285 894-2180 222-1672 442-3381 297-1228 290-2556 382-7185 297-3809 0.00 0.00 345.86 536.75 0.00 0,00 221.19 768.93 216.55 0.00
Step by Step Solution
There are 3 Steps involved in it
1 CREATE TABLE CUSTOMER CUSCODE INT PRIMARY KEY CUSLNAME VARCHAR CUSFNAME VARCHAR CUSNTIAL VARC... View full answer
Get step-by-step solutions from verified subject matter experts
