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.
Get Solution of this Assessment. Hire Experts to solve this assignment for you Before Deadline.
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.
Stuck in Completing this Assignment and feeling stressed ? Take our Private Writing Services.
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
- Family and Community in Early Childhood Assignment, UOW, Malaysia
- ENG1090: Let d be the last non-zero digit of your student number: Foundation Mathematics Assignment, MU, Malaysia
- Understanding Preschool Parents’ Perspectives and Expectations of 21st Century Education
- BAFF0023: Economics and Society, Assignment UITM, Malaysia
- GSGM7324 Organisational Development and Change Management Assignment Malaysia
- Sustainability Report, SU, Malaysia Sustainability refers to the development that caters to the needs of the existing generation without sacrificing
- Computer Science Assignment, UON, Malaysia The purpose of this assignment is to give students the opportunity to use specialized JFlex software
- Bachelor of Economics Assignment, HU, Malaysia Students are required to look through the given articles in HLMS and choose one of the topics which they are comfortable
- CDAD 2103: Methodology of information system development Assignment, OUM, Malaysia To help cope with the social distancing measures put in place in flattening the curve of COVID-19
- CIVE2313: Fluid Mechanics Assignment, IIUM, Malaysia A horizontal pipe of 25 cm 600 cm long is connected to a water reservoir at one end and discharged freely