Question

Write and run the following queries for your database using SQL commands:
1. List all the customers whose pin code is “1100067”.
2. List the order id and amount of those orders which are placed in first week of the month and are of
amount more than 10,000.
3. List the customer name and contact number of those customers who have placed more than one
order in October 2023.
4. List the customer details, who has placed their orders on 10-10-2023.
5. List all the customers whose name starts with alphabet ‘A’.
10
6. Find the total price of the order id O0011 .
7. List the electronic products information in the increasing order of price.
8. Find the detail of products which have been ordered more than once.
9. ist the order details of the orders placed on 11-10-2023 and payment mode is COD.
10. List the different types (such as electronic, grocery, cloth etc.) of items available for shopping.

01 Dec 2023
Answer :
Word Count : 652

To address these queries, let's assume we have a database with the following structure:

  1. Customers table:

    • customer_id
    • customer_name
    • contact_number
    • address
    • pin_code
  2. Orders table:

    • order_id
    • customer_id
    • order_date
    • amount
    • payment_mode
  3. OrderDetails table:

    • order_id
    • product_id
    • quantity
    • price
  4. Products table:

    • product_id
    • product_name
    • category
    • price

Here are the SQL queries based on the specified requirements:

  1. List all the customers whose pin code is “1100067”.

To address these queries, let's assume we have a database with the following structure:

  1. Customers table:

    • customer_id
    • customer_name
    • contact_number
    • address
    • pin_code
  2. Orders table:

    ___ _________ ____ ____ _________.
    _________ ____ ________ _______ __________ __________.
    ____ ____ ________ _____ ___ ______ __________ ________ ________ ____.
    _________ ______ ______ _______ _______ _____ ____ ________.
    ___ _________ ______ ______ _____ ________ ____ ___ ______.
    ________ ___ _____ ________ _____ ___ ________ ________ ____ ____ __________ _______.
    ___ ___ _____ __________ _____ ____ ___ ______.
    _____ _______ _______ ___ ____ ___ ________ ____.
    ________ _________ _______ _______ _______ _______ ________ _________ ________ __________.
    _________ __________ _______ _______ ________ ________ _________ __________ ____ ___ ______.
    _________ ________ ______ ________ _________.
    _______ ___ _________ ____ ___ ___ ___ _________ ______ ______ ______.
    ___ ______ _______ ___ _________ _____ ________ ____ _______ __________ ____ ______.
    __________ ________ _____ ___ _________ _______ _____ _______ ______.
    _________ ____ _____ _____ ________ ______ _________ ____ ____ _____.
    ________ ____ _____ _______ __________ ______ __________ _______ ______.
    __________ ______ __________ _______ ____ _________ ____.
    ____ __________ ___ ____ ______ ___ __________ __________ ______ ____ __________.
    ______ _______ _______ ______ _____ _______ ______ ____ _________ _______.
    _____ _____ ___ ___ ______ __________ ____ __________.
    _______ ____ ________ ___ ______ ____ _______ ___.
    ___ ____ __________ _________ __________ _________ _________ ________ ______ _____ ___ ______.
    ________ ____ ___ _________ _____ ______ ____ __________.
    ________ __________ _____ ______ ___ ____ _______ _____ ________ ____ ______.
    ________ __________ _____ _______ ___ _____ _____ _______ ____ ____ _________ ________.
    ______ ______ _____ _______ ________ _______ _____ _______ _________ ________ _________ ____.
    ________ ___ ________ __________ ______ ______ ________.
    __________ ____ ______ _______ __________ __________ _________.
    _______ _____ ___ ______ ____ _______ ____.
    ________ _____ _________ _____ ______.
    _________ _______ __________ ____ ______ ____ ________ _____.
    ___ ______ _______ ___ __________ ______ __________ ______ _______ ______.
    _______ ________ _____ ____ __________ ___ _________ ____ __________ ___.
    ____ ____ _________ ___ __________ __________ ___ _________ _______ __________.
    _________ ____ ______ _____ ________ _________ ____ ____ _________ ______ ____ _______.
    ____ ___ __________ __________ _____ _________ __________ _______.
    __________ ________ ________ ________ __________ _______ ___ _____ ________.
    ________ __________ _____ ___ __________ __________ ____.
    ______ _____ ______ ______ _________ _________ _____ _____ ______ _________ __________ ____.
    _______ ____ _______ ____ _________ _________ ________.
    _______ ____ ____ _________ _________ ____.
    _________ _________ _______ _______ _________ ____ ____ ______ ____ ________ ______ _____.
    _________ ________ ______ ____ ____ ______ _________.
    _____ _____ ______ ___ ___ ______ ____ ______ ________ __________ _________ ________.
    _____ ___ ______ ____ ______ ___.
    _____ ________ ___ ___ ________ _____ _______ ____ __________ __________ ______.
    _______ __________ _____ _______ ____ ________.
    ____ ___ _____ _________ _______.
    _____ ___ _____ _______ ____ ____.
    ________ ________ __________ ____ _____ ______ ______ ______ _________.
    ____ _________ _____ ________ _____ __________.
    __________ __________ ____ ________ ________ _______ ________ ________ _____ ______ ____.
    _________ _____ _____ ______ ________ ____ ______ ____ _____.
    ________ _______ ________ _________ ________ ________ ___ _______ ____ __________ ____.
    _______ ________ _____ _____ _________.
    ___ _____ __________ ___ ____ ________ _________ ________ _________.
    __________ _______ _________ _________ _________ ____ _____.
    _____ _________ ___ ________ ____ _________ _____ ___ _____ _________ ______ ________.
    ______ ____ ____ _______ ______ ________ ______ ____.
    _______ ___ _______ ______ ______ ______ _______ ___ __________ _______.
    ___ __________ _________ ________ ________ __________ __________ ___ _________ ____ _______.
    ________ ______ ______ ________.
    Get Full Answer on WhatsApp
IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance Write and run the following queries for your database using SQL comman
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→