ADBMS Lab
ADBMS Lab
1. Design the database using DDL command to define the following relational schema
[RDBMS].
ProductCategory(CategoryId, CategoryName)
Product (ProductId, Name, Quantity, Discount, Price, ProductCategoryRef_Id, CreatedDate,
ProductCode)
• Write a query to create a view that shows the total amount and total orders for each
customer.
2. Create procedure that accepts a markup amount and categoryId as input, applies the
markup to the price, and returns the total number of items of the specific category
[RDBMS].
3. Create an SQL function that calculates the percentage of sales for each product category
out of the total sales [RDBMS].
4. Design the object relational database (using ODL) for the following ER diagram
[ORDBMS].
> supervise(james,franklin).
> supervise(franklin,john).
> supervise(franklin,ramesh).
> supervise(franklin,joyce).
> supervise(james,jennifer).
> supervise(jennifer,alicia).
> supervise(jennifer,ahmed).