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
- NBHS1112: Puan Suba adalah perempuan berumur 52 tahun yang diagnosis dengan Diabetis Mellitus Jenis II: BIOKIMIA TUGASAN, OU, Malaysia
- Auditing Assignment, MUS, Malaysia Discuss the importance and types of audits in an organization and Suggest the possible issues related to the financial statement
- ABCR2103: Discuss the following questions in the forum and submit proof of your participation in the online discussions: Principles Of Corporate Communication Assignment, OUM, Malaysia
- MSBA7113: Recommend a sampling method (random, stratified, or convenience) for Retail Nation: Understanding Research Methods Assignment, CUM, Malaysia
- Regulatory Perspectives for Plant Molecular Farming (PMF) Research Paper Malaysia
- CCS20903: Client Server Computing Assignment, MSU, Malaysia Create a complete web application using Java Servlet and Java Server Pages technologies. Create a Java web application
- DMT5023: Statistical Analysis Assignment, MSU, Malaysia Develop an SPSS data set based on Table 1 with a minimum of 100 responses
- DPM10013: Principles of Marketing Assignment, PM, Malaysia ABC Mart is a 24-hour convenience store. It serves nearby residential communities and commercial and business
- COM62304: Organizational Communication Assignment, TU, Malaysia As a rising Communications Consultant, you are often invited to speak to entrepreneurs and managers
- Proposal: Consumer Loyalty and Smart Retailing in Philippine Fast Food