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
- SOPA1035: How did this initiative benefit children in the Early Years? Embed child developmental theory into your answer: Social Policy & Pedagogy Assignment, UOG, Malaysia
- AICT006-4-1-AFM Advanced Forensics Methods Assignment, APU, Malaysia
- BAPS2003: Basic Power System and Electric Machines Assignment, UON, Malaysia What are the tests that should be conducted to ensure the efficiency of the transformer:
- ITNM5063:Cryptography And Internet Security Assignment, TU, Malaysia What is the MAC address of the web server
- PPB3033 Semester A241 Case Study: Zoo Negara Malaysia Universiti Malaya
- Educational Assessment: Test Design and Evaluation
- ESE633: Statistics of Education Assignment, AeU, Malaysia An English test was administered to two classes of secondary school students. Explain the distribution
- Master of Project Management Assignment, OUM, Malaysia Does the scope of the project appear to have been clearly defined upfront and Is there any evidence of an effective risk assessment process
- Personnel and Career Development Counselling Report, MUM, Malaysia I’m the oldest child, so technically I’m like the third Baron in the family, so when I was young I am when my parents
- Principle of Marketing Report, UNM, Malaysia Today’s marketers are also using sophisticated analytical techniques to track consumers’ digital movements and to build