Capgemini ADAPT 2022 – Toy Rental Learning Outcome 5 Solutions – RDBMS Solutions 2022

Capgemini ADAPT 2022 - Toy Rental Learning Outcome 5 Solutions - RDBMS Solutions
Capgemini ADAPT 2022 - Toy Rental Learning Outcome 5 Solutions - RDBMS Solutions

The problems of  Toy Rental LO 5 are – Rental Details of John, Toys Availability, Rental Details of Given Toy, Rented in Bangalore, Customer and Rented Electronic Toys, Not Rented by Customers.

In this post, you will get the solution to the Capgemini ADAPT 2022 solutions to the problems of Toy Rental A Learning Outcome 5.

Note: The solutions are provided for learning purposes only. 

Toy Rental A – SQL Problem Solutions – Learning Outcome 5:


1. Rental Details of John:


alter session set current_schema = mt_toy;
SET heading OFF

SELECT * FROM TOY_RENTAL
WHERE CUSTOMER_ID IN
(SELECT CUSTOMER_ID FROM CUSTOMER
WHERE CUSTOMER_NAME = ‘John’);

2. Toys Availability:


alter session set current_schema = mt_toy;
SET heading OFF

SELECT TOY_ID, TOY_NAME FROM TOY
WHERE TOY_ID IN
(SELECT TOY_ID FROM TOY_RENTAL
WHERE STATUS = ‘Rented’
AND TO_CHAR(RENTAL_END_DATE, ‘DD-MON-YYYY’) = ’31-JUL-2020′);

3. Rental Details of Given Toy:


alter session set current_schema = mt_toy;
SET heading OFF

SELECT * FROM TOY_RENTAL
WHERE TOY_ID IN
(SELECT TOY_ID FROM TOY
WHERE TOY_NAME = ‘PlayStix’);

4. Rented in Bangalore:


alter session set current_schema = mt_toy;
SET heading OFF

SELECT TOY_NAME FROM TOY
WHERE TOY_ID IN
(SELECT TOY_ID FROM TOY_RENTAL
WHERE STATUS = ‘Received’ AND CUSTOMER_ID IN
(SELECT CUSTOMER_ID FROM CUSTOMER
WHERE CITY = ‘Bangalore’));

5. Customer and Rented Electronic Toys:


alter session set current_schema = mt_toy;
SET heading OFF

SELECT CUSTOMER.CUSTOMER_ID, CUSTOMER_NAME, CITY
FROM CUSTOMER, TOY_RENTAL, TOY
WHERE CUSTOMER.CUSTOMER_ID = TOY_RENTAL.CUSTOMER_ID
AND TOY_RENTAL.TOY_ID = TOY.TOY_ID AND TOY_TYPE = ‘Electronics’
ORDER BY CUSTOMER.CUSTOMER_ID;

6. Not Rented by Customers:


alter session set current_schema = mt_toy;
SET heading OFF

SELECT TOY_NAME FROM TOY
WHERE NOT EXISTS
(SELECT TOY_ID FROM TOY_RENTAL
WHERE TOY.TOY_ID = TOY_RENTAL.TOY_ID);

Top Companies + Batchwise Hiring Drive:


TOP COMPANIES HIRING DRIVEBATCHWISE HIRING DRIVES
1. TCS OFF-CAMPUS DRIVES1. 2018 BATCH
2. INFOSYS OFF-CAMPUS DRIVES2. 2019 BATCH
3. COGNIZANT OFF-CAMPUS DRIVES3. 2020 BATCH
4. WIPRO OFF-CAMPUS DRIVES4. 2021 BATCH
5. CAPGEMINI OFF-CAMPUS DRIVES5. 2022 BATCH

To Stay Up-to-date, Follow us on Social Media:


1.      Join our Telegram Channel:Click Here
2.      Like us on Facebook:Click Here
3.      Follow us on Instagram:Click Here
4.      Follow us on LinkedIn:Click Here
5.      Follow us on Google News: Click Here

ADAPT Different Coding Solutions:


  1. Largest Array Solution – Click Here
  2. Batsman & Bowler Solution – Click Here
  3. Instruments Problem Solution – Click Here
  4. Check Two Person Are Same – Click Here
  5. Medicine App ADAPT Solution – Click Here
  6. String Combination Capgemini ADAPT Solution – Click Here
  7. Remove”X”inString Problem Solution – Click Here
  8. Customer and Invoice ADAPT Problem Solution – Click Here
  9. Book and Author Problem Solution – Click Here
  10. Highest Feedback Problem Solution – Click Here
  11. Registered Customer Problem Solution in Java – Click Here
  12. Product of Digits Problem Solution – Click Here
  13. Change Using Minimal Coins/Notes Solution in Java – Click Here

Capgemini ADAPT Sprint 1 (Bus Reservation Solutions):


Capgemini ADAPT Sprint 2 (Bus Reservation System):


ADAPT Sprint 3 Solutions – Capgemini (Toy Rental A):


Study Materials for Interview Preparation (FREE MATERIALS):


  1. 240 Core Java Questions & Answers with PDF Download Link – Click Here
  2. 230+ SQL interview questions & answers pdf download – Click Here
  3. 50 LeetCode Interview Questions with Answers – PDF Notes – Click Here