Question: Application: BasicSQL ( Select & Where ) - Customers Customer fields in Customer table are listed as in the following: customer _ id [ int
Application: BasicSQL Select & Where Customers
Customer fields in Customer table are listed as in the following:
customeridint
firstnamevarchar
lastnamevarchar
ageint
countryvarchar
The result of "Select from Customers" command is as follows:
Customers
tablecustomeridfirstname,lastname,age,countryJohn,Doe,USARobert,Luna,USADavid,Robinson,UKJohn,Reinhardt,UKBetty,Doe,UAE
Based on this table write the SQL statements for the given requests
Request: List the firstname and lastname of the customers
Request: List customers whose last name is "Doe"
Request: List the names and ages of customers who are from the UK
Request: List customers older than
Request: List the customer with customer ID
Request: List customers whose first name is "John"
Request: List customers who are years old and from the UK
Request: List customers younger than
Request: List customers whose first name is not "David"
Request: List customers older than and from the USA
Request: List customers whose last name is "Luna" or "Doe"
Request: List customers whose age is between and
Request: List customers whose first name is "John" and are from countries other than the USA
Request: List customers whose first name starts with the letter J
Request: List customers whose last name ends with oe
Request: List customers whose first name contains "ohn"
Request: List customers whose second letter in their first name is o
Request: List customers whose last name does not contain the letter a
Request: List customers whose first name starts with B and has characters
Request: List customers who have a missing NULL last name
Request: List customers whose age is known NOT NULL
Request: List customers whose last name is "Doe", older than and whose age is known NOT NULL
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
