SlideShare ist ein Scribd-Unternehmen logo
1 von 23
S1G - Hexagon Theory
Your One Stop Expense Management Tool
S1G - Hexagon Theory
Meet the Team
Abhishek Nanoti : S1G - Hexagon Theory
Abhishek Nanoti Aishwarya Ramaraj Likitha Tripuraneni
Nidhi Shantha Kumar Shivam Shishangia Tanvi Tanaji Mane
AGENDA
• Requirements and Usage
• Entity-Relationship Diagram
• ER To Relational and Normalization
• Sample SQL Queries
• Packages and Indexing
• Sequences and Triggers
• Stored Procedures
• Front-End Review
Abhishek Nanoti : S1G - Hexagon Theory
REQUIREMENTS AND USAGE
TripActions is looking for expanding their revenue stream by
introducing TripActions Liquid – an expense management and
corporate card solution for their platform.
Abhishek Nanoti S1G - Hexagon Theory
ENTITY-RELATION IMPLEMENTATION
ENTITY-RELATIONSHIP IMPLEMENTATION
CLIENTCOMPANIES
name
type
companyID
REPAYMENTS
repaymentID
amount
Due
payment
Date
CC INVOICES Handled By
[1:1] [1:1]
total
Amount
invoiceID
dateOf
Issue
phoneNum
emailID
status [0:M]
ENTITY-RELATIONSHIP IMPLEMENTATION
CLIENTCOMPANIES
name
type
companyID
CC EMPLOYEES
empID
lname
gender
address
dateOfJoining
dateOfBirth
CARDS
[1:1]
[1:1]
cvv
cardType
iDate
eDate cardNum
category
duration
endDate
CARD SUBSCRIPTIONS
[0:M]
startDate
phoneNum
emailID
CONTRACTS
startDate
contractID
P
ACTIVE CANCELLED
dateOf
Cancellation
reasonFor
Cancellation
endDate
validity
D
Enroll For
C
Work For
[0:M]
[1:1]
Assumption: A
contract is signed
for a set duration.
creditScore
phoneNum
fname
Sign
[1:1]
[1:1]
emailID
Nidhi Shantha Kumar : S1G - Hexagon Theory
ENTITY-RELATIONSHIP IMPLEMENTATION
POLICIES
policyID
policyName
policy
Description
policyTier
pricingPlan
Assumption: A
company can
opt for only one
type of policy in
their contract.
[0:M]
duration endDate
GROWTH
PLANS
PROFESSIONAL
PLANS
P
additionalPayment
PerNewUser
additional
CorporateDeals
CONTRACTS
startDate
contractID
P
ACTIVE CANCELLED
dateOf
Cancellation
reasonFor
Cancellation
Binded by
[1:1]
Assumption: A
contract is
signed for a set
duration.
creditScore
Nidhi Shantha Kumar : S1G - Hexagon Theory
ENTITY-RELATIONSHIP IMPLEMENTATION
Nidhi Shantha Kumar : S1G - Hexagon Theory
TA EMPLOYEES
empID
fName
D
TA ADMINISTRATORS
TA CUSTOMER SUPPORT
AGENTS
gender
dateOfJoining
emailID
phoneNum
D
TA MANAGERS
Manages
[0:M]
[0:M]
Forms
[2:M]
[1:M]
SUPPORT TEAMS
[0:1]
address
supportTeamID
name
lName
ER TO RELATIONAL
TA_EMPLOYEES (empID, fName, lName, dateOfJoining, gender, address, loginID)
Foreign Key (loginID) REFERENCES TA_LOGINS (loginID)
Subclass of TA_EMPLOYEES translated from ER Diagram (Option A)
TA_CUSTOMER_SUPPORT_AGENTS (empID)
Foreign Key (empID) REFERENCES TA_EMPLOYEES (empID)
TA_ADMINISTRATORS (empID)
Foreign Key (empID) REFERENCES TA_EMPLOYEES (empID)
Subclass of TA_ADMINISTRATORS translated from ER Diagram (Option A)
TA_MANAGERS (empID)
Foreign Key (empID) REFERENCES TA_ADMINISTRATORS (empID)
FORMS_SUPPORT_AGENTS (supportTeamID, empID)
Foreign Key (supportTeamID) REFERENCES SUPPORT_TEAMS (supportTeamID)
Foreign Key (empID) REFERENCES TA_CUSTOMER_SUPPORT_AGENTS (empID)
SUPPORT_TEAMS (supportTeamID, name)
Aishwarya Ramaraj : S1G - Hexagon Theory
ER TO RELATIONAL
CC_EMPLOYEES (empID, fName, lName, address, dateOfJoining, dateOfBirth, gender, companyID, loginID)
Foreign Key (companyID) references CLIENT_COMPANIES (companyID)
Foreign Key (loginID) references CC_EMP_LOGINS (loginID)
Subclass of CC_EMPLOYEES translated from ER Diagram (Option A)
CC_MANAGERS (managerID, assignedBudget)
Foreign Key (managerID) references CC_EMPLOYEES (empID)
CC_EMPLOYEES_EMAILS (empID, emailID)
Foreign Key (empID) references CC_EMPLOYEES (empID)
CC_EMPLOYEES_PHONES (empID, phoneNum)
Foreign Key (empID) references CC_EMPLOYEES (empID)
CC_EMP_LOGINS (loginID, password, userName)
Aishwarya Ramaraj : S1G - Hexagon Theory
NORMALIZATION
Functional Dependencies
FD1: loginID -> userName, password
FD2: userName -> password
This table is in 2 NF (highest normal form) and we see a transitive dependency based on our FDs.
Original Table:
CC_EMP_LOGINS (loginID, password, userName)
Normalized Table:
CC_EMP_LOGINS_USERNAME (loginID, userName)
CC_EMP_LOGINS_PASSWORD (userName, password)
Foreign Key (userName) REFERENCES CC_EMP_LOGINS_USERNAME (userName)
Aishwarya Ramaraj : S1G - Hexagon Theory
SQL QUERIES – 1/3
Display assigned support teams with their manager and support agent contact
Tanvi Mane : S1G - Hexagon Theory
S1G - Hexagon Theory
S1G - Hexagon Theory
SQL QUERIES – 2/3
Tanvi Mane : S1G - Hexagon Theory
Select top 3 complaints by type and give their count by status
SQL QUERIES – OUTPUT 1/3
S1G - Hexagon Theory
SQL QUERIES – 3/3
Tanvi Mane : S1G - Hexagon Theory
Expenditure Monitoring
SEQUENCES AND TRIGGERS
To Generate Reimbursement IDs
Shivam Shishangia : S1G - Hexagon Theory
STORED PROCEDURES – TRIGGER 1/2
Shivam Shishangia : S1G - Hexagon Theory
Trigger before inserting a new reimbursement record
STORED PROCEDURE –TRIGGER 2/2
Shivam Shishangia : S1G - Hexagon Theory
Trigger before submitting record in the CARD_SUBSCIRPTIONS table validating the constraining
relationship with CONTRACTS
STORED PROCEDURES - PROCEDURE
Shivam Shishangia : S1G - Hexagon Theory
Procedure for a manager to change the status of the oldest 3 reimbursements to ‘Review’
S1G - Hexagon Theory

Weitere ähnliche Inhalte

Ähnlich wie TRIPACTIONS-PPT.pptx

Fraud Detection and Neo4j
Fraud Detection and Neo4j Fraud Detection and Neo4j
Fraud Detection and Neo4j Max De Marzi
 
Integration of payment gateways using Paypal account
Integration of payment gateways using Paypal account Integration of payment gateways using Paypal account
Integration of payment gateways using Paypal account Phenom People
 
AAD B2C custom policies
AAD B2C custom policiesAAD B2C custom policies
AAD B2C custom policiesRory Braybrook
 
Auto- Repair Service Software Design and Analysis
Auto- Repair Service Software Design and AnalysisAuto- Repair Service Software Design and Analysis
Auto- Repair Service Software Design and AnalysisHinal Patel
 
An introduction to Machine Learning
An introduction to Machine LearningAn introduction to Machine Learning
An introduction to Machine LearningJulien SIMON
 
The atm system
The atm systemThe atm system
The atm systemLê Đức
 
Python as part of a production machine learning stack by Michael Manapat PyDa...
Python as part of a production machine learning stack by Michael Manapat PyDa...Python as part of a production machine learning stack by Michael Manapat PyDa...
Python as part of a production machine learning stack by Michael Manapat PyDa...PyData
 
Final Year MCA Presentation
Final Year MCA PresentationFinal Year MCA Presentation
Final Year MCA PresentationBharat Lakhiyani
 
Saml authentication bypass
Saml authentication bypassSaml authentication bypass
Saml authentication bypassTarachand Verma
 
Romanov moscow-boston-22.03, Business rules for profit incresing in mobile co...
Romanov moscow-boston-22.03, Business rules for profit incresing in mobile co...Romanov moscow-boston-22.03, Business rules for profit incresing in mobile co...
Romanov moscow-boston-22.03, Business rules for profit incresing in mobile co...Victor Romanov
 
Microsoft MCSE 70-469 it braindumps
Microsoft MCSE 70-469 it braindumpsMicrosoft MCSE 70-469 it braindumps
Microsoft MCSE 70-469 it braindumpslilylucy
 
Introducing Amazon Machine Learning
Introducing Amazon Machine LearningIntroducing Amazon Machine Learning
Introducing Amazon Machine LearningAmazon Web Services
 
Resume_YasirGhauri_HOD
Resume_YasirGhauri_HODResume_YasirGhauri_HOD
Resume_YasirGhauri_HODYasir Ghauri
 
Document process v7
Document process v7Document process v7
Document process v7Bala Kris
 

Ähnlich wie TRIPACTIONS-PPT.pptx (20)

Fraud Detection and Neo4j
Fraud Detection and Neo4j Fraud Detection and Neo4j
Fraud Detection and Neo4j
 
Integration of payment gateways using Paypal account
Integration of payment gateways using Paypal account Integration of payment gateways using Paypal account
Integration of payment gateways using Paypal account
 
AAD B2C custom policies
AAD B2C custom policiesAAD B2C custom policies
AAD B2C custom policies
 
Auto- Repair Service Software Design and Analysis
Auto- Repair Service Software Design and AnalysisAuto- Repair Service Software Design and Analysis
Auto- Repair Service Software Design and Analysis
 
MEDICAL STORE MANAGEMENT SYSTEM
MEDICAL STORE MANAGEMENT SYSTEMMEDICAL STORE MANAGEMENT SYSTEM
MEDICAL STORE MANAGEMENT SYSTEM
 
MaheshCV_Yepme
MaheshCV_YepmeMaheshCV_Yepme
MaheshCV_Yepme
 
An introduction to Machine Learning
An introduction to Machine LearningAn introduction to Machine Learning
An introduction to Machine Learning
 
The atm system
The atm systemThe atm system
The atm system
 
The atm system
The atm systemThe atm system
The atm system
 
Python as part of a production machine learning stack by Michael Manapat PyDa...
Python as part of a production machine learning stack by Michael Manapat PyDa...Python as part of a production machine learning stack by Michael Manapat PyDa...
Python as part of a production machine learning stack by Michael Manapat PyDa...
 
Final Year MCA Presentation
Final Year MCA PresentationFinal Year MCA Presentation
Final Year MCA Presentation
 
Saml authentication bypass
Saml authentication bypassSaml authentication bypass
Saml authentication bypass
 
Romanov moscow-boston-22.03, Business rules for profit incresing in mobile co...
Romanov moscow-boston-22.03, Business rules for profit incresing in mobile co...Romanov moscow-boston-22.03, Business rules for profit incresing in mobile co...
Romanov moscow-boston-22.03, Business rules for profit incresing in mobile co...
 
Microsoft MCSE 70-469 it braindumps
Microsoft MCSE 70-469 it braindumpsMicrosoft MCSE 70-469 it braindumps
Microsoft MCSE 70-469 it braindumps
 
Jar chapter 3
Jar chapter 3Jar chapter 3
Jar chapter 3
 
Introducing Amazon Machine Learning
Introducing Amazon Machine LearningIntroducing Amazon Machine Learning
Introducing Amazon Machine Learning
 
Atm Simulator
Atm SimulatorAtm Simulator
Atm Simulator
 
Atm Simulator
Atm SimulatorAtm Simulator
Atm Simulator
 
Resume_YasirGhauri_HOD
Resume_YasirGhauri_HODResume_YasirGhauri_HOD
Resume_YasirGhauri_HOD
 
Document process v7
Document process v7Document process v7
Document process v7
 

Kürzlich hochgeladen

Cheap Rate Call Girls In Noida Sector 62 Metro 959961乂3876
Cheap Rate Call Girls In Noida Sector 62 Metro 959961乂3876Cheap Rate Call Girls In Noida Sector 62 Metro 959961乂3876
Cheap Rate Call Girls In Noida Sector 62 Metro 959961乂3876dlhescort
 
Malegaon Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
Malegaon Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort ServiceMalegaon Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
Malegaon Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort ServiceDamini Dixit
 
PHX May 2024 Corporate Presentation Final
PHX May 2024 Corporate Presentation FinalPHX May 2024 Corporate Presentation Final
PHX May 2024 Corporate Presentation FinalPanhandleOilandGas
 
How to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityHow to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityEric T. Tung
 
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...rajveerescorts2022
 
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al MizharAl Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizharallensay1
 
Eluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort Service
Eluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort ServiceEluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort Service
Eluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort ServiceDamini Dixit
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsP&CO
 
Whitefield CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
Whitefield CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRLWhitefield CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
Whitefield CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRLkapoorjyoti4444
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Organizational Transformation Lead with Culture
Organizational Transformation Lead with CultureOrganizational Transformation Lead with Culture
Organizational Transformation Lead with CultureSeta Wicaksana
 
Falcon Invoice Discounting: Empowering Your Business Growth
Falcon Invoice Discounting: Empowering Your Business GrowthFalcon Invoice Discounting: Empowering Your Business Growth
Falcon Invoice Discounting: Empowering Your Business GrowthFalcon investment
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756dollysharma2066
 
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...amitlee9823
 
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 MonthsSEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 MonthsIndeedSEO
 
Falcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business PotentialFalcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business PotentialFalcon investment
 
Phases of Negotiation .pptx
 Phases of Negotiation .pptx Phases of Negotiation .pptx
Phases of Negotiation .pptxnandhinijagan9867
 
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai KuwaitThe Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwaitdaisycvs
 
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangaloreamitlee9823
 

Kürzlich hochgeladen (20)

Cheap Rate Call Girls In Noida Sector 62 Metro 959961乂3876
Cheap Rate Call Girls In Noida Sector 62 Metro 959961乂3876Cheap Rate Call Girls In Noida Sector 62 Metro 959961乂3876
Cheap Rate Call Girls In Noida Sector 62 Metro 959961乂3876
 
Malegaon Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
Malegaon Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort ServiceMalegaon Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
Malegaon Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
 
PHX May 2024 Corporate Presentation Final
PHX May 2024 Corporate Presentation FinalPHX May 2024 Corporate Presentation Final
PHX May 2024 Corporate Presentation Final
 
How to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityHow to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League City
 
(Anamika) VIP Call Girls Napur Call Now 8617697112 Napur Escorts 24x7
(Anamika) VIP Call Girls Napur Call Now 8617697112 Napur Escorts 24x7(Anamika) VIP Call Girls Napur Call Now 8617697112 Napur Escorts 24x7
(Anamika) VIP Call Girls Napur Call Now 8617697112 Napur Escorts 24x7
 
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
 
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al MizharAl Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
 
Eluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort Service
Eluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort ServiceEluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort Service
Eluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort Service
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and pains
 
Whitefield CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
Whitefield CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRLWhitefield CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
Whitefield CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Organizational Transformation Lead with Culture
Organizational Transformation Lead with CultureOrganizational Transformation Lead with Culture
Organizational Transformation Lead with Culture
 
Falcon Invoice Discounting: Empowering Your Business Growth
Falcon Invoice Discounting: Empowering Your Business GrowthFalcon Invoice Discounting: Empowering Your Business Growth
Falcon Invoice Discounting: Empowering Your Business Growth
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
 
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
 
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 MonthsSEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 Months
 
Falcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business PotentialFalcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business Potential
 
Phases of Negotiation .pptx
 Phases of Negotiation .pptx Phases of Negotiation .pptx
Phases of Negotiation .pptx
 
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai KuwaitThe Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
 
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 

TRIPACTIONS-PPT.pptx

  • 1. S1G - Hexagon Theory Your One Stop Expense Management Tool
  • 2. S1G - Hexagon Theory
  • 3. Meet the Team Abhishek Nanoti : S1G - Hexagon Theory Abhishek Nanoti Aishwarya Ramaraj Likitha Tripuraneni Nidhi Shantha Kumar Shivam Shishangia Tanvi Tanaji Mane
  • 4. AGENDA • Requirements and Usage • Entity-Relationship Diagram • ER To Relational and Normalization • Sample SQL Queries • Packages and Indexing • Sequences and Triggers • Stored Procedures • Front-End Review Abhishek Nanoti : S1G - Hexagon Theory
  • 5. REQUIREMENTS AND USAGE TripActions is looking for expanding their revenue stream by introducing TripActions Liquid – an expense management and corporate card solution for their platform. Abhishek Nanoti S1G - Hexagon Theory
  • 7. ENTITY-RELATIONSHIP IMPLEMENTATION CLIENTCOMPANIES name type companyID CC EMPLOYEES empID lname gender address dateOfJoining dateOfBirth CARDS [1:1] [1:1] cvv cardType iDate eDate cardNum category duration endDate CARD SUBSCRIPTIONS [0:M] startDate phoneNum emailID CONTRACTS startDate contractID P ACTIVE CANCELLED dateOf Cancellation reasonFor Cancellation endDate validity D Enroll For C Work For [0:M] [1:1] Assumption: A contract is signed for a set duration. creditScore phoneNum fname Sign [1:1] [1:1] emailID Nidhi Shantha Kumar : S1G - Hexagon Theory
  • 8. ENTITY-RELATIONSHIP IMPLEMENTATION POLICIES policyID policyName policy Description policyTier pricingPlan Assumption: A company can opt for only one type of policy in their contract. [0:M] duration endDate GROWTH PLANS PROFESSIONAL PLANS P additionalPayment PerNewUser additional CorporateDeals CONTRACTS startDate contractID P ACTIVE CANCELLED dateOf Cancellation reasonFor Cancellation Binded by [1:1] Assumption: A contract is signed for a set duration. creditScore Nidhi Shantha Kumar : S1G - Hexagon Theory
  • 9. ENTITY-RELATIONSHIP IMPLEMENTATION Nidhi Shantha Kumar : S1G - Hexagon Theory TA EMPLOYEES empID fName D TA ADMINISTRATORS TA CUSTOMER SUPPORT AGENTS gender dateOfJoining emailID phoneNum D TA MANAGERS Manages [0:M] [0:M] Forms [2:M] [1:M] SUPPORT TEAMS [0:1] address supportTeamID name lName
  • 10. ER TO RELATIONAL TA_EMPLOYEES (empID, fName, lName, dateOfJoining, gender, address, loginID) Foreign Key (loginID) REFERENCES TA_LOGINS (loginID) Subclass of TA_EMPLOYEES translated from ER Diagram (Option A) TA_CUSTOMER_SUPPORT_AGENTS (empID) Foreign Key (empID) REFERENCES TA_EMPLOYEES (empID) TA_ADMINISTRATORS (empID) Foreign Key (empID) REFERENCES TA_EMPLOYEES (empID) Subclass of TA_ADMINISTRATORS translated from ER Diagram (Option A) TA_MANAGERS (empID) Foreign Key (empID) REFERENCES TA_ADMINISTRATORS (empID) FORMS_SUPPORT_AGENTS (supportTeamID, empID) Foreign Key (supportTeamID) REFERENCES SUPPORT_TEAMS (supportTeamID) Foreign Key (empID) REFERENCES TA_CUSTOMER_SUPPORT_AGENTS (empID) SUPPORT_TEAMS (supportTeamID, name) Aishwarya Ramaraj : S1G - Hexagon Theory
  • 11. ER TO RELATIONAL CC_EMPLOYEES (empID, fName, lName, address, dateOfJoining, dateOfBirth, gender, companyID, loginID) Foreign Key (companyID) references CLIENT_COMPANIES (companyID) Foreign Key (loginID) references CC_EMP_LOGINS (loginID) Subclass of CC_EMPLOYEES translated from ER Diagram (Option A) CC_MANAGERS (managerID, assignedBudget) Foreign Key (managerID) references CC_EMPLOYEES (empID) CC_EMPLOYEES_EMAILS (empID, emailID) Foreign Key (empID) references CC_EMPLOYEES (empID) CC_EMPLOYEES_PHONES (empID, phoneNum) Foreign Key (empID) references CC_EMPLOYEES (empID) CC_EMP_LOGINS (loginID, password, userName) Aishwarya Ramaraj : S1G - Hexagon Theory
  • 12. NORMALIZATION Functional Dependencies FD1: loginID -> userName, password FD2: userName -> password This table is in 2 NF (highest normal form) and we see a transitive dependency based on our FDs. Original Table: CC_EMP_LOGINS (loginID, password, userName) Normalized Table: CC_EMP_LOGINS_USERNAME (loginID, userName) CC_EMP_LOGINS_PASSWORD (userName, password) Foreign Key (userName) REFERENCES CC_EMP_LOGINS_USERNAME (userName) Aishwarya Ramaraj : S1G - Hexagon Theory
  • 13. SQL QUERIES – 1/3 Display assigned support teams with their manager and support agent contact Tanvi Mane : S1G - Hexagon Theory
  • 14. S1G - Hexagon Theory
  • 15. S1G - Hexagon Theory
  • 16. SQL QUERIES – 2/3 Tanvi Mane : S1G - Hexagon Theory Select top 3 complaints by type and give their count by status
  • 17. SQL QUERIES – OUTPUT 1/3 S1G - Hexagon Theory
  • 18. SQL QUERIES – 3/3 Tanvi Mane : S1G - Hexagon Theory Expenditure Monitoring
  • 19. SEQUENCES AND TRIGGERS To Generate Reimbursement IDs Shivam Shishangia : S1G - Hexagon Theory
  • 20. STORED PROCEDURES – TRIGGER 1/2 Shivam Shishangia : S1G - Hexagon Theory Trigger before inserting a new reimbursement record
  • 21. STORED PROCEDURE –TRIGGER 2/2 Shivam Shishangia : S1G - Hexagon Theory Trigger before submitting record in the CARD_SUBSCIRPTIONS table validating the constraining relationship with CONTRACTS
  • 22. STORED PROCEDURES - PROCEDURE Shivam Shishangia : S1G - Hexagon Theory Procedure for a manager to change the status of the oldest 3 reimbursements to ‘Review’
  • 23. S1G - Hexagon Theory