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
- What are the different representations constructed for the victim in the headlines?: The Representation of Social Actors in News Headlines of Bella Abuse Case Research Paper, Malaysia
- SKAA4313: Advanced Reinforced Concrete Design Assignment, UTM, Malaysia: A footbridge is required to provide communication between residential areas on either side of a dual carriageway road
- Master of Renewable Energy Assignment, UM, Malaysia Malaysia has used renewable energy technology such as biomass, solar and hydro energy for power generation
- FHHM1114 INTRODUCTION TO SOCIOLOGY OCTOBER 2024 TRIMESTER Assignment
- CHE 433: Thermodynamics Assignment, UiTM, Malaysia Velocity is an intensive property of a system and One kilogram of water at a temperature of 225°C and 500 kPa has a volume of 0.078405 m3
- High Electron Mobility Transistor Research Paper, UM, Malaysia We use the natural zeolite clinoptilolite as the sensitive element in a plasticized PVC membrane
- FBF1163: Fundamentals of Programming Coursework, UCSI, Malaysia What are the problem-solving strategies and Draw the figure that shows all the phases
- WUC203: Writing Skills for University Studies Essay, WOU, Malaysia
- Business Professional Ethics Case Study, UTHM, Malaysia This Milk manufacturer is based in Port Klang, Selangor. The Managers of the company are very friendly with the customers
- COMP1030: Write an ARM assembly program to implement the Breadth First Search: Systems Architecture Assignment, UNMC, Malaysia