0% found this document useful (0 votes)
7 views

Practical Assignment 4-1

DSA ASSIGNMENT

Uploaded by

Soham Bodhani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Practical Assignment 4-1

DSA ASSIGNMENT

Uploaded by

Soham Bodhani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Maharashtra Education Society’s

Institute of Management and Career Courses (IMCC), Pune


AUTONOMOUS
IT13: ADBMS
Practical Assignment 4
Practical 4: Implementation of filtering functions, indexes and Join queries.

LAB PRACTICE ASSIGNMENT:


Write a query to create a product & Customer table with the given fields
Product (product code, product name, price, stock, Quantity and category)
Customer (customer ID, customer name, customer location, and customer phone number)

Write SQL statements for the following query.


1. Write a query to create an index on the customer table.
2. Write a query to insert values into the customer And product tables
3. Write a query to display the details of the product from the product table where the quantity
is greater than 2 and the price is less than 500
4. Write a query to display every customer whose name Starts with an ‘a’

5. Write a query to display the column product name in upper case & product details in
descending order of price
6. Write a query to display the customer details in ascending order of Name and return
the customer’s name in lowercase
7. Write a query to display the product code and category from categories that have two or
more products
8. Write a SQL query to find those Products that do not belong to the Category Icecream. Return
complete information about the Product.
9. Write a query to display the unique category from the product table
10. Write a SQL query to find product categories who are in the fruits product code 2 or 5.
Return complete information about the product.
11. Write a query to apply inner join on the product and customer table and display customer
ID, customer name, product name, and price
12. Write a query to apply left join on the product and customer table and display customer ID,
customer name, Product code, product name, and price.
13. Write a query to apply right join on the product and customer table and display customer ID,
customer name, Product code, product name, and price.

You might also like