Database Interrogation
write sql queries.
open the company database in the sqlite browser and create the following sql queries:
- for each warehouse display a country and a city.
- for each warehouse display a warehouse address, city, country, and a region name. in this query you need to use two tables: s_warehouse and s_region.
- display all customers with names starting from the letter ‘s’.
- display last names and userid of employees whose manager id is ‘2’ and salaries are less than $1600.
- display order ids with customer id is not ‘208’.
- display order id with order date starting later or on 1 september 2012.
you need to follow to the ‘good practice style’ of sql writing:
- write sql commands in capital letter where appropriate
- use aliases for column names
what to submit:
- copy and paste the queries in this ms word document. for example:
select last_name as [last name], first_name as [first name] from s_emp
- for each query, take a screen image of the output and paste it in this document
PLACE THE ORDER WITH US TODAY AND GET A PERFECT SCORE!!!