Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

1.

Select * from supp


Where STATE in (‘Georgia’, ‘California’)

2. Select * from supp


Where SUPPLIER_NAME like ‘%wo%’
And (SUPPLIER_NAME like ‘%i%’ OR SUPPLIER_NAME like ‘%l%’)

3. Select * from supp


Where TOTAL_SPENT between (37,000, 80,000)

4. Select SUPPLIER_NAME, STATE from supp


Where STATE IN (‘Georgia’, ‘Alaska’)
And (SUPPLIER_ID=100 or SUPPLIER_ID>600)
And (TOTAL_SPENT>100,000 or TOTAL_SPENT=220,000)
5. False
6. False
7. false
8. true
9. false

1. select concat(DISTRICT, ‘ has the population of ’, population) where countrycode=cbd from


city
select concat(concat(upper(NAME), ‘ has the population of ’), lower (population)
2. select Concat(concat((upper(Lefttrim(DISTRICT, 3)),’-‘), upper( righttrim(DISTRICT, 3))) from
city
3. 1
4. False
5. C
6. D
7. D
8. true

You might also like