You are on page 1of 1

Basic Select

Statement
Write a query to show customer id, phone no,
Ene2, city.
customer state,
address pncode
linel, of customers
customer who
address
check whether the
live either in ‘Karnataka’ or Tamilnadu’. Ako
SELECT cust id. cust phone,
contact type is
cust
‘HOME’state. cust_pen
ANO (cust_state = ‘Kar‐ FROM
cust_addr finet. cust addr
bank
Orsplay
nataka’cust_contact
ORdetails WHERE
(account
cust_state =
line2,
acteve cust_city,
SB accounts mn
contact type
Tamsinadu’): = ‘HOME’
no, primary customer id.
SELECT
the order
bank_sb of account
latest
account start
current balance and a/c
.no.
Orsplay
date (first)
primary
manager,
WHERE
start date)
bank
to em‐
earbest
cust
sorted
acc_status
of in
start date (last).
SELECT designa‐
ployee
WHERE
id. designation,
curr bal amt.
= ‘Active’ ORDER BY

You might also like