The document contains SQL queries and boolean expressions. The SQL queries select data from a supp table based on various filtering criteria on columns like STATE, SUPPLIER_NAME, TOTAL_SPENT. The boolean expressions evaluate to either true or false.
The document contains SQL queries and boolean expressions. The SQL queries select data from a supp table based on various filtering criteria on columns like STATE, SUPPLIER_NAME, TOTAL_SPENT. The boolean expressions evaluate to either true or false.
The document contains SQL queries and boolean expressions. The SQL queries select data from a supp table based on various filtering criteria on columns like STATE, SUPPLIER_NAME, TOTAL_SPENT. The boolean expressions evaluate to either true or false.
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