SELECT Cust Id. COUNT (Cust Id) FROM Bank Cust - Contact WHERE Contact Type OFFICE' GROUP BY Cust - Id. Contact - Type Having

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

1.

Write a query to show customer id and the no of customer id for contact type “OFFICE” and
have those customers who have more than one
office phone
SELECT cust id. COUNT(cust id)
contact
FROM type
bank = ‘OFFICE’
cust_contactGROUP
WHERE
COUNT(c
BY cust_id. contact_type
2.HAVING
What
ust id) >are the minimum and
started
maximum
1; instalment amounts
SELECT
during
ofWHERE
year 2008 TO_CH
RD accounts which were
MIN(installment amt),
3.AR(rd_stast
White a query to show
EMP_COUNT)
employ‐ under
dt,
MAX(installment_amt)
designation and the no.
each
SELECT
YYYY')designation
= designation,
‘2008’;
ofWHERE
ees
FROM
emp and
except desig‐
bank_rd_account
employees {change
‘ATTENDER'.
COUNT(designation)
then
the by
nation <> ‘AT‐
column heading to

You might also like