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

Lab PrintOUT(3,4)

The document outlines a series of database operations including retrieval, updates, deletions, and insertions related to clients, products, and salesmen. It specifies various queries to extract client information, modify records, and manage product details. Additionally, it includes instructions for table alterations and data manipulations across multiple tables.

Uploaded by

ai6209255
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)
5 views

Lab PrintOUT(3,4)

The document outlines a series of database operations including retrieval, updates, deletions, and insertions related to clients, products, and salesmen. It specifies various queries to extract client information, modify records, and manage product details. Additionally, it includes instructions for table alterations and data manipulations across multiple tables.

Uploaded by

ai6209255
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/ 8

Fig 3(A): Find out the names of all the clients.

Fig 3(B): Retrieve the entire contents of the Client Master table.

Fig 3(C): Retrieve the list of names, city, and state of all clients.

Fig 3(D): List the various products available in the Product Master table.
Fig 3(E): List all the clients who are located in Mumbai.

Fig 3(F): Find the names of salesmen who have a salary equal to Rs. 3000.

Fig 4(A): Change the city of ClientNo 'C00005' to "Bangalore".

Fig 4(B): Change the BalDue of ClientNo 'C00001' to Rs. 1000.

Fig 4(C): Change the cost price of 'Trousers' to Rs. 950.00.


Fig 4(D): Change the city of all salesmen to 'Pune'.

Fig 5(A): Delete all salesmen from Salesman Master whose salaries are equal to Rs. 3500.

Fig 5(B): Delete all products from Product Master where quantity on hand is equal to 100.

Fig 5(C): Delete from Client Master where the column state holds the value 'Tamil Nadu'.

Fig 6(A): Add a column called 'Telephone' of data type 'NUMBER(10)' to the Client Master table.

Fig 6(B): Change the size of 'SellPrice' column in Product Master to DECIMAL(10,2).
Fig 7(A): Destroy the table Client Master along with its data.

Fig 8(A): Change the name of the Salesman Master table to 'sman_mast'.
8.2(A): Insertion of data in CLIENT_MASTER Table.

8.2(B): Insertion of data in PRODUCT_MASTER Table.

8.2(C): Insertion of data in SALESMAN_MASTER Table.

8.2(D): Insertion of data in SALES_ORDER Table.

8.2(E): Insertion of data in SALES_ORDER_DETAILS Table.


9.1(A): Names of clients with 'a' as the second letter 9.1(B): List of clients in a city starting with 'M'

9.1(C): Clients from 'Bangalore' or 'Mangalore' 9.1(D): List of clients whose BalDue > 10000

9.1(E): List all orders placed in June

9.1(F): List of orders for ClientNo 'C00001' and 'C00002'

9.1(G): Products with selling price > 500 and <= 750

9.1(H): Products selling price > 500 and new price 9.1(I): List clients not in Maharashtra

9.1(J): Count total number of orders 9.1(K): Average price of all products

9.1(L): Max and Min product price 9.1(M): Count products with price <= 500

9.1(N): Products with QTYONHAND < REORDERLVL


9.2(A): The order number and day 9.2(B): The month and date when the orders delivered

9.2(C): Order Date in 'DD-Month-YY' format 9.2(D): Date 15 days after today’s date

10.1(A): Description and total qty sold 10.1(B): The value of each product sold.

10.1(C): The average qty sold 10.1(D): The billed orders for the June.
10.2(A): Products not being sold. 10.2(B): the customer who placed order no ‘O19001’

10.2(C): Placed orders before May’02. 10.2(D): Client who bbought Lyca Top

10.2(E): Clients who have placed orders worth Rs. 10000 or more

You might also like