├── .gitattributes
├── Case Study Sprint 1
├── Learning Outcomes 2
│ ├── Toys Rental – Toys Based on Quantity.txt
│ ├── Toys Rental – Toys Based on Price - Quantity.txt
│ └── Toys Rental – Toys Based on Rental.txt
├── Learning Outcomes 3
│ ├── Toys Rental – Toys Based on Rental Date.txt
│ ├── Toys Rental –Pending Rental Status.txt
│ ├── Toys Rental – Toys Minimum of two.txt
│ ├── Toys Rental – Max Toys By Customer.txt
│ ├── Toys Rental – Toys Based on Rental count.txt
│ ├── Toys Rental – Toys and Customer Details.txt
│ ├── Toys Rental – Max Rental for the Month.txt
│ ├── Toys Rental – Max Rental of Toys By Customer.txt
│ ├── Toys Rental – Customer and Toys.txt
│ └── Toys Rental –Details of Toy, Cusomer.txt
├── Learning Outcomes 5
│ ├── Toys Rental – Not Rented by customers.txt
│ ├── Toys Rental – Rental Details of PlayStix.txt
│ ├── Toys Rental – Rental Details of John.txt
│ ├── Toys Rental – Rented in Bangalore.txt
│ ├── Toys Rental – Customer Rented Electronic toys.txt
│ └── Toys Rental – Toys availability.txt
├── Learning Outcomes 1
│ ├── Toys Rental- Available Toys.txt
│ ├── Toys Rental- Toys based on the Age.txt
│ ├── Toys Rental- Customer Ascending order.txt
│ └── Toys Rental – Customer Count.txt
└── Learning Outcomes 4
│ ├── Toys Rental – Top 3 Customers.txt
│ ├── Toys Rental – Toy rented for long duration.txt
│ ├── Toys Rental – Max Toys for the Month.txt
│ ├── Toys Rental – Most rented toy.txt
│ └── Toys Rental – Top 2 Customers on revenue.txt
├── RDBMS
├── Group Functions
│ ├── Coding Exercise 1 Aggregate functions.txt
│ ├── Coding Exercise 3 Group Functions.txt
│ └── Coding Exercise 2 Group Functions.txt
├── Sub Queries
│ ├── Coding Exercise 3 SubQueries.txt
│ ├── Coding Exercise 5 SubQueries.txt
│ ├── Coding Exercise 4 SubQueries.txt
│ ├── Coding Exercise 2 SubQueries.txt
│ ├── Coding Exercise 6 SubQueries.txt
│ └── Coding Exercise 1 SubQueries.txt
├── Single Row Functions
│ ├── Coding Exercise 1 Char Functions.txt
│ ├── Coding Exercise 2 Char Functions.txt
│ ├── Coding Exercise 3 Char, Where Clause.txt
│ └── Coding Exercise 4 Case Functions.txt
├── Basic SQL Select Statements
│ ├── 3.where and order by.txt
│ ├── 2.orderby.txt
│ └── 1.where.txt
└── Joins
│ ├── Coding Exercise 4 Joins.txt
│ ├── Coding Exercise 1 Joins.txt
│ ├── Coding Exercise 2 Joins.txt
│ ├── Coding Exercise 5 Joins.txt
│ └── Coding Exercise 3 Joins.txt
├── HTML 5, CSS And Javascript
├── Practice Assignments
│ ├── Javascript Assignments
│ │ ├── Assignment 1
│ │ │ ├── App.js
│ │ │ └── index.html
│ │ ├── Assignment 6
│ │ │ ├── index.html
│ │ │ └── App.js
│ │ ├── Assignment 2
│ │ │ ├── index.html
│ │ │ └── App.js
│ │ ├── Assignment 3
│ │ │ ├── index.html
│ │ │ └── App.js
│ │ ├── Assignment 5
│ │ │ ├── App.js
│ │ │ └── index.html
│ │ └── Assignment 4
│ │ │ ├── App.js
│ │ │ └── index.html
│ └── HTML Assignments
│ │ ├── Assignment5.html
│ │ ├── Assignment8.html
│ │ ├── Assignment1.html
│ │ ├── Assignment2.html
│ │ ├── Assignment6.html
│ │ ├── Assignment7.html
│ │ ├── Assignment4.html
│ │ └── Assignment3.html
├── 7 Programming Javascript
│ ├── Even Number Sum in JS
│ │ ├── app.js
│ │ └── index.html
│ └── Login Form Validation in JS
│ │ ├── app.js
│ │ └── index.html
├── 2 Basics of HTML
│ ├── 02 - Coding - Main Page Link.html
│ ├── 02 Coding - Education List.html
│ ├── Student Details Table in HTML.html
│ ├── Profile Image in HTML.html
│ └── Make New Friends in HTML.html
├── 3 Using HTML 5
│ ├── Login Form in HTML.html
│ └── Registration Form in HTML.html
├── 4 CSS3
│ └── CSS Chat Window.html
└── 6 Introduction to Javascript
│ └── New User Registration in JS.html
├── Case Study - Sprint 2
├── 1 Toys Rental- Add Toys
│ ├── App.js
│ ├── index.html
│ └── indexWithValidation.html
├── 3 Toys Rental- Customer Registration Form
│ ├── index.html
│ ├── indexWithValidation.html
│ └── App.js
└── 2 Toys Rental- Rent Toys
│ ├── index.html
│ ├── indexWithValidation.html
│ └── App.js
├── README.md
└── LICENSE
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 2/Toys Rental – Toys Based on Quantity.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | select *
4 | from TOY
5 | where quantity between 20 and 50;
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 3/Toys Rental – Toys Based on Rental Date.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | SELECT *
4 | FROM TOY_RENTAL
5 | WHERE TO_CHAR(RENTAL_START_DATE,'DD-MM-YY') = '20-05-20';
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 5/Toys Rental – Not Rented by customers.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | SELECT TOY_NAME
4 | FROM TOY
5 | WHERE TOY_ID NOT IN ( SELECT DISTINCT TOY_ID
6 | FROM TOY_RENTAL);
--------------------------------------------------------------------------------
/RDBMS/Group Functions/Coding Exercise 1 Aggregate functions.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema=bank;
2 | SET heading OFF;
3 | select min(installment_amt),
4 | max(installment_amt)
5 | from bank_rd_account
6 | where to_char(rd_start_dt,'yyyy') = '2008';
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 1/Toys Rental- Available Toys.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | /*
4 | * Enter your query below.
5 | * Please append a semicolon ";" at the end of the query
6 | */
7 | select * from toy;
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 5/Toys Rental – Rental Details of PlayStix.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | SELECT *
4 | FROM TOY_RENTAL
5 | WHERE TOY_ID IN (SELECT TOY_ID
6 | FROM TOY
7 | WHERE UPPER(TOY_NAME) LIKE '%PLAYSTIX%');
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 5/Toys Rental – Rental Details of John.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | SELECT *
4 | FROM TOY_RENTAL
5 | WHERE CUSTOMER_ID IN (SELECT CUSTOMER_ID
6 | FROM CUSTOMER
7 | WHERE UPPER(CUSTOMER_NAME) LIKE '%JOHN%');
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 3/Toys Rental –Pending Rental Status.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | SELECT CUSTOMER.*
4 | FROM CUSTOMER
5 | WHERE CUSTOMER_ID =
6 | ( SELECT CUSTOMER_ID
7 | FROM TOY_RENTAL
8 | WHERE UPPER(STATUS) LIKE '%PENDING%');
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 1/Toys Rental- Toys based on the Age.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | /*
4 | * Enter your query below.
5 | * Please append a semicolon ";" at the end of the query
6 | */
7 | select * from toy
8 | where min_age <= 3;
--------------------------------------------------------------------------------
/RDBMS/Sub Queries/Coding Exercise 3 SubQueries.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema=bank;
2 | SET heading OFF;
3 | select *
4 | from bank_employee emp
5 | where upper(designation) not like '%ATTENDER%' and
6 | emp.bank_emp_id not in (
7 | select bank_emp_id
8 | from bank_transaction
9 | );
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 3/Toys Rental – Toys Minimum of two.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | SELECT * FROM CUSTOMER
4 | WHERE CUSTOMER_ID IN (
5 | SELECT CUSTOMER_ID
6 | FROM TOY_RENTAL
7 | GROUP BY CUSTOMER_ID
8 | HAVING COUNT(CUSTOMER_ID) > 1
9 | );
--------------------------------------------------------------------------------
/RDBMS/Sub Queries/Coding Exercise 5 SubQueries.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema=bank;
2 | SET heading OFF;
3 | select account_no
4 | from bank_sb_account savings
5 | where not exists (
6 | select *
7 | from bank_transaction trans
8 | where savings.account_no = trans.trans_acc_no
9 | );
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 1/Toys Rental- Customer Ascending order.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | /*
4 | * Enter your query below.
5 | * Please append a semicolon ";" at the end of the query
6 | */
7 | select * from customer
8 | order by customer_name;
--------------------------------------------------------------------------------
/RDBMS/Group Functions/Coding Exercise 3 Group Functions.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema=bank;
2 | SET heading OFF;
3 | select cust_id,
4 | count(cust_id)
5 | from bank_cust_contact contact
6 | where contact.contact_type = 'OFFICE'
7 | group by contact.cust_id
8 | having count(contact.cust_phone) > 1;
--------------------------------------------------------------------------------
/RDBMS/Single Row Functions/Coding Exercise 1 Char Functions.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema=bank;
2 | SET heading OFF;
3 | select cust.cust_id,
4 | upper(cust.cust_fname),
5 | upper(cust.cust_lname),
6 | to_char(cust.cust_dob,'dd-Mon')
7 | from bank_customer cust
8 | where cust.cust_sex like '%F%';
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 3/Toys Rental – Max Toys By Customer.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | SELECT CUSTOMER_ID
4 | FROM (
5 | SELECT CUSTOMER_ID, COUNT(TOY_ID)
6 | FROM TOY_RENTAL TOY
7 | GROUP BY CUSTOMER_ID
8 | ORDER BY COUNT(TOY_ID) DESC )
9 | WHERE ROWNUM = 1;
--------------------------------------------------------------------------------
/RDBMS/Group Functions/Coding Exercise 2 Group Functions.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema=bank;
2 | SET heading OFF;
3 | select designation,
4 | count(bank_emp_id) as Emp_count
5 | from bank_employee
6 | where designation not like '%ATTENDER%'
7 | group by designation
8 | order by count(bank_emp_id), designation;
--------------------------------------------------------------------------------
/RDBMS/Single Row Functions/Coding Exercise 2 Char Functions.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema=bank;
2 |
3 |
4 | SELECT TRANS_DT,
5 | SUBSTR(TRANS_DESC,1,20) AS TRANS_DESC,
6 | TRANS_AMT
7 | FROM BANK_TRANSACTION
8 | WHERE UPPER(TRANS_TYPE) LIKE '%CR%' AND
9 | TO_CHAR(TRANS_DT,'MM-YY') = '06-10';
10 |
--------------------------------------------------------------------------------
/RDBMS/Sub Queries/Coding Exercise 4 SubQueries.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema=bank;
2 | SET heading OFF;
3 | select cust_id,
4 | cust_fname
5 | from bank_customer
6 | where cust_id not in (
7 | select cust_id
8 | from bank_cust_contact
9 | where contact_type = 'OFFICE'
10 | ) and
11 | cust_type = 'IND';
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 2/Toys Rental – Toys Based on Price - Quantity.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | /*
4 | * Enter your query below.
5 | * Please append a semicolon ";" at the end of the query
6 | */
7 | select *
8 | from toy
9 | where price > 145 and
10 | quantity = 5;
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 1/Toys Rental – Customer Count.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | /*
4 | * Enter your query below.
5 | * Please append a semicolon ";" at the end of the query
6 | */
7 |
8 | select city,
9 | count(customer_id)
10 | from customer
11 | group by city;
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 4/Toys Rental – Top 3 Customers.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | SELECT CUSTOMER_ID, TOTAL_RENTALS
4 | FROM (
5 | SELECT CUSTOMER_ID, COUNT(CUSTOMER_ID) AS TOTAL_RENTALS
6 | FROM TOY_RENTAL
7 | GROUP BY CUSTOMER_ID
8 | ORDER BY COUNT(CUSTOMER_ID) DESC
9 | )
10 | WHERE ROWNUM <= 3;
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 5/Toys Rental – Rented in Bangalore.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | SELECT TOY_NAME FROM (SELECT TOY_NAME
4 | FROM TOY
5 | WHERE TOY_ID IN ( SELECT TOY_ID FROM TOY_RENTAL
6 | WHERE CUSTOMER_ID IN ( SELECT CUSTOMER_ID
7 | FROM CUSTOMER
8 | WHERE UPPER(CITY) = 'BANGALORE' ) ) )
9 | WHERE ROWNUM = 1;
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/Practice Assignments/Javascript Assignments/Assignment 1/App.js:
--------------------------------------------------------------------------------
1 | const name = prompt('Enter your name');
2 | confirm(`Your name is ${name}`);
3 | alert(`Welcome to our website, ${name}`);
4 | const nameEl = document.createElement('h1');
5 | nameEl.textContent = `Welcome to our website, ${name}`;
6 | document.querySelector('body').appendChild(nameEl);
7 |
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 2/Toys Rental – Toys Based on Rental.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | SELECT CUSTOMER_NAME
4 | FROM CUSTOMER
5 | WHERE CUSTOMER_ID IN ( SELECT CUSTOMER_ID
6 | FROM (
7 | SELECT DISTINCT CUSTOMER_ID, STATUS
8 | FROM TOY_RENTAL
9 | GROUP BY CUSTOMER_ID, STATUS
10 | HAVING COUNT(CUSTOMER_ID) > 2
11 | ));
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 3/Toys Rental – Toys Based on Rental count.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | SELECT CUSTOMER.CUSTOMER_NAME FROM
4 | ( SELECT DISTINCT CUSTOMER_ID, STATUS, COUNT(CUSTOMER_ID)
5 | FROM TOY_RENTAL
6 | GROUP BY CUSTOMER_ID, STATUS
7 | HAVING COUNT(CUSTOMER_ID) > 2 ) CUST, CUSTOMER
8 | WHERE CUST.CUSTOMER_ID = CUSTOMER.CUSTOMER_ID;
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 3/Toys Rental – Toys and Customer Details.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | SELECT CUST.CUSTOMER_NAME AS CUSTOMER_NAME,
4 | T.TOY_NAME AS TOY_NAME,
5 | TOY.RENTAL_END_DATE AS RENTAL_END_DATE
6 | FROM CUSTOMER CUST INNER JOIN TOY_RENTAL TOY
7 | ON CUST.CUSTOMER_ID = TOY.CUSTOMER_ID INNER JOIN TOY T
8 | ON TOY.TOY_ID = T.TOY_ID;
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 4/Toys Rental – Toy rented for long duration.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | SELECT TOY_NAME
4 | FROM TOY
5 | WHERE TOY_ID IN (SELECT TOY_ID FROM
6 | ( SELECT TOY_ID, MONTHS_BETWEEN(RENTAL_END_DATE,RENTAL_START_DATE)
7 | FROM TOY_RENTAL
8 | ORDER BY MONTHS_BETWEEN(RENTAL_END_DATE,RENTAL_START_DATE) DESC )
9 | WHERE ROWNUM = 1 );
--------------------------------------------------------------------------------
/RDBMS/Basic SQL Select Statements/3.where and order by.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema=bank;
2 | SET heading OFF;
3 | SELECT BANK_EMPLOYEE.DESIGNATION,
4 | BANK_EMPLOYEE.BANK_EMP_ID,
5 | BANK_EMPLOYEE.EMP_NAME,
6 | BANK_EMPLOYEE.EMP_SEX
7 | FROM BANK_EMPLOYEE
8 | WHERE BANK_EMPLOYEE.DESIGNATION NOT LIKE '%MANAGER%'
9 | ORDER BY BANK_EMPLOYEE.DESIGNATION DESC,
10 | BANK_EMPLOYEE.EMP_NAME ASC;
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 3/Toys Rental – Max Rental for the Month.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 |
4 | SELECT * FROM (
5 | SELECT CUSTOMER_ID, SUM(TOTAL_AMOUNT)
6 | FROM TOY_RENTAL TOY
7 | WHERE TO_CHAR(RENTAL_START_DATE,'MM-YY') = '06-20' OR
8 | TO_CHAR(RENTAL_END_DATE,'MM-YY') = '06-20'
9 | GROUP BY CUSTOMER_ID
10 | ORDER BY 2 DESC )
11 | WHERE ROWNUM = 1;
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 4/Toys Rental – Max Toys for the Month.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | SELECT INITCAP(MONTH), TOTAL_TOYS FROM (
4 | SELECT TO_CHAR(RENTAL_START_DATE,'MONTH') AS MONTH,
5 | COUNT(TO_CHAR(RENTAL_START_DATE,'MONTH')) AS TOTAL_TOYS
6 | FROM TOY_RENTAL
7 | GROUP BY TO_CHAR(RENTAL_START_DATE,'MONTH')
8 | ORDER BY TOTAL_TOYS DESC)
9 | WHERE ROWNUM = 1;
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 4/Toys Rental – Most rented toy.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | SELECT TOY.TOY_NAME
4 | FROM TOY
5 | WHERE TOY_ID IN (
6 | SELECT TOY_ID
7 | FROM TOY_RENTAL
8 | GROUP BY TOY_ID
9 | HAVING COUNT(TOY_ID) = (
10 | SELECT MAX(CONT)
11 | FROM (
12 | SELECT TOY_ID, COUNT(TOY_ID) AS CONT
13 | FROM TOY_RENTAL
14 | GROUP BY TOY_ID
15 | )));
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 4/Toys Rental – Top 2 Customers on revenue.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | SELECT CUSTOMER_NAME
4 | FROM CUSTOMER
5 | WHERE CUSTOMER_ID IN ( SELECT CUSTOMER_ID
6 | FROM (
7 | SELECT CUSTOMER_ID
8 | FROM TOY_RENTAL
9 | GROUP BY CUSTOMER_ID
10 | ORDER BY COUNT(CUSTOMER_ID) DESC
11 | )
12 | WHERE ROWNUM <= 2 )
13 | ORDER BY CUSTOMER_NAME ;
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 3/Toys Rental – Max Rental of Toys By Customer.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | SELECT TOY.*
4 | FROM TOY
5 | WHERE TOY_ID IN (
6 | SELECT TOY_ID
7 | FROM TOY_RENTAL
8 | GROUP BY TOY_ID
9 | HAVING COUNT(TOY_ID) = (
10 | SELECT MAX(CONT)
11 | FROM (
12 | SELECT TOY_ID, COUNT(TOY_ID) AS CONT
13 | FROM TOY_RENTAL
14 | GROUP BY TOY_ID
15 | )));
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 5/Toys Rental – Customer Rented Electronic toys.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 |
4 | SELECT CUSTOMER_ID, CUSTOMER_NAME, CITY
5 | FROM CUSTOMER
6 | WHERE CUSTOMER_ID IN (SELECT CUSTOMER_ID FROM
7 | TOY_RENTAL
8 | WHERE TOY_ID IN (
9 | SELECT TOY_ID
10 | FROM TOY
11 | WHERE UPPER(TOY_TYPE) = 'ELECTRONICS'
12 | ))
13 | ORDER BY CUSTOMER_ID;
14 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/7 Programming Javascript/Even Number Sum in JS/app.js:
--------------------------------------------------------------------------------
1 | const result = document.querySelector('#result');
2 |
3 | const calculateSum = (number) => {
4 | let sum = 0;
5 | for (let i = 1; i <= number; i = i + 1) {
6 | if (i % 2 === 0) {
7 | sum += i;
8 | }
9 | }
10 | return sum;
11 | };
12 |
13 | let sum = calculateSum(20);
14 |
15 | result.textContent = 'Total:' + sum;
16 |
--------------------------------------------------------------------------------
/RDBMS/Joins/Coding Exercise 4 Joins.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema=bank;
2 | SET heading OFF;
3 | select emp.bank_emp_id as bank_emp_id,
4 | emp.emp_name as emp_name,
5 | emp.designation as designation,
6 | trans.trans_desc as trans_desc
7 | from bank_employee emp left outer join bank_transaction trans
8 | on emp.bank_emp_id = trans.bank_emp_id
9 | where emp.designation like '%MANAGER%' or emp.designation like '%ASST.%MGR.%';
--------------------------------------------------------------------------------
/RDBMS/Sub Queries/Coding Exercise 2 SubQueries.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema=bank;
2 | SET heading OFF;
3 | select trans.*
4 | from bank_transaction trans
5 | where trans.trans_acc_no in
6 | ( select account_no
7 | from bank_rd_account rd where
8 | rd.rd_cust_id in (
9 | select cust_id from bank_cust_contact cont
10 | where upper(cust_state) like '%TAMILNADU%'
11 | )
12 | );
--------------------------------------------------------------------------------
/RDBMS/Sub Queries/Coding Exercise 6 SubQueries.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema=bank;
2 | SET heading OFF;
3 | SELECT ACCOUNT_NO,
4 | TRANS_AMT
5 | FROM BANK_SB_ACCOUNT BankSB INNER JOIN BANK_TRANSACTION Trans
6 | on BankSB.ACCOUNT_NO = Trans.TRANS_ACC_NO
7 | WHERE Trans.TRANS_TYPE = 'DB' AND
8 | Trans.TRANS_AMT > (SELECT AVG(TRANS_AMT)
9 | FROM BANK_TRANSACTION Trans
10 | WHERE BankSB.ACCOUNT_NO = Trans.TRANS_ACC_NO);
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 3/Toys Rental – Customer and Toys.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | SELECT CUST.CUSTOMER_NAME AS CUSTOMER_NAME,
4 | CUST.CITY AS CITY,
5 | TOY.RENTAL_ID AS RENTAL_ID,
6 | TOY.RENTAL_START_DATE AS RENTAL_START_DATE,
7 | TOY.RENTAL_END_DATE AS RENTAL_END_DATE
8 | FROM CUSTOMER CUST LEFT OUTER JOIN
9 | TOY_RENTAL TOY
10 | ON CUST.CUSTOMER_ID = TOY.CUSTOMER_ID;
--------------------------------------------------------------------------------
/RDBMS/Sub Queries/Coding Exercise 1 SubQueries.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema=bank;
2 | SET heading OFF;
3 | select fd.account_no as account_no,
4 | cust.cust_fname,
5 | cust.cust_lname
6 | from bank_fd_account fd,
7 | bank_customer cust
8 | where cust.cust_id = fd.cust_id and
9 | ( fd.initial_amt = ( select max(initial_amt) from bank_fd_account ) or
10 | fd.initial_amt = ( select min(initial_amt) from bank_fd_account ) );
--------------------------------------------------------------------------------
/RDBMS/Basic SQL Select Statements/2.orderby.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema=bank;
2 | SET heading OFF;
3 | SELECT BANK_SB_ACCOUNT.ACCOUNT_NO AS ACCOUNT_NO,
4 | BANK_SB_ACCOUNT.PRIMARY_CUST_ID AS PRIMARY_CUST_ID,
5 | BANK_SB_ACCOUNT.CURR_BAL_AMT AS CURR_BAL_AMT,
6 | BANK_SB_ACCOUNT.START_DATE AS START_DATE
7 | FROM BANK_SB_ACCOUNT
8 | WHERE BANK_SB_ACCOUNT.ACC_STATUS LIKE '%Active%'
9 | ORDER BY BANK_SB_ACCOUNT.START_DATE ASC;
10 |
11 |
12 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/Practice Assignments/HTML Assignments/Assignment5.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Manipal University
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 5/Toys Rental – Toys availability.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 |
4 | SELECT T.TOY_ID, T.TOY_NAME
5 | FROM TOY_RENTAL TR INNER JOIN TOY T
6 | ON TR.TOY_ID = T.TOY_ID
7 | WHERE TO_CHAR(TR.RENTAL_END_DATE,'DD-MM-YY') = '31-07-20'
8 | GROUP BY T.TOY_ID, T.TOY_NAME
9 | HAVING COUNT(TR.TOY_ID) = ( SELECT QUANTITY FROM TOY TT WHERE TT.TOY_ID = T.TOY_ID )
10 | ORDER BY COUNT(T.TOY_ID) DESC ;
--------------------------------------------------------------------------------
/RDBMS/Joins/Coding Exercise 1 Joins.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema=bank;
2 | SET heading OFF;
3 | select cust.cust_id as cust_id,
4 | cust.cust_fname as cust_fname,
5 | cust.cust_lname as cust_lname,
6 | cont.cust_phone as cust_phone,
7 | cont.cust_city as cust_city
8 | from bank_customer cust,
9 | bank_cust_contact cont
10 | where cust.cust_id = cont.cust_id and
11 | cont.cust_state not like '%Karnataka%' and
12 | cont.contact_type like '%HOME%';
13 |
--------------------------------------------------------------------------------
/RDBMS/Single Row Functions/Coding Exercise 3 Char, Where Clause.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema=bank;
2 | SET heading OFF;
3 | select trans.trans_dt,
4 | trans.trans_acc_no,
5 | trans.trans_desc,
6 | trans.trans_amt,
7 | decode(trans_type,'CR','Credit',
8 | 'DB','Debit') trans_type
9 | from bank_transaction trans
10 | where trans_amt > 10000 and
11 | trans_desc not like '%RD%INSTLMNT%'
12 | order by
13 | trans.trans_type asc,
14 | trans.trans_dt desc;
15 |
16 |
--------------------------------------------------------------------------------
/Case Study Sprint 1/Learning Outcomes 3/Toys Rental –Details of Toy, Cusomer.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema = mt_toy;
2 | SET heading OFF
3 | SELECT CUST.CUSTOMER_NAME AS CUSTOMER_NAME,
4 | TOY.TOY_NAME AS TOY_NAME,
5 | TR.RENTAL_START_DATE,
6 | TR.RENTAL_END_DATE
7 | FROM CUSTOMER CUST INNER JOIN TOY_RENTAL TR
8 | ON CUST.CUSTOMER_ID = TR.CUSTOMER_ID INNER JOIN TOY
9 | ON TR.TOY_ID = TOY.TOY_ID
10 | WHERE TO_CHAR(TR.RENTAL_START_DATE,'DD-MM-YY') = '25-01-20';
11 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/Practice Assignments/HTML Assignments/Assignment8.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Blog Page
5 |
6 |
7 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/RDBMS/Joins/Coding Exercise 2 Joins.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema=bank;
2 | SET heading OFF;
3 | select savings.account_no as account_no,
4 | trans.trans_type as trans_type,
5 | trans.trans_dt as trans_dt,
6 | trans.trans_desc as trans_desc,
7 | trans.trans_amt as trans_amt
8 | from bank_sb_account savings,
9 | bank_transaction trans
10 | where savings.account_no = trans.trans_acc_no and
11 | trans.trans_amt > 1000
12 | order by savings.account_no,
13 | trans.trans_type,
14 | trans.trans_dt;
--------------------------------------------------------------------------------
/RDBMS/Joins/Coding Exercise 5 Joins.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema=bank;
2 | SET heading OFF;
3 | select bank.cust_id as cust_id,
4 | bank.cust_fname as cust_fname,
5 | case
6 | when rd.account_no is null then 'NA'
7 | else to_char(rd.account_no)
8 | end as account_no,
9 | case
10 | when rd.installment_amt is null then 'NA'
11 | else to_char(rd.installment_amt)
12 | end as installment_amt
13 | from bank_customer bank left outer join
14 | bank_rd_account rd
15 | on bank.cust_id = rd.rd_cust_id;
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/Practice Assignments/Javascript Assignments/Assignment 1/index.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 | Global Education Services
8 |
9 |
10 |
11 |
12 |
13 | Blue chip info tech private limited
14 | Something, Chennai
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/2 Basics of HTML/02 - Coding - Main Page Link.html:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
14 | Home Page
15 |
16 |
17 | Menu
18 |
19 | Graduate & Post Graduate Stream
20 | Student Details
21 |
22 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/7 Programming Javascript/Even Number Sum in JS/index.html:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | Display Even Number & Sum
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/7 Programming Javascript/Login Form Validation in JS/app.js:
--------------------------------------------------------------------------------
1 | const usernameEl = document.getElementById('username');
2 | const passwordEl = document.getElementById('password');
3 | const infoEl = document.getElementById('info');
4 |
5 | console.log(usernameEl, passwordEl, infoEl);
6 |
7 | const UserLogin = () => {
8 | const username = usernameEl.value;
9 | const password = passwordEl.value;
10 |
11 | if (username === 'admin') {
12 | infoEl.textContent = 'Valid User';
13 | } else {
14 | infoEl.textContent = 'Invalid User';
15 | }
16 | };
17 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/Practice Assignments/HTML Assignments/Assignment1.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 | Online Shopping
7 |
8 |
9 |
10 | M/S Universal Shopping Centre
11 | 19, Hosur Road, Bangalore
12 |
13 |
14 | It is a shopping centre which sells all the items on retail
15 |
16 |
17 |
--------------------------------------------------------------------------------
/RDBMS/Single Row Functions/Coding Exercise 4 Case Functions.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema=bank;
2 | SET heading OFF;
3 | select saving.account_no,
4 | saving.cust_id,
5 | round((saving.initial_amt/100000),2) as initialamtin_lakhs,
6 | case
7 | when saving.initial_amt < 50000 then 'Low'
8 | when saving.initial_amt > 5000000 then 'High'
9 | else 'Medium'
10 | end as Amount_category,
11 | saving.start_dt,
12 | add_months(saving.start_dt,saving.fd_term_mnth) as maturity_date
13 | from bank_fd_account saving
14 | where to_char(saving.start_dt,'yyyy') > 2004 and
15 | saving.acc_status = 'Active';
--------------------------------------------------------------------------------
/RDBMS/Joins/Coding Exercise 3 Joins.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema=bank;
2 | SET heading OFF;
3 | select savings.account_no account_no,
4 | cust.cust_id as cust_id,
5 | cust.cust_fname as cust_fname,
6 | cust.cust_lname as cust_lname,
7 | cont.cust_phone as cust_phone
8 | from bank_sb_account savings,
9 | bank_customer cust,
10 | bank_cust_contact cont
11 | where ( cust.cust_id = savings.primary_cust_id or
12 | cust.cust_id = savings.secondary_cust_id ) and
13 | savings.primary_cust_id is not null and
14 | savings.secondary_cust_id is not null and
15 | cust.cust_id = cont.cust_id and
16 | cont.contact_type like '%HOME%'
17 | order by savings.account_no;
18 |
--------------------------------------------------------------------------------
/RDBMS/Basic SQL Select Statements/1.where.txt:
--------------------------------------------------------------------------------
1 | alter session set current_schema-bank;
2 | SET HEADING OFF;
3 | SELECT BANK_CUSTOMER.CUST_ID AS CUST_ID ,
4 | BANK_CUST_CONTACT.CUST_PHONE AS CUST_PHONE,
5 | BANK_CUST_CONTACT.CUST_ADDR_LINE1 AS CUST_ADDR_LINE1,
6 | BANK_CUST_CONTACT.CUST_ADDR_LINE2 AS CUST_ADDR_LINE2,
7 | BANK_CUST_CONTACT.CUST_CITY AS CUST_CITY,
8 | BANK_CUST_CONTACT.CUST_STATE AS CUST_STATE,
9 | BANK_CUST_CONTACT.CUST_PIN AS CUST_PIN
10 | FROM BANK_CUSTOMER, BANK_CUST_CONTACT
11 | WHERE BANK_CUSTOMER.CUST_ID = BANK_CUST_CONTACT.CUST_ID AND
12 | BANK_CUST_CONTACT.CUST_STATE IN ( 'Karnataka' , 'Tamilnadu') AND
13 | BANK_CUST_CONTACT.CONTACT_TYPE = 'HOME';
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/Practice Assignments/Javascript Assignments/Assignment 6/index.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 | Checking leap year or not
8 |
9 |
10 |
11 |
12 |
13 | Checking leap year or not
14 |
15 |
16 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/Case Study - Sprint 2/1 Toys Rental- Add Toys/App.js:
--------------------------------------------------------------------------------
1 | const toyNameEl = document.getElementById('toyname');
2 | const toyTypeEl = document.getElementById('toytype');
3 | const priceEl = document.getElementById('price');
4 | const quantityEl = document.getElementById('quantity');
5 |
6 | const validate = () => {
7 | const toyName = toyNameEl.value;
8 | const toyType = toyTypeEl.value;
9 | const price = priceEl.value;
10 | const quantity = quantityEl.value;
11 |
12 | if (
13 | // Not going to use Regex validation for length checking : toy name and toy type
14 | toyName.length > 3 &&
15 | toyType.length > 3 &&
16 | !isNaN(price) &&
17 | !isNaN(quantity)
18 | ) {
19 | console.log('Form is submitted');
20 | } else {
21 | console.log('Form is invalid');
22 | }
23 | };
24 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/Practice Assignments/Javascript Assignments/Assignment 2/index.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 | Computation
8 |
9 |
10 |
11 |
12 |
13 | Abacus Education Center, Hyderabad
14 | Sum of the odd digits
15 |
16 |
17 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/Practice Assignments/Javascript Assignments/Assignment 3/index.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 | Login Module
8 |
9 |
10 |
11 |
12 |
15 |
16 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/Practice Assignments/HTML Assignments/Assignment2.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 | Online Shopping
7 |
8 |
9 |
10 | Reliance India Limited
11 | 48 MG Road Bangalore
12 |
13 |
14 |
15 | Vegetables
16 |
17 | Brinjal
18 | Cucumber
19 | Something Gaurd
20 | Ladies Finger
21 |
22 |
23 |
24 | Fruits
25 |
26 | Orange
27 | Apple
28 | Banana
29 | Grapes
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/Practice Assignments/Javascript Assignments/Assignment 3/App.js:
--------------------------------------------------------------------------------
1 | const usernameEl = document.getElementById('username');
2 | const passwordEl = document.getElementById('password');
3 | const submitBtnEl = document.querySelector('button');
4 |
5 | const validateHandler = () => {
6 | let username = usernameEl.value.trim();
7 | let password = passwordEl.value.trim();
8 | if (document.querySelector('h3')) {
9 | document.querySelector('body').removeChild(document.querySelector('h3'));
10 | }
11 | const alertEl = document.createElement('h3');
12 | if (username && password) {
13 | if (username === 'admin' && password === 'admin') {
14 | alertEl.textContent = 'Valid user';
15 | } else {
16 | alertEl.textContent = 'Invalid user';
17 | }
18 | } else {
19 | alertEl.textContent = 'Fields are blank';
20 | }
21 | document.querySelector('body').appendChild(alertEl);
22 | };
23 |
24 | submitBtnEl.addEventListener('click', validateHandler);
25 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/Practice Assignments/Javascript Assignments/Assignment 5/App.js:
--------------------------------------------------------------------------------
1 | const selectEl = document.querySelector('select');
2 | const inputEl = document.querySelector('input');
3 | const submitBtnEl = document.querySelector('button');
4 |
5 | const calculatePrice = () => {
6 | const optionEls = selectEl.options;
7 | let price = 0;
8 | for (let i = 0; i < optionEls.length; i++) {
9 | if (optionEls[i].selected) {
10 | switch (optionEls[i].value) {
11 | case 'typeOne':
12 | price = 10 * i;
13 | break;
14 | case 'typeTwo':
15 | price = 10 * i;
16 | break;
17 | case 'typeThree':
18 | price = 10 * i;
19 | break;
20 | case 'typeFour':
21 | price = 10 * i;
22 | break;
23 | case 'typeFive':
24 | price = 10 * i;
25 | break;
26 | default:
27 | price = 'Please select a type';
28 | }
29 | }
30 | }
31 | inputEl.value = price;
32 | };
33 |
34 | selectEl.addEventListener('change', calculatePrice);
35 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/2 Basics of HTML/02 Coding - Education List.html:
--------------------------------------------------------------------------------
1 |
19 |
20 |
21 |
22 |
23 | Graduate & Post Graduate Stream
24 |
25 |
26 | Graduate
27 |
28 | BCA
29 | BCom
30 | Bsc
31 |
32 |
33 |
34 | Post Graduate
35 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/Practice Assignments/HTML Assignments/Assignment6.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 | Feedback Form
7 |
8 |
9 |
12 |
13 | Title:
14 | Operational Score:
15 | Faculty Score:
16 |
17 | Progress in topic:
18 |
19 |
20 |
21 |
22 |
23 | Memory occupied in systems:
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/Practice Assignments/Javascript Assignments/Assignment 6/App.js:
--------------------------------------------------------------------------------
1 | const inputEl = document.querySelector('input');
2 | const buttonEl = document.querySelector('button');
3 |
4 | const checkLeapYearHandler = () => {
5 | let isLeapYear = false;
6 | if (inputEl.value) {
7 | const input = parseInt(inputEl.value.trim());
8 | isLeapYear = input % 4 === 0 && (input % 100 !== 0 || input % 400 === 0);
9 | const leapYearEl = document.createElement('h3');
10 | if (isLeapYear) {
11 | leapYearEl.textContent = `${input} is a leap year`;
12 | } else {
13 | leapYearEl.textContent = `${input} is not a leap year`;
14 | }
15 | document.querySelector('body').appendChild(leapYearEl);
16 |
17 | // after two seconds, the input will be cleared and the message also
18 |
19 | setTimeout(() => {
20 | inputEl.value = '';
21 | document.querySelector('body').removeChild(leapYearEl);
22 | }, 2000);
23 | }
24 | };
25 |
26 | buttonEl.addEventListener('click', checkLeapYearHandler);
27 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/Practice Assignments/Javascript Assignments/Assignment 2/App.js:
--------------------------------------------------------------------------------
1 | const calculateBtnEl = document.querySelector('button');
2 | const inputEl = document.querySelector('input');
3 |
4 | const calculateSum = () => {
5 | const input = inputEl.value.toString();
6 | if (input && !isNaN(input)) {
7 | let sum = 0;
8 | let oddDigits = 'The odd digits are - ';
9 | for (let i = 0; i < input.length; i++) {
10 | if (i % 2 === 0) {
11 | // as the index starts from 0 - we have to take it as 1
12 | // for index 2, it will be 3
13 | oddDigits = oddDigits + ` ${input.charAt(i)}`;
14 | sum = sum + parseInt(input.charAt(i));
15 | }
16 | }
17 | const oddEl = document.createElement('p');
18 | oddEl.textContent = oddDigits;
19 | document.querySelector('body').appendChild(oddEl);
20 | const resultEl = document.createElement('h3');
21 | resultEl.textContent = `The result of the sum of the odd digits is ${sum}`;
22 | document.querySelector('body').appendChild(resultEl);
23 | }
24 | };
25 |
26 | calculateBtnEl.addEventListener('click', calculateSum);
27 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Adapt Solutions
2 |
3 | This is a repository, containing the solutions of Adapt. I have made this repo for only educational purpose of mine.
4 |
5 |
6 |
7 | ## Objectives
8 |
9 | 1. Learning SQL
10 | 2. Using subqueries
11 | 3. Implementing Inner Joins and Outer Joins
12 |
13 | ## Contents
14 |
15 | 1. RDBMS
16 | 2. Case Study 1
17 | 3. HTML CSS JavaScript
18 |
19 | ## Developer
20 |
21 | LinkedIn : [iamsomraj](https://www.linkedin.com/in/iamsomraj/) 😊
22 |
23 | HackerRank: [iamsomraj](https://www.hackerrank.com/iamsomraj?hr_r=1) 😊
24 |
25 | Portfolio: [Somraj Mukherjee](https://iamsomraj.github.io/) 😊
26 |
27 | Google Play Store: [Somraj Mukherjee](https://play.google.com/store/apps/developer?id=Somraj+Mukherjee) 😊
28 |
29 | ## Show Your Support
30 |
31 | Give me a star ⭐
32 |
33 | if this project helped you 👦 👧
34 |
35 | ## Contributing
36 |
37 | Pull requests are welcome. 🤝 For major changes, please open an issue first to discuss what you would like to change. 🙏
38 |
39 | Please make sure to update tests as appropriate. ✌
40 |
41 | ## License
42 |
43 | [MIT](https://choosealicense.com/licenses/mit/) 📰
44 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 iamsomraj
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/Practice Assignments/HTML Assignments/Assignment7.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 | CBSE
7 |
8 |
9 |
10 | Central Board of Secondary Education
11 |
12 |
13 |
14 |
15 |
16 | Name: ABCD
17 |
18 |
19 |
20 |
21 | Class: 10th Class
22 |
23 |
24 |
25 | Subject
26 | Marks
27 |
28 |
29 | English
30 | 87
31 |
32 |
33 | Regional Language
34 | 76
35 |
36 |
37 | Maths
38 | 93
39 |
40 |
41 | Science
42 | 82
43 |
44 |
45 | Social Science
46 | 69
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/Practice Assignments/Javascript Assignments/Assignment 4/App.js:
--------------------------------------------------------------------------------
1 | const firstNameEl = document.getElementById('first-name');
2 | const lastNameEl = document.getElementById('last-name');
3 | const ageEl = document.getElementById('age');
4 | const degreeEls = document.getElementsByName('degree');
5 | const submitBtnEl = document.querySelector('button');
6 |
7 | const registerHandler = () => {
8 | const firstName = firstNameEl.value;
9 | const lastName = lastNameEl.value;
10 | const age = parseInt(ageEl.value);
11 | let degreeValue = '';
12 | for (let i = 0; degreeEls.length; i++) {
13 | if (degreeEls[i].checked) {
14 | degreeValue = degreeEls[i].value;
15 | break;
16 | }
17 | }
18 | if (firstName && lastName && age && degreeValue) {
19 | const registerEl = document.createElement('h4');
20 | registerEl.textContent =
21 | 'firstName: ' +
22 | firstName +
23 | ' ' +
24 | 'lastName: ' +
25 | lastName +
26 | ' ' +
27 | 'age: ' +
28 | age +
29 | ' ' +
30 | 'degreeValue: ' +
31 | degreeValue;
32 | document.querySelector('body').appendChild(registerEl);
33 | }
34 | };
35 |
36 | submitBtnEl.addEventListener('click', registerHandler);
37 |
--------------------------------------------------------------------------------
/Case Study - Sprint 2/1 Toys Rental- Add Toys/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Add Toys
5 |
6 |
7 |
8 | Add Toys
9 |
10 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/Practice Assignments/Javascript Assignments/Assignment 5/index.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 | Some soft drinks
8 |
9 |
10 |
11 |
12 |
13 | Some soft drinks
14 | Some soft drinks
15 | Select the type of drinks
16 |
17 |
18 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/Practice Assignments/HTML Assignments/Assignment4.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 | Online Shopping
7 |
8 |
9 |
10 | Robotics India Private Limited
11 | OMR Road, Chennai
12 |
13 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/Practice Assignments/HTML Assignments/Assignment3.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 | Information Technology
8 |
9 |
10 |
11 | Raghav Software Limited
12 | 248 Old Airport Road Bangalore
13 |
14 |
15 |
16 | Product Code
17 | Product Name
18 | Quantity
19 | Unit Price
20 | Amount
21 |
22 |
23 | 1001
24 | HDD
25 | 450
26 | 4000
27 | 1800000
28 |
29 |
30 | 1002
31 | HDD
32 | 450
33 | 300
34 | 1800000
35 |
36 |
37 | 1003
38 | HDD
39 | 450
40 | 800
41 | 1800000
42 |
43 |
44 | 1004
45 | ABCD
46 | 450
47 | 800
48 | 8500
49 |
50 |
51 | 1005
52 | HDD
53 | 450
54 | 800
55 | 85642
56 |
57 |
58 |
59 |
60 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/Practice Assignments/Javascript Assignments/Assignment 4/index.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 | Student Registration
8 |
9 |
10 |
11 |
12 |
13 | Student Registration
14 |
15 |
16 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/7 Programming Javascript/Login Form Validation in JS/index.html:
--------------------------------------------------------------------------------
1 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/Case Study - Sprint 2/1 Toys Rental- Add Toys/indexWithValidation.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Add Toys
5 |
6 |
7 |
8 |
9 | Add Toys
10 |
11 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/2 Basics of HTML/Student Details Table in HTML.html:
--------------------------------------------------------------------------------
1 |
23 |
24 |
25 |
26 | Home
27 |
28 |
29 | Student Details
30 |
31 |
32 |
33 | Name
34 | Address
35 | Phone No
36 | Email Id
37 |
38 |
39 |
40 | Abhi
41 |
42 |
43 | Address1
44 |
45 |
46 | 11111
47 |
48 |
49 | abihi@gmil.com
50 |
51 |
52 |
53 |
54 | Satish
55 |
56 |
57 | Address2
58 |
59 |
60 | 111234
61 |
62 |
63 | Satisg@abc.com
64 |
65 |
66 |
67 |
68 |
69 |
70 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/3 Using HTML 5/Login Form in HTML.html:
--------------------------------------------------------------------------------
1 |
13 |
14 |
15 |
16 |
17 |
18 |
31 |
32 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/2 Basics of HTML/Profile Image in HTML.html:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
13 |
14 |
15 | Profile Jack Martin
16 |
17 |
18 |
19 |
20 |
21 | Logout
22 |
23 | Settings & Privacy
24 |
25 |
26 | Help Center
27 |
28 |
29 |
30 |
31 | Languages
32 |
33 |
34 |
35 |
36 | Preferences
37 |
38 |
39 |
40 |
41 | Activities
42 |
43 |
44 |
45 |
46 | Friend Requests
47 |
48 |
49 |
50 |
51 | Notifications
52 |
53 |
54 |
55 |
56 | Support Center
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/Case Study - Sprint 2/3 Toys Rental- Customer Registration Form/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Document
5 |
6 |
7 | Customer Registration Form
8 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/Case Study - Sprint 2/2 Toys Rental- Rent Toys/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Rent Toys
5 |
6 |
7 |
8 | Rent Toys
9 |
10 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/Case Study - Sprint 2/2 Toys Rental- Rent Toys/indexWithValidation.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Rent Toys
5 |
6 |
7 |
8 |
9 |
10 | Rent Toys
11 |
12 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/Case Study - Sprint 2/3 Toys Rental- Customer Registration Form/indexWithValidation.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Document
5 |
6 |
7 |
8 | Customer Registration Form
9 |
64 |
65 |
66 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/3 Using HTML 5/Registration Form in HTML.html:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 | Registration
12 |
70 |
71 |
72 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/4 CSS3/CSS Chat Window.html:
--------------------------------------------------------------------------------
1 |
19 |
20 |
21 |
22 |
23 |
24 |
25 | Welcome to Friend's Chat
26 |
27 |
28 | Hello Jack How are you today?
29 |
30 |
31 |
32 |
33 | I'm fine dear.Thanks for asking!
34 |
35 |
36 |
37 |
38 | Sweet! So, what's ur plan for the day
39 |
40 |
41 |
42 |
43 | Nothing special...Am solving my html exercises...
44 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/6 Introduction to Javascript/New User Registration in JS.html:
--------------------------------------------------------------------------------
1 |
24 |
25 |
26 |
27 |
28 |
29 |
32 | New User Registration Form
33 |
34 |
35 |
36 |
37 | First name:
38 | Last name:
39 | Email:
40 | Password:
41 | Confirm Password:
42 | Mobile number:
43 | Gender:
44 | Male
45 | Female
46 | Country:
47 | India
48 | China
49 | USA
50 |
51 | Date of Birth:
52 |
53 |
54 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/HTML 5, CSS And Javascript/2 Basics of HTML/Make New Friends in HTML.html:
--------------------------------------------------------------------------------
1 |
38 |
39 |
40 |
41 |
42 |
43 |
52 |
53 | Welcome to MakeNewFriends.com
54 |
55 |
56 |
57 |
58 | Existing User
59 |
60 |
61 |
62 | Click here to Login
63 | Or
64 |
65 |
66 |
67 | New User
68 |
69 |
70 |
71 | Click here to Create New Account
72 |
73 |
74 |
75 |
--------------------------------------------------------------------------------
/Case Study - Sprint 2/2 Toys Rental- Rent Toys/App.js:
--------------------------------------------------------------------------------
1 | const customerNameEL = document.getElementById('customer-name');
2 | const customerNameFeedbackEL = document.getElementById(
3 | 'customer-name-feedback'
4 | );
5 |
6 | const rentStartDateEl = document.getElementById('rent-start-date');
7 | const rentStartDateFeedbackEl = document.getElementById(
8 | 'rent-start-date-feedback'
9 | );
10 |
11 | const tenureEl = document.getElementById('tenure');
12 | const tenureFeedbackEl = document.getElementById('tenure-feedback');
13 |
14 | customerNameEL.addEventListener('blur', (event) => {
15 | if (event.target.value) {
16 | const customerName = event.target.value;
17 | const newCustomerName = customerName.toUpperCase().trim();
18 | if (newCustomerName.length > 5) {
19 | if (/^[A-Z][A-Z\s]*$/.test(newCustomerName)) {
20 | customerNameFeedbackEL.style.color = 'green';
21 | customerNameFeedbackEL.textContent =
22 | 'Customer Name contains only characters or spaces';
23 | } else {
24 | customerNameFeedbackEL.style.color = 'red';
25 | customerNameFeedbackEL.textContent =
26 | 'Customer Name is in invalid format';
27 | }
28 | } else {
29 | customerNameFeedbackEL.style.color = 'red';
30 | customerNameFeedbackEL.textContent =
31 | 'Customer Name is not above 5 in length';
32 | }
33 | }
34 | });
35 |
36 | rentStartDateEl.addEventListener('blur', (event) => {
37 | if (event.target.value) {
38 | const rentStartDate = new Date(event.target.value);
39 | const date = new Date();
40 | console.log('entered', rentStartDate.toISOString());
41 | console.log('date', date.toISOString());
42 | if (rentStartDate >= date) {
43 | rentStartDateFeedbackEl.style.color = 'green';
44 | rentStartDateFeedbackEl.textContent =
45 | 'Rent start date is either current or future date';
46 | } else {
47 | rentStartDateFeedbackEl.style.color = 'red';
48 | rentStartDateFeedbackEl.textContent =
49 | 'Rent start date is in invalid format';
50 | }
51 | }
52 | });
53 |
54 | tenureEl.addEventListener('blur', (event) => {
55 | if (event.target.value) {
56 | if (!isNaN(event.target.value)) {
57 | const tenure = +event.target.value;
58 | if (tenure < 30) {
59 | tenureFeedbackEl.style.color = 'green';
60 | tenureFeedbackEl.textContent = 'Tenure is less than 30 days';
61 | } else {
62 | tenureFeedbackEl.style.color = 'red';
63 | tenureFeedbackEl.textContent = 'We cannot rent over 30 days!';
64 | }
65 | } else {
66 | tenureFeedbackEl.style.color = 'red';
67 | tenureFeedbackEl.textContent = 'Tenure should be a number';
68 | }
69 | }
70 | });
71 |
72 | // could not do the on load event because input element does not support on load event
73 | // source : https://stackoverflow.com/questions/3708850/is-there-an-onload-event-for-input-elements
74 | // feel free to make a pull request if you have done this
75 | // one can add load event to the body tag
76 |
--------------------------------------------------------------------------------
/Case Study - Sprint 2/3 Toys Rental- Customer Registration Form/App.js:
--------------------------------------------------------------------------------
1 | const usernameEl = document.getElementById('username');
2 | const passwordEl = document.getElementById('password');
3 | const confirmPasswordEl = document.getElementById('confirm-password');
4 | const mobileNumberEl = document.getElementById('mobile-number');
5 |
6 | const usernameFeedbackEl = document.getElementById('username-feedback');
7 | const passwordFeedbackEl = document.getElementById('password-feedback');
8 | const confirmPasswordFeedbackEl = document.getElementById(
9 | 'confirm-password-feedback'
10 | );
11 | const mobileNumberFeedbackEl = document.getElementById(
12 | 'mobile-number-feedback'
13 | );
14 |
15 | const usernameHandler = (event) => {
16 | if (event.target.value) {
17 | if (event.target.value.length > 6) {
18 | usernameFeedbackEl.style.color = 'green';
19 | usernameFeedbackEl.textContent = 'Name has more than six characters';
20 | } else {
21 | usernameFeedbackEl.style.color = 'red';
22 | usernameFeedbackEl.textContent =
23 | 'Name does not have more than six characters';
24 | }
25 | }
26 | };
27 |
28 | const passwordHandler = (event) => {
29 | if (event.target.value) {
30 | if (/^[ A-Za-z0-9_@./#&*()+-]*$/.test(event.target.value)) {
31 | passwordFeedbackEl.style.color = 'green';
32 | passwordFeedbackEl.textContent =
33 | 'Password contains alphanumeric and special characters';
34 | } else {
35 | passwordFeedbackEl.style.color = 'red';
36 | passwordFeedbackEl.textContent =
37 | 'Password does not contain alphanumeric and special characters';
38 | }
39 | }
40 | };
41 |
42 | const confirmPasswordHandler = (event) => {
43 | if (event.target.value && passwordEl.value) {
44 | if (event.target.value === passwordEl.value) {
45 | confirmPasswordFeedbackEl.style.color = 'green';
46 | confirmPasswordFeedbackEl.textContent =
47 | 'Password and Confirm Password matches with each other';
48 | } else {
49 | confirmPasswordFeedbackEl.style.color = 'red';
50 | confirmPasswordFeedbackEl.textContent =
51 | 'Password and Confirm Password does not match with each other';
52 | }
53 | }
54 | };
55 |
56 | const mobileNumberHandler = (event) => {
57 | if (event.target.value) {
58 | if (event.target.value.length === 10) {
59 | let firstNumber = event.target.value.charAt(0);
60 | firstNumber = +firstNumber;
61 | if (firstNumber >= 6 && firstNumber <= 9) {
62 | mobileNumberFeedbackEl.style.color = 'green';
63 | mobileNumberFeedbackEl.textContent = 'Mobile Number is a valid number';
64 | } else {
65 | mobileNumberFeedbackEl.style.color = 'red';
66 | mobileNumberFeedbackEl.textContent = 'Mobile Number is invalid';
67 | }
68 | } else {
69 | mobileNumberFeedbackEl.style.color = 'red';
70 | mobileNumberFeedbackEl.textContent =
71 | 'Mobile Number does not have 10 digits';
72 | }
73 | }
74 | };
75 |
76 | usernameEl.addEventListener('blur', usernameHandler);
77 | passwordEl.addEventListener('blur', passwordHandler);
78 | confirmPasswordEl.addEventListener('blur', confirmPasswordHandler);
79 | mobileNumberEl.addEventListener('blur', mobileNumberHandler);
80 |
--------------------------------------------------------------------------------