Practical File-Am. (2)
Practical File-Am. (2)
1 BOOKS
2 FURNITURE
3 GRADUATE
4 PRODUCTS and CLIENTS
5 HOSPITAL
6 PRODUCT
5. Converting time from minutes into hours and minutes into seconds
Input:-
5. Converting time from minutes into hours and minutes into seconds
Output:-
18. Write a program to input a list and to input two numbers and then
create a list from those numbers which are divisible from both
numbers, input:-
18. Write a program to input a list and to input two numbers and then
create a list from those numbers which are divisible from both
numbers, output:-
19. Write a program to input two list and display the maximum
elements from the lists along with its index, input:-
19. Write a program to input two list and display the maximum
elements from the lists along with its index, output:-
ii)To display cost of all the books published for FIRST PUBL.
iii)To display the Book_Name and price of the books more than 3 copies of which have been issued.
iv)To show the details of the book with quantity more than 30.
a)To list the details of furniture whose price is more than 10000.
b)To list the item name and price of furniture whose discount is
between 10 and 20.
c)To delete the record of all items where discount is 30.
ii) Display a list of all those names whose average is greater than 65.
iv. Write SQL query to display ProductName and price for all
products.
v. Which column is used as Foreign key and name the table where
it has been used as Foreign Key?
Ans v.
The column which is used as Foreign key is ‘P_ID’, It has been used in
both the tables- Product & Client. It is used to connect the two tables.
4. Table name- HOSPITAL
ii)To list the names of female patients who are in ENT department.
iii)To list the names of all patients with their date of admission.
iv)To display Patient’s Name, Charges and Age for only female patients.
6. Table name- Product
i)To show details of all PCs with stock more than 110.
ii)To list the company which gives warranty of more than 2 years.
iii)To find stock value of BPL company where stock value is sum of the
products of price and stock.
iv)To show products from PRODUCTS table.
v)To show the product name of the products which are within
warranty as on date.