├── AWS
├── Angular-Spring-REST-Integration-Hands-on.zip
├── Apache-Kafka-On-Prem-Hands-On (1).zip
├── Apache-Kafka-S3-HandsOn.zip
├── Creating-MSK-Cluster-Hands-on.zip
├── Deploy-Producer-Consumer-in-EC2-Hands-on.zip
├── DynamoDB-Hands-on.zip
├── Ec-2 Hands-on.zip
├── Microservice-with-DynamoDB-backend.zip
├── RDS-Hands-on (1).zip
├── SQS-Hands-On.zip
├── Swagger.zip
├── read.txt
└── s3-handson (1).zip
├── Data Structures and Algorithms
├── 2d_array.java
├── array_ds.java
├── array_manipulation.java
├── balanced_bracket.java
├── between_two_sets.java
├── components_in_graph.java
├── delete_duplicate_values.java
├── divisible_sum_pair.java
├── find_the_running_median.java
├── forming_a_magic_squre.java
├── left_rotation.java
├── min-max_sum.java
├── queue_using_two_stack.java
├── sparse_array.java
└── time_conversion.java
├── README.md
├── SQL programming
├── Buses based on Source and Destination
│ ├── query.sql
│ └── readme.md
├── Car & owner details based on car type
│ ├── README.md
│ └── query.sql
├── Car details based on type and name
│ ├── README.md
│ └── query.sql
├── Car rental system - Create Table
│ ├── README.md
│ └── query.sql
├── Car rental system - add new column
│ ├── README.md
│ └── query.sql
├── Cars not taken for rent
│ ├── README.md
│ └── query.sql
├── Concatenating Details
│ ├── README.md
│ └── singlerow3.sql
├── Credential details
│ ├── README.md
│ └── query.sql
├── Customer contact details
│ ├── README.md
│ └── query.sql
├── Customer mail details
│ ├── README.md
│ └── sample.sql
├── Customer using HDFC bank
│ ├── query.sql
│ └── question.pdf
├── Customers having gmail id
│ ├── READEME.md
│ └── query.sql
├── Delivery Partner details based on rating
│ ├── README.md
│ └── sample.sql
├── Department name based on block number
│ ├── README.md
│ └── bselect3.sql
├── Hostel-Insert Student Records set2
│ ├── README.md
│ ├── database_diagram.png
│ └── ddl4.sql
├── Hotel_info
│ ├── README.md
│ └── sample.sql
├── Hotels not taken orders in a specific month
│ ├── README.md
│ └── sample.sql
├── Hotels that took order based on month
│ ├── README.md
│ └── sample.sql
├── Hotels that took order more than five times
│ └── sample.sql
├── Hunger eats - Change the field name
│ ├── README.md
│ └── sample.sql
├── Hunger eats - change datatype
│ ├── README.md
│ └── sample.sql
├── Hunger eats - update table
│ ├── README.md
│ ├── sample.sql
│ └── table_data.png
├── Insert Records - Department
│ ├── README.md
│ └── insert.sql
├── Maruthi car owner details
│ ├── README.md
│ └── query.sql
├── Minimum & Maximum Discount Amount
│ ├── README.md
│ ├── database_diagram.png
│ └── group3.sql
├── Movie-Modify the datatype set2
│ ├── README.md
│ └── dml2.sql
├── No of time rented by each car
│ ├── README.md
│ └── query.sql
├── Number of Tickets Booked
│ ├── README.md..txt
│ └── query.sql
├── Order details
│ ├── README.md
│ └── sample.sql
├── PL_SQL
│ ├── Display_department_names_using_Cursors.sql
│ ├── Insert_Record_using_Anonymous_Block.sql
│ ├── Package_with_a_Procedure_to_update_salary.sql
│ ├── Procedure_with_Exception_Handling.sql
│ ├── area_of_a_circle.sql
│ ├── insert_a_record_trigger.sql
│ ├── insert_credit_procedure.sql
│ ├── select_city_procedure.sql
│ └── update_location.sql
├── Password Generation
│ ├── query.sql
│ └── question.pdf
├── Patient Appointment Details based on reason
│ ├── README.md
│ ├── database_diagram.png
│ └── query.sql
├── Patient Appointment details Based On Month
│ ├── README.md
│ ├── database_diagram.png
│ └── join3.sql
├── Rental details based on date
│ ├── README.md
│ └── query.sql
├── Review of delivery partner based on rating
│ ├── README.md
│ └── sample.sql
├── Student and their Department Based on City
│ ├── README.md
│ └── joins3.sql
├── Total sale daywise
│ ├── README.md
│ └── sample.sql
├── Username and password
│ ├── query.sql
│ └── question.docx
└── car rental system - Insert values
│ ├── README.md
│ ├── query.sql
│ └── table_data.png
├── code quality
├── FlightManagement-2.zip
├── TraineeManager.zip
├── patient-intake-system.zip
└── read.txt
├── html_css
├── bill calculator.txt
├── feedback details.txt
├── learning material styling.txt
├── simple calculatro.txt
└── trainer feedback rating chart.txt
├── java programming
├── Account Manipulation - Abstract Class
│ ├── Account.java
│ ├── Customer.java
│ ├── Main.java
│ ├── README.md
│ └── SavingsAccount.java
├── Add Flight using JDBC
│ ├── DB.java
│ ├── Flight.java
│ ├── FlightManagementSystem.java
│ ├── Main.java
│ ├── README.md
│ └── database.properties
├── Array Compatibility
│ ├── CompatibleArrays.java
│ └── README.md
├── Array Manipulation - Use try with multi catch
│ ├── ArrayException.java
│ └── README.md
├── Auditing
│ ├── EmployeeAudit.java
│ └── Main.java
├── Average and Grade Calculation
│ ├── README.md
│ ├── Student.java
│ └── StudentMain.java
├── Bank Account - Interface
│ ├── Account.java
│ ├── CurrentAccount.java
│ ├── MaintenanceCharge.java
│ ├── README.md
│ ├── SavingsAccount.java
│ └── UserInterface.java
├── BankAccountDetails
│ ├── Account.java
│ └── AccountDetails.java
├── Batting Average
│ ├── README.md
│ └── com
│ │ ├── ui
│ │ └── UserInterface.java
│ │ └── utility
│ │ └── Player.java
├── Bill Generator
│ ├── README.md
│ └── SnackDetails.java
├── Book Manipulation
│ ├── Book.java
│ ├── Library.java
│ ├── Main.java
│ └── README.md
├── Check Number Type
│ ├── NumberType.java
│ ├── NumberTypeUtility.java
│ └── README.md
├── Collage Account
│ ├── README.md
│ ├── TuitionFee.java
│ └── UserInterface.java
├── Contact Details of Hosteller
│ ├── Hosteller.java
│ ├── Main.java
│ ├── README.md
│ └── Student.java
├── Count of Each Words
│ ├── CountOfWords.java
│ └── README.md
├── Cumulative sun in an array
│ ├── CumulativeSum.java
│ └── README.md
├── Display Characters
│ ├── AsciValue.java
│ └── README.md
├── Divider two number - Use finally
│ ├── Division.java
│ └── README.md
├── DreamTek Company
│ ├── Associate.java
│ ├── Main.java
│ ├── READEME.md
│ └── picture.jpg
├── Employee ID Validation
│ ├── README.md
│ └── UserMain.java
├── Employee Loan Eligibility - Polymorphism
│ ├── Employee.java
│ ├── Loan.java
│ ├── Main.java
│ ├── PermanentEmployee.java
│ ├── README.md
│ └── TemporaryEmployee.java
├── Employee Loan Eligibility
│ ├── Employee.java
│ ├── Employeeutility.java
│ ├── main.java
│ └── question.pdf
├── Employee Promotion
│ ├── Employee.java
│ ├── Main.java
│ └── Management.java
├── Employee Salary Calculation
│ ├── Employee.java
│ ├── Main.java
│ └── READEME.md
├── Employees eligible for promotionCoding exercise
│ ├── Main.java
│ └── README.md
├── Factors of a Number
│ ├── FindFactor.java
│ └── README.md
├── Find Average Age
│ ├── README.md
│ └── Test.java
├── Find Season
│ ├── README.md
│ └── Season.java
├── Find and Replace
│ ├── README.md
│ └── ReplaceWord.java
├── Fruit Basket Estimation
│ ├── FruitBasket.java
│ ├── FruitBasketUtility.java
│ └── Main.java
├── Fuel Consumption Calculator
│ ├── Main.java
│ └── README.md
├── Grade Calculation
│ ├── GradeCalculator.java
│ ├── Main.java
│ └── README.md
├── Highest Marks in Each Semester
│ ├── HighestMarkPerSem.java
│ └── README.md
├── Highest Placement
│ ├── Placement.java
│ └── README.md
├── Increment Calculation
│ ├── IncrementCalcuation.java
│ └── README.md
├── InitCap
│ ├── InitCap.java
│ └── README.md
├── Inner Class
│ ├── AddressBook.java
│ ├── README.md
│ └── TestApplication.java
├── Insurance Bazaar
│ ├── README.md
│ └── com
│ │ ├── ui
│ │ └── UserInterface.java
│ │ └── utility
│ │ └── Bazaar.java
├── Least Offer
│ ├── Main.java
│ └── README.md
├── List of prime numbers
│ ├── PrimeNumbers.java
│ └── README.md
├── Lucky Number
│ ├── LuckyNum.java
│ └── README.md
├── Mall Parking System
│ ├── Main.java
│ └── README.md
├── Member Manipulation
│ ├── Library.java
│ ├── Main.java
│ ├── Member.java
│ └── README.md
├── Movie Ticket Calculation
│ ├── CinemaTicket.java
│ └── README.md
├── Number Palindrome
│ ├── Palindrome.java
│ └── README.md
├── Number of New Words
│ ├── README.md
│ └── UniqueWords.java
├── Numerology number
│ ├── Main.java
│ └── README.md
├── Numerology
│ ├── Numerology.java
│ └── README.md
├── Palindrome
│ ├── Palindrome.java
│ └── README.md
├── Participant List Manipulation
│ ├── Main.java
│ ├── Participant.java
│ ├── ParticipantUtility.java
│ └── README.md
├── Password Generation
│ ├── Main.java
│ └── README.md
├── Persist Employee
│ ├── Employee.java
│ ├── EmployeeUtility.java
│ ├── Main.java
│ └── README.md
├── PhoneBook Manipulation
│ ├── Contact.java
│ ├── Main.java
│ ├── PhoneBook.java
│ └── README.md
├── Placement Enrollment Count
│ ├── main.java
│ └── question.pdf
├── Player Selection System_JDBC
│ ├── DB.java
│ ├── Main.java
│ ├── Player.java
│ ├── PlayerSelectionSystem.java
│ └── database.properties
├── Print unique characters
│ ├── README.md
│ └── UniqueChar.java
├── Register a Candidate - User defined Exception(with throw and throws)
│ ├── Candidate.java
│ ├── InvalidSalaryException.java
│ ├── Main.java
│ └── README.md
├── Retrieve ID and Price of mobiles with in the range
│ ├── DB.java
│ ├── Main.java
│ ├── Mobile.java
│ ├── MobileManagementSystem.java
│ ├── README.md
│ ├── database.properties.txt
│ └── script.sql
├── Retrieve customer count based on loan type
│ ├── DB.java
│ ├── Loan.java
│ ├── LoanManagementSystem.java
│ ├── Main.java
│ ├── README.md
│ ├── database.properties.txt
│ └── script.sql
├── Retriving Data from file
│ ├── FileDemo.java
│ ├── README.md
│ └── log.txt
├── Search a Course
│ ├── Course.java
│ └── README.md
├── Search for Trains - JDBC
│ ├── DB.java
│ ├── Database.properties
│ ├── Main.java
│ ├── Train.java
│ ├── Trainmamagementsystem.java
│ └── question.pdf
├── Shape - Area Volume Calculator
│ ├── Cube.java
│ ├── Main.java
│ ├── README.md
│ ├── Rectangle.java
│ ├── Shape.java
│ ├── Spatial.java
│ ├── Sphere.java
│ └── Triangle.java
├── String Concatenation
│ ├── javacode.java
│ └── question.pdf
├── Students Details - Constructor
│ ├── README.md
│ ├── Student.java
│ └── StudentMain.java
├── Substitution Cipher Technique
│ ├── Main.java
│ └── README.md
├── Ticket Price Calculation - Static
│ ├── Main.java
│ ├── README.md
│ └── Ticket.java
├── Travel Agency
│ ├── CommissionInfo.java
│ ├── Ticket.java
│ ├── UserInterface.java
│ └── question.pdf
├── Validate Name
│ ├── README.md
│ ├── Validate.java
│ └── ValidateUtility.java
├── Validate PAN
│ ├── PanCard.java
│ └── README.md
├── Vehicle-Loan-Insurance - Use Interface
│ ├── Insurance.java
│ ├── Loan.java
│ ├── Main.java
│ ├── README.md
│ └── Vehicle.java
├── Visitors Details
│ ├── FileManager.java
│ ├── Main.java
│ └── README.md
├── ZeeZee Bank
│ ├── Account.java
│ ├── Main.java
│ └── README.md
└── uwu.txt
├── java_script
├── emp experience.js
├── greeting.txt
├── placing order for cake.txt
├── reduction of loan.txt
├── unique character.txt
├── validate email.txt
└── word play.txt
├── jquery
├── alternative rows.txt
├── customer data.txt
├── error message.txt
├── get json data.txt
├── ice cream flovour.txt
├── load jquery.txt
├── login form.txt
├── select the boxes.txt
├── three divition.txt
├── vertical menu.txt
└── wellcome msg.txt
├── microservice
├── MS_HANDSON-01.zip
├── MS_HANDSON-02.zip
├── MS_HANDSON-03.zip
└── read.txt
├── react
├── ReactJS-HOL_001.zip
├── ReactJS-HOL_002.zip
├── ReactJS-HOL_003.zip
├── ReactJS-HOL_004.zip
├── ReactJS-HOL_005.zip
├── ReactJS-HOL_006.zip
├── ReactJS-HOL_007.zip
├── ReactJS-HOL_008.zip
├── ReactJS-HOL_009.zip
├── ReactJS-HOL_010.zip
├── ReactJS-HOL_011.zip
├── ReactJS-HOL_012.zip
├── ReactJS-HOL_013.zip
└── read.txt
├── spring data
├── 04 - 01 Spring-data-jpa-Hands on.zip
├── 04 - 02 Spring-data-jpa-Hands on.zip
├── 04 - 03 Spring-data-jpa-Hands on.zip
└── read.txt
├── spring rest
├── 03-01-spring-rest-handson.zip
├── 03-02-spring-rest-handson.zip
├── 03-03-spring-rest-handson.zip
├── 03-04-spring-rest-handson.zip
├── JWT-handson (1).zip
└── read.txt
└── unix and shell scripting
├── copy_complete_directrory.sh
├── copy_directrory.sh
├── copy_file5.sh
├── copy_file6.sh
├── find_string7.sh
├── find_string8.sh
├── grep_command1.sh
├── grep_command2.sh
├── list_of_files2.sh
├── list_of_files3.sh
├── move_file1.sh
├── move_file2.sh
├── pattern_printing.sh
├── script_to_count.sh
└── shellScripting.sh
/AWS/Angular-Spring-REST-Integration-Hands-on.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devraj2000/learning_path_JF/2fb982d598615ad20a50f19802f136f9a941c469/AWS/Angular-Spring-REST-Integration-Hands-on.zip
--------------------------------------------------------------------------------
/AWS/Apache-Kafka-On-Prem-Hands-On (1).zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devraj2000/learning_path_JF/2fb982d598615ad20a50f19802f136f9a941c469/AWS/Apache-Kafka-On-Prem-Hands-On (1).zip
--------------------------------------------------------------------------------
/AWS/Apache-Kafka-S3-HandsOn.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devraj2000/learning_path_JF/2fb982d598615ad20a50f19802f136f9a941c469/AWS/Apache-Kafka-S3-HandsOn.zip
--------------------------------------------------------------------------------
/AWS/Creating-MSK-Cluster-Hands-on.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devraj2000/learning_path_JF/2fb982d598615ad20a50f19802f136f9a941c469/AWS/Creating-MSK-Cluster-Hands-on.zip
--------------------------------------------------------------------------------
/AWS/Deploy-Producer-Consumer-in-EC2-Hands-on.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devraj2000/learning_path_JF/2fb982d598615ad20a50f19802f136f9a941c469/AWS/Deploy-Producer-Consumer-in-EC2-Hands-on.zip
--------------------------------------------------------------------------------
/AWS/DynamoDB-Hands-on.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devraj2000/learning_path_JF/2fb982d598615ad20a50f19802f136f9a941c469/AWS/DynamoDB-Hands-on.zip
--------------------------------------------------------------------------------
/AWS/Ec-2 Hands-on.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devraj2000/learning_path_JF/2fb982d598615ad20a50f19802f136f9a941c469/AWS/Ec-2 Hands-on.zip
--------------------------------------------------------------------------------
/AWS/Microservice-with-DynamoDB-backend.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devraj2000/learning_path_JF/2fb982d598615ad20a50f19802f136f9a941c469/AWS/Microservice-with-DynamoDB-backend.zip
--------------------------------------------------------------------------------
/AWS/RDS-Hands-on (1).zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devraj2000/learning_path_JF/2fb982d598615ad20a50f19802f136f9a941c469/AWS/RDS-Hands-on (1).zip
--------------------------------------------------------------------------------
/AWS/SQS-Hands-On.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devraj2000/learning_path_JF/2fb982d598615ad20a50f19802f136f9a941c469/AWS/SQS-Hands-On.zip
--------------------------------------------------------------------------------
/AWS/Swagger.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devraj2000/learning_path_JF/2fb982d598615ad20a50f19802f136f9a941c469/AWS/Swagger.zip
--------------------------------------------------------------------------------
/AWS/read.txt:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/AWS/s3-handson (1).zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devraj2000/learning_path_JF/2fb982d598615ad20a50f19802f136f9a941c469/AWS/s3-handson (1).zip
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # learning_path_JF
2 |
3 |
4 | Its a learning path of a java full stack developer.
5 |
6 |
7 | you will find lots of code in this . I hope most of the code is helpful .
8 |
9 |
10 | #HAPPY_CODING
11 |
--------------------------------------------------------------------------------
/SQL programming/Buses based on Source and Destination/query.sql:
--------------------------------------------------------------------------------
1 | select distinct s1.bus_no,
2 | b.bus_name
3 | from schedule s1
4 | inner join schedule s2 on s1.source = s2.destination
5 | and s1.destination = s2.source
6 | inner join buses b on s1.bus_no = b.bus_no
7 | order by s1.bus_no;
8 |
9 | select distinct s1.bus_no,
10 | b.bus_name
11 | from schedule s1,
12 | schedule s2,
13 | buses b
14 | where s1.source = s2.destination
15 | and s1.destination = s2.source
16 | and s1.bus_no = b.bus_no
17 | order by s1.bus_no;
--------------------------------------------------------------------------------
/SQL programming/Buses based on Source and Destination/readme.md:
--------------------------------------------------------------------------------
1 | # Buses based on Source and Destination
2 |
3 | Write a query to display the list of bus numbers and names where the source and destination of a bus is the destination and source of another bus. Display the unique records in ascending order by bus_no.
4 |
5 | > **Note:**
6 | > Evaluate only the respective query to get the desired result.
7 |
8 | 
--------------------------------------------------------------------------------
/SQL programming/Car & owner details based on car type/README.md:
--------------------------------------------------------------------------------
1 | # Car & owner details based on car type
2 |
3 | Write a query to display car id, car name and owner id of all the cars whose car type is 'Hatchback' or 'SUV'. Sort the result based on car id.
4 |
5 | > (Hint: Use CARS tables to retrieve records. Data is case-sensitive. E.g: Car_type='Hatchback'. Use IN operator)
6 |
7 | *NOTE: Maintain the same sequence of column order, as specified in the question description*
8 |
9 | 
10 |
--------------------------------------------------------------------------------
/SQL programming/Car & owner details based on car type/query.sql:
--------------------------------------------------------------------------------
1 | select car_id, car_name, owner_id
2 | from cars
3 | where car_type in ("Hatchback", "SUV")
4 | order by car_id;
--------------------------------------------------------------------------------
/SQL programming/Car details based on type and name/README.md:
--------------------------------------------------------------------------------
1 | # Car details based on type and name
2 |
3 | Write a query to display car id, car name and car type of Maruthi company 'Sedan' type cars. Sort the result based on car id.
4 |
5 | > (HINT : Use Cars table to retrieve records.car name='Maruthi Swift'.car type='Sedan'.Data is case sensitive.)
6 |
7 | *NOTE: Maintain the same sequence of column order, as specified in the question description*
8 |
9 | 
--------------------------------------------------------------------------------
/SQL programming/Car details based on type and name/query.sql:
--------------------------------------------------------------------------------
1 | select car_id, car_name, car_type
2 | from cars
3 | where car_name like "Maruthi%"
4 | and car_type = "Sedan"
5 | order by car_id;
--------------------------------------------------------------------------------
/SQL programming/Car rental system - Create Table/README.md:
--------------------------------------------------------------------------------
1 | # Car rental system - Create Table
2 |
3 | Refer to the given schema.
4 |
5 | Write a query to create the Owners table with the specified columns and constraints.
6 |
7 | *Note: Letters in bold represents the table name*
8 |
9 | *Note: Maintain the same sequence of column order, as specified in the question description*
10 |
11 | 
--------------------------------------------------------------------------------
/SQL programming/Car rental system - Create Table/query.sql:
--------------------------------------------------------------------------------
1 | create table owners
2 | (
3 | owner_id VARCHAR(10) primary key,
4 | owner_name varchar(20),
5 | address varchar(20),
6 | phone_no bigint,
7 | email_id varchar(20)
8 | );
--------------------------------------------------------------------------------
/SQL programming/Car rental system - add new column/README.md:
--------------------------------------------------------------------------------
1 | # Car rental system - add new column
2 |
3 | Refer to the given schema. Assume, CARS table has been already created. Write an appropriate query for the given requirement.
4 | Requirement 1: Add a new column Car_Regno VARCHAR(10) to the Cars table.
5 |
6 | *Note: Letters in the bold represents the attribute name.*
7 |
8 | 
--------------------------------------------------------------------------------
/SQL programming/Car rental system - add new column/query.sql:
--------------------------------------------------------------------------------
1 | alter table cars
2 | add column car_regno varchar(10);
--------------------------------------------------------------------------------
/SQL programming/Cars not taken for rent/README.md:
--------------------------------------------------------------------------------
1 | # Cars not taken for rent
2 |
3 | Write a query to display car id, car name, car type of cars which was not taken for rent. Sort the result based on car id.
4 |
5 | > HINT: Use Cars and Rentals tables to retrieve records.
6 |
7 | *NOTE: Maintain the same sequence of column order, as specified in the question description*
8 |
9 | 
--------------------------------------------------------------------------------
/SQL programming/Cars not taken for rent/query.sql:
--------------------------------------------------------------------------------
1 | select car_id, car_name, car_type
2 | from cars
3 | where car_id not in (select distinct car_id from rentals);
--------------------------------------------------------------------------------
/SQL programming/Concatenating Details/README.md:
--------------------------------------------------------------------------------
1 | # Concatenating Details
2 |
3 | Write a query to display address details by concatenating address and city of students . Give an alias as Address and sort the result based on the concatenated column in descending order
4 |
5 | > Example:
6 |
7 | Address - Toms Town
8 |
9 | City - Bangalore
10 |
11 | > Output:
12 |
13 | Toms Town, Bangalore
14 |
15 | 
--------------------------------------------------------------------------------
/SQL programming/Concatenating Details/singlerow3.sql:
--------------------------------------------------------------------------------
1 | select concat(address, ', ', city) as address
2 | from student
3 | order by concat(address, city) desc;
--------------------------------------------------------------------------------
/SQL programming/Credential details/README.md:
--------------------------------------------------------------------------------
1 | # Credential details
2 |
3 | Refer to the schema. Write a query to display the username and password of all owners. Give an alias name as USERNAME and PASSWORD. Sort the result based on the username in ascending order.
4 |
5 | Username and password is generated as mentioned below
6 |
7 | USERNAME: concatenate the owner's name with owner id.
8 |
9 | PASSWORD: concatenate first 3 character of owner name with owner id.
10 |
11 | > For Example:
12 |
13 | Owner_id - 01
14 |
15 | Owner_name - jeeva
16 |
17 | > Sample Output:
18 |
19 | USERNAME PASSWORD
20 | jeeva01 jee01
21 |
22 |
23 | > HINT: Use Owners table to retrieve records.
24 |
25 | *NOTE: Maintain the same sequence of column order, as specified in the question description*
26 |
27 | 
--------------------------------------------------------------------------------
/SQL programming/Credential details/query.sql:
--------------------------------------------------------------------------------
1 | select concat(owner_name, owner_id) as username, concat(left(owner_name, 3), owner_id) as password
2 | from owners
3 | order by concat(owner_name, owner_id);
--------------------------------------------------------------------------------
/SQL programming/Customer contact details/README.md:
--------------------------------------------------------------------------------
1 | # Customer contact details
2 |
3 | Write a query to display the customer id, customer name and contact details of customers. If address is missing, display the email id. If both address and email is missing then display ‘NA’. Give an alias name as CONTACT_DETAILS.Sort the results based on customer id in ascending order.
4 |
5 | > (HINT : Use Customers table to retrieve records.)
6 |
7 | 
--------------------------------------------------------------------------------
/SQL programming/Customer contact details/query.sql:
--------------------------------------------------------------------------------
1 | select customer_id, customer_name, ifnull(address, ifnull(email_id, "NA")) as contact_details
2 | from customes
3 | order by customer_id;
--------------------------------------------------------------------------------
/SQL programming/Customer mail details/README.md:
--------------------------------------------------------------------------------
1 | # Customer mail details
2 |
3 | Refer to the schema. Write a query to display the customer mail details. Display the details in the below format.
4 |
5 | Give an alias name as CUSTOMER_MAIL_INFO. Sort the result in ascending order.
6 |
7 | > For Example:
8 |
9 | Customer_id - 'CUST001'
10 |
11 | Email_id - 'mano@hotmail.com'
12 |
13 | > Sample Output:
14 |
15 | CUSTOMER_MAIL_INFO
16 | CUST001 mail id is mano@hotmail.com
17 |
18 |
19 | > HINT: Use Customers table to retrieve records.
20 |
21 | *NOTE: Maintain the same sequence of column order, as specified in the question description*
22 |
23 | 
--------------------------------------------------------------------------------
/SQL programming/Customer mail details/sample.sql:
--------------------------------------------------------------------------------
1 | select concat(customer_id, ' mail id is ', email_id) as customer_mail_info
2 | from customers;
--------------------------------------------------------------------------------
/SQL programming/Customer using HDFC bank/query.sql:
--------------------------------------------------------------------------------
1 | select distinct u.name, u.address from users u
2 | join bookingdetails b on b.user_id = u.user_id
3 | where u.user_id not in
4 | ( select user_id from bookingdetails where name='HDFC')
5 | order by u.name;
6 |
--------------------------------------------------------------------------------
/SQL programming/Customer using HDFC bank/question.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devraj2000/learning_path_JF/2fb982d598615ad20a50f19802f136f9a941c469/SQL programming/Customer using HDFC bank/question.pdf
--------------------------------------------------------------------------------
/SQL programming/Customers having gmail id/READEME.md:
--------------------------------------------------------------------------------
1 | # Customers having gmail id
2 |
3 | Write a query to display customer id, customer name, address, and phone number of customers having Gmail id. Sort the result based on customer id.
4 |
5 | > (HINT: Use Customers table to retrieve records. Email id='xxxxx@gmail.com'.Data is case sensitive.)
6 |
7 | *NOTE: Maintain the same sequence of column order, as specified in the question description*
8 |
9 | 
--------------------------------------------------------------------------------
/SQL programming/Customers having gmail id/query.sql:
--------------------------------------------------------------------------------
1 | select customer_id, customer_name, address, phone_no
2 | from customers
3 | where email_id like "%gmail%"
4 | order by customer_id;
--------------------------------------------------------------------------------
/SQL programming/Delivery Partner details based on rating/README.md:
--------------------------------------------------------------------------------
1 | # Delivery Partner details based on rating
2 |
3 | Write a query to display partner id, partner name, phone number of delivery partners whose rating is between 3 to 5, sort the result based on partner id.
4 |
5 | > (Hint: Use Delivery_partners table to retrieve records.)
6 |
7 | *NOTE: Maintain the same sequence of column order, as specified in the question description*
8 |
9 | 
--------------------------------------------------------------------------------
/SQL programming/Delivery Partner details based on rating/sample.sql:
--------------------------------------------------------------------------------
1 | SELECT partner_id, partner_name, phone_no
2 | from delivery_partners
3 | where rating between 3 and 5
4 | order by partner_id;
--------------------------------------------------------------------------------
/SQL programming/Department name based on block number/README.md:
--------------------------------------------------------------------------------
1 | # Department name based on block number
2 |
3 | Write a query to display the names of the departments in block number 3. Sort the records in ascending order.
4 |
5 | 
--------------------------------------------------------------------------------
/SQL programming/Department name based on block number/bselect3.sql:
--------------------------------------------------------------------------------
1 | select department_name
2 | from department
3 | where department_block_number = 3
4 | order by department_name;
--------------------------------------------------------------------------------
/SQL programming/Hostel-Insert Student Records set2/README.md:
--------------------------------------------------------------------------------
1 | # Movie-Modify the datatype set2
2 |
3 | Refer to the given schema. Assume that the Customer_master table has been already created.
4 |
5 | Write a query to change the data type of the field phone_no in Customer_Master table to int(10).
6 |
7 | 
--------------------------------------------------------------------------------
/SQL programming/Hostel-Insert Student Records set2/database_diagram.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devraj2000/learning_path_JF/2fb982d598615ad20a50f19802f136f9a941c469/SQL programming/Hostel-Insert Student Records set2/database_diagram.png
--------------------------------------------------------------------------------
/SQL programming/Hostel-Insert Student Records set2/ddl4.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE CUSTOMER_MASTER
2 | MODIFY COLUMN PHONE_NO(10);
--------------------------------------------------------------------------------
/SQL programming/Hotel_info/README.md:
--------------------------------------------------------------------------------
1 | # Hotel_info
2 |
3 | Refer to the schema. Write a query to display the hotel name along with the type. Display the details in the below format.
4 |
5 | Give an alias name as `hotel_info`. Sort the result in descending order.
6 |
7 | > For Example:
8 |
9 | Hotel_name - 'A2B'
10 |
11 | Hotel_type - 'VEG'
12 |
13 | Sample Output:
14 |
15 | | hotel_info |
16 | | ---------- |
17 | | A2B is a VEG hotel |
18 |
19 |
20 | > HINT: Use Hotel_details table to retrieve records.
21 |
22 | *NOTE: Maintain the same sequence of column order, as specified in the question description*
23 |
24 | 
--------------------------------------------------------------------------------
/SQL programming/Hotel_info/sample.sql:
--------------------------------------------------------------------------------
1 | select concat(hotel_name, ' is a ', hotel_type, ' hotel') as hotel_info
2 | from hotel_details
3 | order by hotel_name desc;
--------------------------------------------------------------------------------
/SQL programming/Hotels not taken orders in a specific month/README.md:
--------------------------------------------------------------------------------
1 | # Hotels not taken orders in a specific month
2 |
3 | Write a query to display hotel id, hotel name and hotel type of hotels which has not taken any orders in the month of 'MAY 19'. Sort the result based on hotel id in ascending order.
4 |
5 | > HINT: Use Hotel_details and Orders tables to retrieve records. Eg: order_date= 2019-05-12
6 |
7 | *NOTE: Maintain the same sequence of column order, as specified in the question description*
8 |
9 | 
--------------------------------------------------------------------------------
/SQL programming/Hotels not taken orders in a specific month/sample.sql:
--------------------------------------------------------------------------------
1 | select hotel_id, hotel_name, hotel_type
2 | from hotel_details
3 | where hotel_id not in (select hotel_id
4 | from orders
5 | where month(order_date) = 5 and year(order_date) = 2019);
--------------------------------------------------------------------------------
/SQL programming/Hotels that took order based on month/README.md:
--------------------------------------------------------------------------------
1 | # Hotels that took order based on month
2 |
3 | Write a query to display distinct hotel id, hotel name, and rating of hotels that have taken order in the month of July. Sort the result based on hotel id in ascending order.
4 |
5 | > (HINT: Use Hotel_details and Orders tables to retrieve records.Order date='2019-07-14')
6 |
7 | *NOTE: Maintain the same sequence of column order, as specified in the question description*
8 |
9 | 
--------------------------------------------------------------------------------
/SQL programming/Hotels that took order based on month/sample.sql:
--------------------------------------------------------------------------------
1 | select distinct hotel_details.hotel_id, hotel_details.hotel_name, hotel_details.rating
2 | from hotel_details, orders
3 | where hotel_details.hotel_id = orders.hotel_id
4 | and month(orders.order_date) = 7
5 | order by hotel_details.hotel_id;
--------------------------------------------------------------------------------
/SQL programming/Hotels that took order more than five times/sample.sql:
--------------------------------------------------------------------------------
1 | select orders.hotel_id, hotel_details.hotel_name, count(orders.order_id) as no_of_orders
2 | from orders, hotel_details
3 | where orders.hotel_id = hotel_details.hotel_id
4 | group by hotel_id
5 | having count(orders.order_id) > 5;
--------------------------------------------------------------------------------
/SQL programming/Hunger eats - Change the field name/README.md:
--------------------------------------------------------------------------------
1 | # Hunger eats - Change the field name
2 |
3 | Write appropriate query/queries for the given requirement. Assume, Hotel_Details table has been already created.
4 |
5 | Requirement 1: Change the name of the existing field Rating to Hotel_Rating in the Hotel_Details table.
6 |
7 | *Note: Letters in the bold represents the attributes*
8 |
9 | 
--------------------------------------------------------------------------------
/SQL programming/Hunger eats - Change the field name/sample.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE hotel_details
2 | CHANGE rating hotel_rating INT;
--------------------------------------------------------------------------------
/SQL programming/Hunger eats - change datatype/README.md:
--------------------------------------------------------------------------------
1 | # Hunger eats - change datatype
2 |
3 | Refer to the given schema. Assume that the 'Customers' table has been already created.
4 |
5 | Write a query to change the data type of the field customer_id in Customers table to int.
6 |
7 | *Note: Letters in bold represents the attribute name*
8 |
9 | 
10 |
--------------------------------------------------------------------------------
/SQL programming/Hunger eats - change datatype/sample.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE customers
2 | MODIFY COLUMN customer_id int;
--------------------------------------------------------------------------------
/SQL programming/Hunger eats - update table/README.md:
--------------------------------------------------------------------------------
1 | # Hunger eats - update table
2 |
3 | Refer to the given schema diagram and sample records inserted into the Customers table.
4 |
5 | ![table data][table_data.png]
6 |
7 | Update records based on the given requirement.
8 |
9 | > Requirement 1: update the phone no of the Customers whose id is 'CUST1004' to the new phone no '9876543210'
10 |
11 | *NOTE: Maintain the same sequence of column order, as specified in the question description*
12 |
13 | 
--------------------------------------------------------------------------------
/SQL programming/Hunger eats - update table/sample.sql:
--------------------------------------------------------------------------------
1 | UPDATE customers
2 | SET phone_no = 9876543210
3 | WHERE customer_id = "CUST1004";
--------------------------------------------------------------------------------
/SQL programming/Hunger eats - update table/table_data.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devraj2000/learning_path_JF/2fb982d598615ad20a50f19802f136f9a941c469/SQL programming/Hunger eats - update table/table_data.png
--------------------------------------------------------------------------------
/SQL programming/Insert Records - Department/README.md:
--------------------------------------------------------------------------------
1 | # Insert Records - Department
2 |
3 | Insert the following records into the department table
4 |
5 | | Department_id | Department_name | department_block_number |
6 | | 1 | CSE | 3 |
7 | | 2 | IT | 3 |
8 | | 3 | SE | 3 |
9 |
10 | 
--------------------------------------------------------------------------------
/SQL programming/Insert Records - Department/insert.sql:
--------------------------------------------------------------------------------
1 | insert into department (Department_id, Department_name, department_block_number)
2 | values (1, "CSE", 3),
3 | (2, "IT", 3),
4 | (3, "SE", 3);
--------------------------------------------------------------------------------
/SQL programming/Maruthi car owner details/README.md:
--------------------------------------------------------------------------------
1 | # Maruthi car owner details
2 |
3 | Write a query to display distinct owner id, owner name, address, and phone no of owners who owns 'Maruthi' company car. Sort the result based on owner id.
4 |
5 | *Note: If car_name contains a string 'Maruthi' it is a Maruthi company car.*
6 |
7 | **Example: 'Maruthi swift','Maruthi 800'**
8 |
9 | > HINT: Use Owners and Cars tables to retrieve records.
10 |
11 | *NOTE: Maintain the same sequence of column order, as specified in the question description*
12 |
13 | 
--------------------------------------------------------------------------------
/SQL programming/Maruthi car owner details/query.sql:
--------------------------------------------------------------------------------
1 | select distinct owner_id, owner_name, address, phone_no
2 | from owners
3 | where owner_id in (select distinct owner_id from cars where car_name like "Maruthi%");
--------------------------------------------------------------------------------
/SQL programming/Minimum & Maximum Discount Amount/README.md:
--------------------------------------------------------------------------------
1 | # Minimum & Maximum Discount Amount
2 |
3 | Write a query to display the minimum discount amount and the maximum discount amount offered as per the coupon. Give an alias name as MIN_DISCOUNT to the minimum discount amount and MAX_DISCOUNT to the maximum discount amount.
4 |
5 | > NOTE:
6 |
7 | Maintain the same sequence of column order, as specified in the question description
8 |
9 | 
--------------------------------------------------------------------------------
/SQL programming/Minimum & Maximum Discount Amount/database_diagram.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devraj2000/learning_path_JF/2fb982d598615ad20a50f19802f136f9a941c469/SQL programming/Minimum & Maximum Discount Amount/database_diagram.png
--------------------------------------------------------------------------------
/SQL programming/Minimum & Maximum Discount Amount/group3.sql:
--------------------------------------------------------------------------------
1 | SELECT A.MIN_DISCOUNT, B.MAX_DISCOUNT
2 | FROM (
3 | SELECT MIN(DISCOUNT_AMOUNT) AS `MIN_DISCOUNT`
4 | FROM DISCOUNT_MASTER
5 | ) A,
6 | (
7 | SELECT MAX(DISCOUNT_AMOUNT) AS `MAX_DISCOUNT`
8 | FROM DISCOUNT_MASTER
9 | ) B;
--------------------------------------------------------------------------------
/SQL programming/Movie-Modify the datatype set2/README.md:
--------------------------------------------------------------------------------
1 | # Hostel-Insert Student Records set2
2 |
3 | Refer to the given schema diagram. Insert the below records into Student_details Table.
4 |
5 | | STUDENT_ID | STUDENT_NAME | DEPARTMENT | DOB | ADDRESS | PHONE_NO | EMAIL_ID |
6 | | ---------- | ------------ | ---------- | --- | ------- | -------- | -------- |
7 | | S1001 | Varsha | ECE | 1999-06-12 | CHENNAI | 9845712345 | varsha123@gmail.com |
8 | | S1002 | William | ECE | 1999-02-04 | CALCUTTA | 6845712345 | william123@gmail.com |
9 | | S1003 | Basha | EEE | 1999-06-14 | DELHI | 9945712345 | basha222@gmail.com |
10 | | S1004 | Catherine | CSE | 1998-08-16 | DELHI | 6785712345 | cathu123@gmail.com |
11 | | S1005 | Kate | ECE | 1999-06-30 | BANGALORE | 7685712345 | katedd@gmail.com |
12 | | S1006 | Michel | ECE | 1998-06-04 | COIMBATORE | 6645712345 | michel000@gmail.com |
13 |
14 | > NOTE:
15 |
16 | Maintain the same sequence of column order, as specified in the question description
--------------------------------------------------------------------------------
/SQL programming/Movie-Modify the datatype set2/dml2.sql:
--------------------------------------------------------------------------------
1 | INSERT INTO STUDENT_DETAILS
2 | VALUES
3 | ("S1001", "Varsha", "ECE", "1999-06-12", "CHENNAI", "9845712345", "varsha123@gmail.com"),
4 | ("S1002", "William", "ECE", "1999-02-04", "CALCUTTA", "6845712345", "william123@gmail.com"),
5 | ("S1003", "Basha", "EEE", "1999-06-14", "DELHI", "9945712345", "basha222@gmail.com"),
6 | ("S1004", "Catherine", "CSE", "1998-08-16", "DELHI", "6785712345", "cathu123@gmail.com"),
7 | ("S1005", "Kate", "ECE", "1999-06-30", "BANGALORE", "7685712345", "katedd@gmail.com"),
8 | ("S1006", "Michel", "ECE", "1998-06-04", "COIMBATORE", "6645712345", "michel000@gmail.com");
--------------------------------------------------------------------------------
/SQL programming/No of time rented by each car/README.md:
--------------------------------------------------------------------------------
1 | # No of time rented by each car
2 |
3 | Write a query to display car id and number of times car taken for rental. Give an alias name to the number of times car taken for rental as 'NO_OF_TRIPS'. Sort the records based on car id in ascending order.
4 |
5 | > (HINT: Use Rentals table to retrieve records.)
6 |
7 | 
--------------------------------------------------------------------------------
/SQL programming/No of time rented by each car/query.sql:
--------------------------------------------------------------------------------
1 | select car_id, count(car_id)
2 | from rentals
3 | group by car_id
4 | order by car_id;
--------------------------------------------------------------------------------
/SQL programming/Number of Tickets Booked/README.md..txt:
--------------------------------------------------------------------------------
1 | # Number of Tickets Booked
2 |
3 | Write a query to display the user id and number of time tickets was booked by each user. Give an alias name as no_of_times. Sort the result based on the user_id.
4 |
5 | > **Note:**
6 | > Evaluate only the respective query to get the desired result.
7 |
8 | 
--------------------------------------------------------------------------------
/SQL programming/Number of Tickets Booked/query.sql:
--------------------------------------------------------------------------------
1 | select user_id, count(bd_id) as `no_of_times`
2 | from bookingdetails
3 | group by user_id asc;
--------------------------------------------------------------------------------
/SQL programming/Order details/README.md:
--------------------------------------------------------------------------------
1 | # Order details
2 |
3 | Write a query to display order id, customer name, hotel name, and order amount of all orders. Sort the result based on order id in ascending order.
4 |
5 | > HINT: Use Customers, Hotel_details and Orders tables to retrieve records.
6 |
7 | *NOTE: Maintain the same sequence of column order, as specified in the question description*
8 |
9 | 
--------------------------------------------------------------------------------
/SQL programming/Order details/sample.sql:
--------------------------------------------------------------------------------
1 | select orders.order_id, customers.customer_name, hotel_details.hotel_name, orders.order_amount
2 | from orders, customers, hotel_details
3 | where orders.customer_id = customers.customer_id
4 | and orders.hotel_id = hotel_details.hotel_id
5 | order by orders.order_id;
--------------------------------------------------------------------------------
/SQL programming/PL_SQL/Display_department_names_using_Cursors.sql:
--------------------------------------------------------------------------------
1 | set serveroutput on
2 | DECLARE
3 | BEGIN
4 | dbms_output.put_line('Department Names are:');
5 | for REC IN(select DEPARTMENT_ID, DEPARTMENT_NAME , LOCATION_ID FROM DEPARTMENT order by DEPARTMENT_NAME ASC)
6 | LOOP
7 | dbms_output.put_line(REC.DEPARTMENT_NAME);
8 | end LOOP;
9 | end;
10 | /
11 |
--------------------------------------------------------------------------------
/SQL programming/PL_SQL/Insert_Record_using_Anonymous_Block.sql:
--------------------------------------------------------------------------------
1 | DECLARE
2 | l_department_id department.department_id%TYPE;
3 | BEGIN
4 | SELECT MAX (department_id) + 10 INTO l_department_id FROM department;
5 |
6 | INSERT INTO department (department_id, department_name, location_id)
7 | VALUES (l_department_id, 'TESTING', 'CHN-102');
8 | DELETE FROM department WHERE department_id='1040';
9 | END;
10 | /
11 |
12 |
13 |
--------------------------------------------------------------------------------
/SQL programming/PL_SQL/Package_with_a_Procedure_to_update_salary.sql:
--------------------------------------------------------------------------------
1 | create package EMP_DESIGNATION
2 | as
3 | PROCEDURE EMP_DETAILS
4 | (
5 | design employee.designation%type,
6 | incentive number
7 | );
8 | end EMP_DESIGNATION;
9 | /
10 | CREATE package body EMP_DESIGNATION
11 | as
12 | PROCEDURE EMP_DETAILS
13 | (
14 | design employee.designation%type,
15 | incentive number
16 | )
17 | as
18 | begin
19 | update employee set employee.salary=employee.salary+incentive
20 | where employee.designation=design;
21 | dbms_output.put_line (sql%rowcount || 'employee(s) are updated.');
22 | end EMP_DETAILS;
23 | end EMP_DESIGNATION;
24 | /
25 |
--------------------------------------------------------------------------------
/SQL programming/PL_SQL/Procedure_with_Exception_Handling.sql:
--------------------------------------------------------------------------------
1 | CREATE PROCEDURE CHECK_AGE_ELIGIBILITY
2 | (
3 | v_id IN EMPLOYEE.EMPID%TYPE,
4 | v_name IN EMPLOYEE.EMPNAME%TYPE,
5 | v_age IN EMPLOYEE.AGE%TYPE
6 | )
7 | as
8 | in_valid_age exception;
9 | BEGIN
10 | if(v_age>=18) then
11 | insert INTO EMPLOYEE VALUES(v_id,v_name,v_age);
12 | dbms_output.put_line('Age valid - Record inserted');
13 | else
14 | raise in_valid_age;
15 | end if;
16 | EXCEPTION
17 | when in_valid_age
18 | then
19 | dbms_output.put_line('Age invalid - Record not inserted');
20 | end;
21 | /
22 |
23 |
--------------------------------------------------------------------------------
/SQL programming/PL_SQL/area_of_a_circle.sql:
--------------------------------------------------------------------------------
1 | DECLARE
2 | pi constant number(3,2):=3.14;
3 | Radius number(5);
4 | Area number(7,2);
5 | BEGIN
6 | Radius:=3;
7 | WHILE(Radius<=7)
8 | LOOP
9 | Area:= pi*power(Radius,2);
10 | insert into circle VALUES(Radius,Area);
11 | Radius:=Radius+1;
12 | end LOOP;
13 | end;
14 | /
15 |
--------------------------------------------------------------------------------
/SQL programming/PL_SQL/insert_a_record_trigger.sql:
--------------------------------------------------------------------------------
1 | create trigger
2 | display_message
3 | after insert or update on employee
4 | begin
5 | dbms_output.put_line('NEW EMPLOYEE DETAILS INSERTED');
6 | END;
7 | /
8 |
--------------------------------------------------------------------------------
/SQL programming/PL_SQL/insert_credit_procedure.sql:
--------------------------------------------------------------------------------
1 | CREATE PROCEDURE insert_credit
2 | (
3 | credit_id IN number,
4 | credit_card_number IN varchar,
5 | credit_card_expire IN varchar,
6 | holder_name IN varchar,
7 | card_type IN varchar
8 | )
9 | AS
10 | BEGIN
11 |
12 | insert INTO credit_card(id, card_number, card_expire, name ,cc_type)
13 | VALUES(credit_id, credit_card_number , credit_card_expire , holder_name ,card_type);
14 |
15 | COMMIT;
16 |
17 | END;
18 | /
19 |
--------------------------------------------------------------------------------
/SQL programming/PL_SQL/select_city_procedure.sql:
--------------------------------------------------------------------------------
1 | create procedure select_city
2 | (
3 | user_id IN number,
4 | city_details OUT varchar
5 | )
6 | as
7 | BEGIN
8 | select 'User is from' ||
9 | case
10 | when city IN('Bangalore','Chennai')
11 | then city
12 | else 'other cities'
13 | end
14 | into city_details
15 | from contact
16 | where id=user_id;
17 | end;
18 | /
19 |
--------------------------------------------------------------------------------
/SQL programming/PL_SQL/update_location.sql:
--------------------------------------------------------------------------------
1 | BEGIN
2 |
3 | update Department
4 |
5 | set LOCATION_ID = 'HQ-BLR-101'
6 |
7 | where LOCATION_ID like 'HQ%';
8 |
9 | END;
10 | /
11 |
--------------------------------------------------------------------------------
/SQL programming/Password Generation/query.sql:
--------------------------------------------------------------------------------
1 | select name, concat(substr(NAME,1,3), substr(PHNO,1,3)) as password from users
2 | order by NAME;
3 |
--------------------------------------------------------------------------------
/SQL programming/Password Generation/question.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devraj2000/learning_path_JF/2fb982d598615ad20a50f19802f136f9a941c469/SQL programming/Password Generation/question.pdf
--------------------------------------------------------------------------------
/SQL programming/Patient Appointment Details based on reason/README.md:
--------------------------------------------------------------------------------
1 | # Patient Appointment Details based on reason
2 |
3 | Refer to the given schema.
4 |
5 | Write a query to display the patient id, patient first name, patient age, appointment number and the date of appointment of those patients whose reason for the appointment is 'FEVER'. Sort the records based on patient id.
6 |
7 | > Hint:
8 |
9 | Use the Appointment table and Patient table to retrieve the records. Data is case-sensitive
10 |
11 | 
12 |
13 |
--------------------------------------------------------------------------------
/SQL programming/Patient Appointment Details based on reason/database_diagram.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devraj2000/learning_path_JF/2fb982d598615ad20a50f19802f136f9a941c469/SQL programming/Patient Appointment Details based on reason/database_diagram.png
--------------------------------------------------------------------------------
/SQL programming/Patient Appointment Details based on reason/query.sql:
--------------------------------------------------------------------------------
1 | SELECT P.PATIENT_ID, P.P_FIRST_NAME, P.P_AGE, A.APP_NUMBER, A.APP_DATE
2 | FROM PATIENT P, APPOINMENT A
3 | WHERE P.PATIENT_ID = A.PATIENT_ID
4 | AND A.APP_REASON = 'FEVER'
5 | ORDER BY P.PATIENT_ID;
--------------------------------------------------------------------------------
/SQL programming/Patient Appointment details Based On Month/README.md:
--------------------------------------------------------------------------------
1 | # Patient Appointment details Based On Month
2 |
3 | Refer to the schema. Write a query to display unique patient id, patient first name, patient age, address and contact number of all the patients who booked appointments in the month of JUNE 2019. Sort the records based on patient id.
4 |
5 | > Hint:
6 |
7 | Use Patient & Appointment tables. The appointment date will be in the format 'YYYY-MM-DD'.
8 |
9 | 
--------------------------------------------------------------------------------
/SQL programming/Patient Appointment details Based On Month/database_diagram.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devraj2000/learning_path_JF/2fb982d598615ad20a50f19802f136f9a941c469/SQL programming/Patient Appointment details Based On Month/database_diagram.png
--------------------------------------------------------------------------------
/SQL programming/Patient Appointment details Based On Month/join3.sql:
--------------------------------------------------------------------------------
1 | SELECT DISTINCT P.PATIENT_ID, P.P_FIRST_NAME, P.P_AGE, P.ADDRESS, P.CONTACT_NUMBER
2 | FROM PATIENT P, APPOINTMENT A
3 | WHERE P.PATIENT_ID = A.PATIENT_ID
4 | AND MONTH(A.APP_DATE) = 6
5 | AND YEAR(A.APP_DATE) = 2019
6 | ORDER BY P.PATIENT_ID;
7 |
--------------------------------------------------------------------------------
/SQL programming/Rental details based on date/README.md:
--------------------------------------------------------------------------------
1 | # Rental details based on date
2 |
3 | Write a query to display rental id, car id, customer id and km driven of rentals taken during 'AUGUST 2019'. Sort the result based on rental id.
4 |
5 | > (HINT : Use Rentals table to retrieve records. Eg: return date: 2019-08-12 )
6 |
7 | *NOTE: Maintain the same sequence of column order, as specified in the question description*
8 |
9 | 
--------------------------------------------------------------------------------
/SQL programming/Rental details based on date/query.sql:
--------------------------------------------------------------------------------
1 | select rental_id, car_id, customer_id, km_driven
2 | from rentals
3 | where month(pickup_date) = 8
4 | and year(pickup_date) = 2019
5 | order by rental_id;
--------------------------------------------------------------------------------
/SQL programming/Review of delivery partner based on rating/README.md:
--------------------------------------------------------------------------------
1 | # Review of delivery partner based on rating
2 |
3 | Write a query to display partner id,partner name and review of the delivery partner, give alias name for partner review as 'REVIEW', sort the result based on partner id in ascending order.
4 |
5 | *Note: Review is based on the following condition*
6 |
7 | IF rating>=4 then 'GOOD'
8 |
9 | IF rating between >=2 and <4 then 'AVERAGE'
10 |
11 | IF rating <2 then 'WORST'
12 |
13 | > HINT : Use Delivery_partners table to retrieve records.
--------------------------------------------------------------------------------
/SQL programming/Review of delivery partner based on rating/sample.sql:
--------------------------------------------------------------------------------
1 | select partner_id, partner_name, (
2 | case
3 | when rating >= 4 then "GOOD"
4 | when rating >= 2 and rating < 4 then "AVERAGE"
5 | else "WORST"
6 | end
7 | ) as review
8 | from delivery_partners
9 | order by partner_id;
--------------------------------------------------------------------------------
/SQL programming/Student and their Department Based on City/README.md:
--------------------------------------------------------------------------------
1 | # Student and their Department Based on City
2 |
3 | Write a query to display list of students name and their department name who are all from 'Coimbatore'. Sort the result based on students name
4 |
5 | 
--------------------------------------------------------------------------------
/SQL programming/Student and their Department Based on City/joins3.sql:
--------------------------------------------------------------------------------
1 | select s.student_name, d.department_name
2 | from student as s
3 | inner join department
4 | on s.city = "Coimbatore"
5 | and s.department_id = d.department_id
6 | order by s.student_name;
--------------------------------------------------------------------------------
/SQL programming/Total sale daywise/README.md:
--------------------------------------------------------------------------------
1 | # Total sale daywise
2 |
3 | Write a query to display order_date, total order amount in each day. Give an alias name for total order amount as ‘TOTAL_SALE’. Sort the result based on order_date.
4 |
5 | > HINT : Use Orders table to retrieve records.
6 |
7 | *NOTE: Maintain the same sequence of column order, as specified in the question description*
8 |
9 | 
--------------------------------------------------------------------------------
/SQL programming/Total sale daywise/sample.sql:
--------------------------------------------------------------------------------
1 | select order_date, sum(order_amount) as total_sale
2 | from orders
3 | group by order_date;
--------------------------------------------------------------------------------
/SQL programming/Username and password/query.sql:
--------------------------------------------------------------------------------
1 | Select concat(cust_name,cust_id)
2 | as USERNAME,
3 | concat(substring(cust_name,1,3),
4 | substring(cust_phone,-4,4)) as PASSWORD
5 | from customer
6 | order by USER NAME;
7 |
--------------------------------------------------------------------------------
/SQL programming/Username and password/question.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devraj2000/learning_path_JF/2fb982d598615ad20a50f19802f136f9a941c469/SQL programming/Username and password/question.docx
--------------------------------------------------------------------------------
/SQL programming/car rental system - Insert values/README.md:
--------------------------------------------------------------------------------
1 | # car rental system - Insert values
2 |
3 | Refer to the given schema diagram. Insert the below records into Rentals Table. Assume the rentals table has been already created.
4 |
5 | 
6 |
7 | *Note: Letters in bold represent the attributes.*
8 |
9 | *NOTE: Maintain the same sequence of column order, as specified in the question description*
10 |
11 | 
--------------------------------------------------------------------------------
/SQL programming/car rental system - Insert values/query.sql:
--------------------------------------------------------------------------------
1 | INSERT INTO rentals
2 | VALUES
3 | ("R001", "C007", "V004", "2018-03-10", "2018-03-10", 800, 9000),
4 | ("R002", "C001", "V007", "2018-03-11", "2018-03-12", 200, 3000),
5 | ("R003", "C007", "V003", "2018-04-15", "2018-04-15", 100, 1500),
6 | ("R004", "C007", "V001", "2018-05-16", "2018-05-18", 1000, 10000),
7 | ("R005", "C004", "V005", "2018-05-10", "2018-05-12", 900, 11000),
8 | ("R006", "C004", "V006", "2018-05-20", "2018-05-21", 200, 2500);
--------------------------------------------------------------------------------
/SQL programming/car rental system - Insert values/table_data.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devraj2000/learning_path_JF/2fb982d598615ad20a50f19802f136f9a941c469/SQL programming/car rental system - Insert values/table_data.png
--------------------------------------------------------------------------------
/code quality/FlightManagement-2.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devraj2000/learning_path_JF/2fb982d598615ad20a50f19802f136f9a941c469/code quality/FlightManagement-2.zip
--------------------------------------------------------------------------------
/code quality/TraineeManager.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devraj2000/learning_path_JF/2fb982d598615ad20a50f19802f136f9a941c469/code quality/TraineeManager.zip
--------------------------------------------------------------------------------
/code quality/patient-intake-system.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devraj2000/learning_path_JF/2fb982d598615ad20a50f19802f136f9a941c469/code quality/patient-intake-system.zip
--------------------------------------------------------------------------------
/code quality/read.txt:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/html_css/feedback details.txt:
--------------------------------------------------------------------------------
1 | the html part:
2 |
3 |
4 |