Professional Documents
Culture Documents
Practical Questions - Google Docs (1), Any Language
Practical Questions - Google Docs (1), Any Language
Practical Questions - Google Docs (1), Any Language
Find the unique and repeat number from the below array
Input : - [1, 2, 3, 2, 4, 10, 5, 3, 7, 1, 6, 7, 8, 9, 10]
Output :-
- Unique Numbers : [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
- Repeat Numbers : [1, 2, 3, 7, 10]
Question 2:
Create script for city wise total sales in below table
Order Table :-
ID City Amount
1 1 200
2 2 300
3 3 400
4 1 300
5 3 200
6 2 400
7 1 200
8 2 300
9 3 250
10 1 120
City Table :-
ID Name
1 Ahmedabad
2 Bhavnagar
3 Surat
Question 3:
ABC company wants an order processing system for their order and inventory management.
According to product inventory display the order no. that cannot be processed further. Also,
Update the status of order completed if stock is available, otherwise set cancel.
Order Table :-
ID Order No. Product Code Qty Status
Product Table :-
ID Code Stock
1 P001 20
2 P002 30
3 P003 15
4 P004 35
Question 4:
Display the order details of the below product code.
Product Codes = P001, P005, P003, P006
Order Table :-
ID Order No. Product Code Status