Write SQL queries to answer the following questions. Use the information given in each table: Database Assignment, IIU, Malaysia
| University | INTI International University (IIU) | 
| Subject | Database Assignment | 
1. Write SQL queries to answer the following questions. Use the information given in each table.

a) List the customer details who has a balance of more than 300.
b) List the customer’s name, area code, and invoice number of all customers. Sort the answer in descending order by customer name.
C) List the male customer details whose name starts with the letter
d) Find the number of male customers and display the column name as ‘Total
e) Find the minimum, maximum, average, and number of customers for each area code.
f) Change the balance for Siti to 500.
g) Find the name of a customer who lives in the same area as Diana.
2. Consider the structure of the following PRODUCT table.
a) Write the SQL command to create a new table called PRODUCT based on the information given in Table 1 below.

b) Change the field length of the description to VARCHAR(30) in the PRODUCT table.
c) Add a price column in between description and code in the PRODUCT table. This column only allows floating number data to be entered with a maximum precision of 3 digits and a scale of 2 digits.
d) Rename column description to in the PRODUCT table. This column only
allows variable character data to be entered with a maximum of 30 characters.
Get Help By Expert
Need help with your Data Assignment in Malaysia? Look to our assignment helper Malaysia service, where Malaysian students can conveniently pay someone to do my assignment and receive personalized support. Our team of experts is adept at handling various data-related tasks, including analysis, modelling, and programming.
Recent Solved Questions
- ECO162: Microeconomic Assignment, UITM, Malaysia Students are required to find out pertinent current issues through newspaper articles, published journals, academic magazines et cetera
- Managerial Economics Assignment, UON, Malaysia Explain the term Explicit and Implicit costs. Give examples. What is Economic Profit as compared to Financial Profit
- BAMS1743: A researcher wishes to know whether the sales of the stores are depending on the number of e-wallet channels made available to the customers: Quantitative Methods, Assignment , TAR UMT, Malaysia
- Business and Commercial Awareness Assignment, Malaysia
- Law Essay, HU, Malaysia In what respects, if any, could a British Bill of Rights and Responsibilities provide a better method of protection for fundamental rights
- Biostatics Assignment, SU, Malaysia A company claims that its new manufacturing process results in a mean weight of 60 grams for a certain product
- Critical Thinking Essay, UNM, Malaysia Has colonization ended Contemporary Feminism Women’s Rights or Privilege
- Ernest Shackleton’s Leadership & Gig Economy’s Impact
- The UK government has announced what it claims are ambitious plans to upskill public sector workers so they can better spot and stop fraud: Accounting, Assignment 2, WOU, Malaysia
- Operation Management Assignment, MU, Malaysia Discuss the concepts of operations input resources, transformation processes, and outputs
 
     
			