Write the SQL code required to list the first name and last name of all customers whose middle initial is G.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
icon
Concept explainers
Question

Write the SQL code required to list the first name and last name of all customers whose middle initial is G. 

Relational diagram
CUSTOMER
PRODUCT
UNE
VENDOR
PK Cus Code
INVOICE
P Code
PK
PK V Code
PK
H-O
PK,FK1 Inv Number
O PK
Inv Number
Cus IName
Cus FName
Line Mumber
Do-H
P_Descript
InDate
P_QOH
P Min
P_Price
P_Discount
V_Name
V_Contact
V_AreaCode
V Phone
v_State
V_Order
FK1 Cus_Code
Inv Date
Cus_Initial
Cus AreaCode
Cus Phone
Cus Balance
P_Code
Line_Units
Line_Price
FK2
FK1 V_Code
Table name: VENDOR
Table name: CUSTOMER
V CODE
V NANE
v CONTACT V AREACODE V PHONE V STATE V CRDER
223-3234
216
220-3245
CUS cooe us UNAME S NAE US NTA US ARRACODE CUS PHONE CUS_ALANCE
100a
Shon
21225 Byton, no.
212 Sapet.ne, he
21231 DE Sply
21344 Gonez o
226 Done Suupply
23119 Rerdts Ld
24004 Backnan Bros.
2428 CREVA,ine
2540 , h
2501 Del Spole
615
A
Laons
Fushng
Sngh
904
1001 Durre
713
20123
615
345
53 76
10012 S
10013 OwI
10014 Ono
10015 Oan
100 Bron
204-2
Ortoga
Sath
KY
N
Pau
P4-2180
68-1419
N
222-1672
Andescn
GA
713
442 3391
Browng
615
228-1410
Jum
207-1220
221 10
Hrd
615
818-1234
10017 Ws
Gecrge
15
290-2558
Swth
21 00
10010 Fwriss
100 S
Arre
Sayte
TH
290-3009
25006 Rucon Sytone orton
904
416-0002
Table name: INVOICE
Table name: LINE
Table name: PRODUCT
NVJ R UNE NUMBER P cODe LNEUNTS EPRCE
10014 16-en-10
1001 18-an-18
11CER Peer pat, 15 pa, 3rezze
13 725n er sew
14013 0h pwr c
1001
14
000
2555
1000
14
214
2 23CH
1317
18 12
1749
000
21344
15
16.
100
00 17n-10
000
22119
122 O
2 1546-OG2
eov c, 10
21
41.90
2110
17-j 10
17an-18
1490
1
100
1004
25
2122
100
12
006
1004
2 2110HD
100s
CZERE
12
2014AA Se .12
perre-ar , e
00 a18
100
14.18277
10ce-17
42
1000
2 22320TY
10 S
11
1000
100
173
75
1000
25 W
SwO 1 2n orew, 25
212
75
1007
14W
000
100
2 54 21
WUTT n , te
29
17-ra
10
0.10
1000
1000
11
1000
Transcribed Image Text:Relational diagram CUSTOMER PRODUCT UNE VENDOR PK Cus Code INVOICE P Code PK PK V Code PK H-O PK,FK1 Inv Number O PK Inv Number Cus IName Cus FName Line Mumber Do-H P_Descript InDate P_QOH P Min P_Price P_Discount V_Name V_Contact V_AreaCode V Phone v_State V_Order FK1 Cus_Code Inv Date Cus_Initial Cus AreaCode Cus Phone Cus Balance P_Code Line_Units Line_Price FK2 FK1 V_Code Table name: VENDOR Table name: CUSTOMER V CODE V NANE v CONTACT V AREACODE V PHONE V STATE V CRDER 223-3234 216 220-3245 CUS cooe us UNAME S NAE US NTA US ARRACODE CUS PHONE CUS_ALANCE 100a Shon 21225 Byton, no. 212 Sapet.ne, he 21231 DE Sply 21344 Gonez o 226 Done Suupply 23119 Rerdts Ld 24004 Backnan Bros. 2428 CREVA,ine 2540 , h 2501 Del Spole 615 A Laons Fushng Sngh 904 1001 Durre 713 20123 615 345 53 76 10012 S 10013 OwI 10014 Ono 10015 Oan 100 Bron 204-2 Ortoga Sath KY N Pau P4-2180 68-1419 N 222-1672 Andescn GA 713 442 3391 Browng 615 228-1410 Jum 207-1220 221 10 Hrd 615 818-1234 10017 Ws Gecrge 15 290-2558 Swth 21 00 10010 Fwriss 100 S Arre Sayte TH 290-3009 25006 Rucon Sytone orton 904 416-0002 Table name: INVOICE Table name: LINE Table name: PRODUCT NVJ R UNE NUMBER P cODe LNEUNTS EPRCE 10014 16-en-10 1001 18-an-18 11CER Peer pat, 15 pa, 3rezze 13 725n er sew 14013 0h pwr c 1001 14 000 2555 1000 14 214 2 23CH 1317 18 12 1749 000 21344 15 16. 100 00 17n-10 000 22119 122 O 2 1546-OG2 eov c, 10 21 41.90 2110 17-j 10 17an-18 1490 1 100 1004 25 2122 100 12 006 1004 2 2110HD 100s CZERE 12 2014AA Se .12 perre-ar , e 00 a18 100 14.18277 10ce-17 42 1000 2 22320TY 10 S 11 1000 100 173 75 1000 25 W SwO 1 2n orew, 25 212 75 1007 14W 000 100 2 54 21 WUTT n , te 29 17-ra 10 0.10 1000 1000 11 1000
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Query Syntax
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education