SlideShare a Scribd company logo
Query to get the Geography Information using BI Report
Countries:
SELECT TERRITORY_CODE
,TERRITORY_SHORT_NAME
,CURRENCY_CODE
,DESCRIPTION
FROM FND_TERRITORIES_VL
WHERE OBSOLETE_FLAG = 'N'
ORDER BY TERRITORY_SHORT_NAME
,TERRITORY_CODE
States:
SELECT hzgiv.identifier_value
FROM hz_geographieshzg
,hz_geography_identifiershzgi
,hz_geography_identifiers_vl hzgiv
WHERE hzg.country_code = 'US'
AND hzg.geography_use = 'MASTER_REF'
AND hzg.geography_type = 'STATE'
AND hzg.geography_element1= 'UnitedStates'
AND hzg.geography_id= hzgi.geography_id
AND hzgi.identifier_subtype='GEO_CODE'
AND hzgi.identifier_type ='CODE'
AND hzgi.primary_flag = 'N'
AND hzgi.geography_use = 'MASTER_REF'
AND hzgi.language_code = 'US'
AND hzgi.geography_id= hzgiv.geography_id
AND hzgiv.geography_use = 'MASTER_REF'
AND hzgiv.identifier_type ='NAME'
AND hzgiv.identifier_subtype='STANDARD_NAME'
AND hzgiv.language_code = 'US'
AND hzgiv.primary_flag = 'Y'
Counties:
SELECT hzgiv.identifier_value
FROM hz_geographieshzg
,hz_geography_identifiershzgi
,hz_geography_identifiers_vl hzgiv
WHERE hzg.country_code = 'US'
AND hzg.geography_use = 'MASTER_REF'
AND hzg.geography_type = 'COUNTY'
AND hzg.geography_element1= 'UnitedStates'
AND hzg.geography_id= hzgi.geography_id
AND hzgi.identifier_subtype='GEO_CODE'
AND hzgi.identifier_type ='CODE'
AND hzgi.primary_flag = 'Y'
AND hzgi.geography_use = 'MASTER_REF'
AND hzgi.language_code = 'US'
AND hzgi.geography_id= hzgiv.geography_id
AND hzgiv.geography_use = 'MASTER_REF'
AND hzgiv.identifier_type ='NAME'
AND hzgiv.identifier_subtype='STANDARD_NAME'
AND hzgiv.language_code = 'US'
AND hzgiv.primary_flag = 'Y'
AND substr(hzgi.identifier_value,1,2) = : $FLEX$.STATE
Cities:
SELECT initcap(hzgiv.identifier_value)
FROM hz_geographieshzg
,hz_geography_identifiershzgi
,hz_geography_identifiers_vl hzgiv
WHERE hzg.country_code = 'US'
AND hzg.geography_use = 'MASTER_REF'
AND hzg.geography_type = 'CITY'
AND hzg.geography_element1= 'UnitedStates'
AND hzg.geography_id= hzgi.geography_id
AND hzgi.identifier_subtype='GEO_CODE'
AND hzgi.identifier_type ='CODE'
AND hzgi.primary_flag = 'Y'
AND hzgi.geography_use = 'MASTER_REF'
AND hzgi.language_code = 'US'
AND hzgi.geography_id= hzgiv.geography_id
AND hzgiv.identifier_type ='NAME'
AND hzgiv.identifier_subtype='STANDARD_NAME'
AND hzgiv.language_code = 'US'
AND hzgiv.primary_flag = 'Y'
AND hzgiv.geography_use = 'MASTER_REF'
AND substr(hzgi.identifier_value,1,2) = : $FLEX$.STATE
AND substr(hzgi.identifier_value,4,3) = : $FLEX$.County
Zip:
SELECT hzgpc.geography_name
FROM hz_geographieshzg
,hz_geography_identifiershzgi
,hz_geography_identifiers_vl hzgiv
,hz_geographieshzgpc
WHERE hzg.country_code = 'US'
AND hzg.geography_use = 'MASTER_REF'
AND hzg.geography_type = 'CITY'
AND hzg.geography_element1= 'UnitedStates'
AND hzg.geography_id= hzgi.geography_id
AND hzgi.identifier_subtype='GEO_CODE'
AND hzgi.identifier_type ='CODE'
AND hzgi.primary_flag = 'Y'
AND hzgi.geography_use = 'MASTER_REF'
AND hzgi.language_code = 'US'
AND hzgi.geography_id= hzgiv.geography_id
AND hzgiv.identifier_type ='NAME'
AND hzgiv.identifier_subtype='STANDARD_NAME'
AND hzgiv.language_code = 'US'
AND hzgiv.primary_flag = 'Y'
AND hzgiv.geography_use = 'MASTER_REF'
AND hzgpc.country_code = 'US'
AND hzgpc.geography_use = 'MASTER_REF'
AND hzgpc.geography_type = 'POSTAL_CODE'
AND hzgpc.geography_element1= hzg.geography_element1
AND hzgpc.geography_element2= hzg.geography_element2
AND hzgpc.geography_element3= hzg.geography_element3
AND hzgpc.geography_element4= hzg.geography_element4
AND hzgpc.geography_name IS NOT NULL
AND substr(hzgi.identifier_value,1,2) = : $FLEX$.STATE
AND substr(hzgi.identifier_value,4,3) = : $FLEX$.County
AND substr(hzgi.identifier_value,8,4) = : $FLEX$.City
Hope thishelps.Stay tunedfor more updates.
Query to get the geography information using bi report
Ad

More Related Content

What's hot (20)

Oracle Fusion Cloud Payroll Costing Query
Oracle Fusion Cloud Payroll Costing QueryOracle Fusion Cloud Payroll Costing Query
Oracle Fusion Cloud Payroll Costing Query
Feras Ahmad
 
Legal Employer Details Query Oracle Fusion Cloud
Legal Employer Details Query Oracle Fusion CloudLegal Employer Details Query Oracle Fusion Cloud
Legal Employer Details Query Oracle Fusion Cloud
Feras Ahmad
 
How to create payslip through self service
How to create payslip through self serviceHow to create payslip through self service
How to create payslip through self service
Feras Ahmad
 
The Goal with performance details Oracle Fusion Cloud
The Goal with performance details Oracle Fusion CloudThe Goal with performance details Oracle Fusion Cloud
The Goal with performance details Oracle Fusion Cloud
Feras Ahmad
 
Query Pre Payment details Oracle Fusion Cloud
Query Pre Payment details Oracle Fusion CloudQuery Pre Payment details Oracle Fusion Cloud
Query Pre Payment details Oracle Fusion Cloud
Feras Ahmad
 
Oracle Fusion Cloud HCM value sets
Oracle Fusion Cloud HCM value setsOracle Fusion Cloud HCM value sets
Oracle Fusion Cloud HCM value sets
Feras Ahmad
 
How to debug a fast formula
How to debug a fast formulaHow to debug a fast formula
How to debug a fast formula
Feras Ahmad
 
Fast formula queries for functions, contexts, db is and packages
Fast formula queries for functions, contexts, db is and packagesFast formula queries for functions, contexts, db is and packages
Fast formula queries for functions, contexts, db is and packages
Feras Ahmad
 
Fusion hcm roles information
Fusion hcm roles informationFusion hcm roles information
Fusion hcm roles information
Santosh Mankala
 
How to Debug the Fast Formula.pdf
How to Debug the Fast Formula.pdfHow to Debug the Fast Formula.pdf
How to Debug the Fast Formula.pdf
Feras Ahmad
 
Calendar working days and holidays for Oracle EBS R12 Absence management
Calendar working days and holidays for Oracle EBS R12 Absence managementCalendar working days and holidays for Oracle EBS R12 Absence management
Calendar working days and holidays for Oracle EBS R12 Absence management
Feras Ahmad
 
Oracle HRMS Payroll Table Overview
Oracle HRMS Payroll Table OverviewOracle HRMS Payroll Table Overview
Oracle HRMS Payroll Table Overview
Chris Martin
 
Hcm extracts error
Hcm extracts errorHcm extracts error
Hcm extracts error
Feras Ahmad
 
DBI database Items Query Oracle Fusion Cloud
DBI database Items Query Oracle Fusion CloudDBI database Items Query Oracle Fusion Cloud
DBI database Items Query Oracle Fusion Cloud
Feras Ahmad
 
Query Worker Contracts Details Oracle Fusion Cloud
Query Worker Contracts Details Oracle Fusion CloudQuery Worker Contracts Details Oracle Fusion Cloud
Query Worker Contracts Details Oracle Fusion Cloud
Feras Ahmad
 
9 element entry_validation_part_9
9 element entry_validation_part_99 element entry_validation_part_9
9 element entry_validation_part_9
Oracle HRMS Functional Consultant
 
Oracle EBS Apps HRMS Presentation
Oracle EBS Apps HRMS PresentationOracle EBS Apps HRMS Presentation
Oracle EBS Apps HRMS Presentation
Feras Ahmad
 
Oracle ebs otl setup document
Oracle ebs otl setup documentOracle ebs otl setup document
Oracle ebs otl setup document
Feras Ahmad
 
Fujcci crp oracle payroll
Fujcci crp oracle payrollFujcci crp oracle payroll
Fujcci crp oracle payroll
Feras Ahmad
 
142500146 using-oracle-fast formula-for-payroll-calculations
142500146 using-oracle-fast formula-for-payroll-calculations142500146 using-oracle-fast formula-for-payroll-calculations
142500146 using-oracle-fast formula-for-payroll-calculations
uday reddy
 
Oracle Fusion Cloud Payroll Costing Query
Oracle Fusion Cloud Payroll Costing QueryOracle Fusion Cloud Payroll Costing Query
Oracle Fusion Cloud Payroll Costing Query
Feras Ahmad
 
Legal Employer Details Query Oracle Fusion Cloud
Legal Employer Details Query Oracle Fusion CloudLegal Employer Details Query Oracle Fusion Cloud
Legal Employer Details Query Oracle Fusion Cloud
Feras Ahmad
 
How to create payslip through self service
How to create payslip through self serviceHow to create payslip through self service
How to create payslip through self service
Feras Ahmad
 
The Goal with performance details Oracle Fusion Cloud
The Goal with performance details Oracle Fusion CloudThe Goal with performance details Oracle Fusion Cloud
The Goal with performance details Oracle Fusion Cloud
Feras Ahmad
 
Query Pre Payment details Oracle Fusion Cloud
Query Pre Payment details Oracle Fusion CloudQuery Pre Payment details Oracle Fusion Cloud
Query Pre Payment details Oracle Fusion Cloud
Feras Ahmad
 
Oracle Fusion Cloud HCM value sets
Oracle Fusion Cloud HCM value setsOracle Fusion Cloud HCM value sets
Oracle Fusion Cloud HCM value sets
Feras Ahmad
 
How to debug a fast formula
How to debug a fast formulaHow to debug a fast formula
How to debug a fast formula
Feras Ahmad
 
Fast formula queries for functions, contexts, db is and packages
Fast formula queries for functions, contexts, db is and packagesFast formula queries for functions, contexts, db is and packages
Fast formula queries for functions, contexts, db is and packages
Feras Ahmad
 
Fusion hcm roles information
Fusion hcm roles informationFusion hcm roles information
Fusion hcm roles information
Santosh Mankala
 
How to Debug the Fast Formula.pdf
How to Debug the Fast Formula.pdfHow to Debug the Fast Formula.pdf
How to Debug the Fast Formula.pdf
Feras Ahmad
 
Calendar working days and holidays for Oracle EBS R12 Absence management
Calendar working days and holidays for Oracle EBS R12 Absence managementCalendar working days and holidays for Oracle EBS R12 Absence management
Calendar working days and holidays for Oracle EBS R12 Absence management
Feras Ahmad
 
Oracle HRMS Payroll Table Overview
Oracle HRMS Payroll Table OverviewOracle HRMS Payroll Table Overview
Oracle HRMS Payroll Table Overview
Chris Martin
 
Hcm extracts error
Hcm extracts errorHcm extracts error
Hcm extracts error
Feras Ahmad
 
DBI database Items Query Oracle Fusion Cloud
DBI database Items Query Oracle Fusion CloudDBI database Items Query Oracle Fusion Cloud
DBI database Items Query Oracle Fusion Cloud
Feras Ahmad
 
Query Worker Contracts Details Oracle Fusion Cloud
Query Worker Contracts Details Oracle Fusion CloudQuery Worker Contracts Details Oracle Fusion Cloud
Query Worker Contracts Details Oracle Fusion Cloud
Feras Ahmad
 
Oracle EBS Apps HRMS Presentation
Oracle EBS Apps HRMS PresentationOracle EBS Apps HRMS Presentation
Oracle EBS Apps HRMS Presentation
Feras Ahmad
 
Oracle ebs otl setup document
Oracle ebs otl setup documentOracle ebs otl setup document
Oracle ebs otl setup document
Feras Ahmad
 
Fujcci crp oracle payroll
Fujcci crp oracle payrollFujcci crp oracle payroll
Fujcci crp oracle payroll
Feras Ahmad
 
142500146 using-oracle-fast formula-for-payroll-calculations
142500146 using-oracle-fast formula-for-payroll-calculations142500146 using-oracle-fast formula-for-payroll-calculations
142500146 using-oracle-fast formula-for-payroll-calculations
uday reddy
 

More from Feras Ahmad (17)

Oracle Fusion HCM Payroll Process Flow.pdf
Oracle Fusion HCM Payroll Process Flow.pdfOracle Fusion HCM Payroll Process Flow.pdf
Oracle Fusion HCM Payroll Process Flow.pdf
Feras Ahmad
 
Configure Flexfield Parameters in Value Sets for Document Records.docx
Configure Flexfield Parameters in Value Sets for Document Records.docxConfigure Flexfield Parameters in Value Sets for Document Records.docx
Configure Flexfield Parameters in Value Sets for Document Records.docx
Feras Ahmad
 
Building-Materials
Building-MaterialsBuilding-Materials
Building-Materials
Feras Ahmad
 
Oracle Fusion Cloud sensitive data access audit
 Oracle Fusion Cloud sensitive data access audit Oracle Fusion Cloud sensitive data access audit
Oracle Fusion Cloud sensitive data access audit
Feras Ahmad
 
Oracle HCM Presentation 2020
Oracle HCM Presentation 2020Oracle HCM Presentation 2020
Oracle HCM Presentation 2020
Feras Ahmad
 
Oracle Fusion HCM vs E-Business Suite HRMS
Oracle Fusion HCM vs E-Business Suite HRMSOracle Fusion HCM vs E-Business Suite HRMS
Oracle Fusion HCM vs E-Business Suite HRMS
Feras Ahmad
 
2020 06-11 goverment KSA Summary VAT increase
2020 06-11 goverment KSA Summary VAT increase2020 06-11 goverment KSA Summary VAT increase
2020 06-11 goverment KSA Summary VAT increase
Feras Ahmad
 
Financial reporting compliance cloud service presentation
Financial reporting compliance cloud service presentationFinancial reporting compliance cloud service presentation
Financial reporting compliance cloud service presentation
Feras Ahmad
 
Absence Work flow query
Absence Work flow queryAbsence Work flow query
Absence Work flow query
Feras Ahmad
 
Setting up audits and audit reports Fusion Cloud
Setting up audits and audit reports Fusion Cloud Setting up audits and audit reports Fusion Cloud
Setting up audits and audit reports Fusion Cloud
Feras Ahmad
 
Oracle EBS R12 Payroll user manual
Oracle EBS R12 Payroll user manualOracle EBS R12 Payroll user manual
Oracle EBS R12 Payroll user manual
Feras Ahmad
 
Oracle EBS R12 Self service user manual
Oracle EBS R12 Self service user manualOracle EBS R12 Self service user manual
Oracle EBS R12 Self service user manual
Feras Ahmad
 
Oracle EBS R 12 Core hr user manual
Oracle EBS R 12 Core hr user manualOracle EBS R 12 Core hr user manual
Oracle EBS R 12 Core hr user manual
Feras Ahmad
 
Oracle Fusion HCM Presentation
Oracle Fusion HCM PresentationOracle Fusion HCM Presentation
Oracle Fusion HCM Presentation
Feras Ahmad
 
Oracle HRMS Accrual plan Setup
Oracle HRMS Accrual plan SetupOracle HRMS Accrual plan Setup
Oracle HRMS Accrual plan Setup
Feras Ahmad
 
Oracle Fusion HCM Presentation
Oracle Fusion HCM PresentationOracle Fusion HCM Presentation
Oracle Fusion HCM Presentation
Feras Ahmad
 
Best practices for fusion hcm cloud implementation
Best practices for fusion hcm cloud implementationBest practices for fusion hcm cloud implementation
Best practices for fusion hcm cloud implementation
Feras Ahmad
 
Oracle Fusion HCM Payroll Process Flow.pdf
Oracle Fusion HCM Payroll Process Flow.pdfOracle Fusion HCM Payroll Process Flow.pdf
Oracle Fusion HCM Payroll Process Flow.pdf
Feras Ahmad
 
Configure Flexfield Parameters in Value Sets for Document Records.docx
Configure Flexfield Parameters in Value Sets for Document Records.docxConfigure Flexfield Parameters in Value Sets for Document Records.docx
Configure Flexfield Parameters in Value Sets for Document Records.docx
Feras Ahmad
 
Building-Materials
Building-MaterialsBuilding-Materials
Building-Materials
Feras Ahmad
 
Oracle Fusion Cloud sensitive data access audit
 Oracle Fusion Cloud sensitive data access audit Oracle Fusion Cloud sensitive data access audit
Oracle Fusion Cloud sensitive data access audit
Feras Ahmad
 
Oracle HCM Presentation 2020
Oracle HCM Presentation 2020Oracle HCM Presentation 2020
Oracle HCM Presentation 2020
Feras Ahmad
 
Oracle Fusion HCM vs E-Business Suite HRMS
Oracle Fusion HCM vs E-Business Suite HRMSOracle Fusion HCM vs E-Business Suite HRMS
Oracle Fusion HCM vs E-Business Suite HRMS
Feras Ahmad
 
2020 06-11 goverment KSA Summary VAT increase
2020 06-11 goverment KSA Summary VAT increase2020 06-11 goverment KSA Summary VAT increase
2020 06-11 goverment KSA Summary VAT increase
Feras Ahmad
 
Financial reporting compliance cloud service presentation
Financial reporting compliance cloud service presentationFinancial reporting compliance cloud service presentation
Financial reporting compliance cloud service presentation
Feras Ahmad
 
Absence Work flow query
Absence Work flow queryAbsence Work flow query
Absence Work flow query
Feras Ahmad
 
Setting up audits and audit reports Fusion Cloud
Setting up audits and audit reports Fusion Cloud Setting up audits and audit reports Fusion Cloud
Setting up audits and audit reports Fusion Cloud
Feras Ahmad
 
Oracle EBS R12 Payroll user manual
Oracle EBS R12 Payroll user manualOracle EBS R12 Payroll user manual
Oracle EBS R12 Payroll user manual
Feras Ahmad
 
Oracle EBS R12 Self service user manual
Oracle EBS R12 Self service user manualOracle EBS R12 Self service user manual
Oracle EBS R12 Self service user manual
Feras Ahmad
 
Oracle EBS R 12 Core hr user manual
Oracle EBS R 12 Core hr user manualOracle EBS R 12 Core hr user manual
Oracle EBS R 12 Core hr user manual
Feras Ahmad
 
Oracle Fusion HCM Presentation
Oracle Fusion HCM PresentationOracle Fusion HCM Presentation
Oracle Fusion HCM Presentation
Feras Ahmad
 
Oracle HRMS Accrual plan Setup
Oracle HRMS Accrual plan SetupOracle HRMS Accrual plan Setup
Oracle HRMS Accrual plan Setup
Feras Ahmad
 
Oracle Fusion HCM Presentation
Oracle Fusion HCM PresentationOracle Fusion HCM Presentation
Oracle Fusion HCM Presentation
Feras Ahmad
 
Best practices for fusion hcm cloud implementation
Best practices for fusion hcm cloud implementationBest practices for fusion hcm cloud implementation
Best practices for fusion hcm cloud implementation
Feras Ahmad
 
Ad

Recently uploaded (20)

Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
"Client Partnership — the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership — the Path to Exponential Growth for Companies Sized 50-5..."Client Partnership — the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership — the Path to Exponential Growth for Companies Sized 50-5...
Fwdays
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
Network Security. Different aspects of Network Security.
Network Security. Different aspects of Network Security.Network Security. Different aspects of Network Security.
Network Security. Different aspects of Network Security.
gregtap1
 
Salesforce AI Associate 2 of 2 Certification.docx
Salesforce AI Associate 2 of 2 Certification.docxSalesforce AI Associate 2 of 2 Certification.docx
Salesforce AI Associate 2 of 2 Certification.docx
José Enrique López Rivera
 
Hands On: Create a Lightning Aura Component with force:RecordData
Hands On: Create a Lightning Aura Component with force:RecordDataHands On: Create a Lightning Aura Component with force:RecordData
Hands On: Create a Lightning Aura Component with force:RecordData
Lynda Kane
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
Asthma presentación en inglés abril 2025 pdf
Asthma presentación en inglés abril 2025 pdfAsthma presentación en inglés abril 2025 pdf
Asthma presentación en inglés abril 2025 pdf
VanessaRaudez
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
"Client Partnership — the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership — the Path to Exponential Growth for Companies Sized 50-5..."Client Partnership — the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership — the Path to Exponential Growth for Companies Sized 50-5...
Fwdays
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
Network Security. Different aspects of Network Security.
Network Security. Different aspects of Network Security.Network Security. Different aspects of Network Security.
Network Security. Different aspects of Network Security.
gregtap1
 
Salesforce AI Associate 2 of 2 Certification.docx
Salesforce AI Associate 2 of 2 Certification.docxSalesforce AI Associate 2 of 2 Certification.docx
Salesforce AI Associate 2 of 2 Certification.docx
José Enrique López Rivera
 
Hands On: Create a Lightning Aura Component with force:RecordData
Hands On: Create a Lightning Aura Component with force:RecordDataHands On: Create a Lightning Aura Component with force:RecordData
Hands On: Create a Lightning Aura Component with force:RecordData
Lynda Kane
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
Asthma presentación en inglés abril 2025 pdf
Asthma presentación en inglés abril 2025 pdfAsthma presentación en inglés abril 2025 pdf
Asthma presentación en inglés abril 2025 pdf
VanessaRaudez
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Ad

Query to get the geography information using bi report

  • 1. Query to get the Geography Information using BI Report Countries: SELECT TERRITORY_CODE ,TERRITORY_SHORT_NAME ,CURRENCY_CODE ,DESCRIPTION FROM FND_TERRITORIES_VL WHERE OBSOLETE_FLAG = 'N' ORDER BY TERRITORY_SHORT_NAME ,TERRITORY_CODE States: SELECT hzgiv.identifier_value FROM hz_geographieshzg ,hz_geography_identifiershzgi ,hz_geography_identifiers_vl hzgiv WHERE hzg.country_code = 'US' AND hzg.geography_use = 'MASTER_REF' AND hzg.geography_type = 'STATE' AND hzg.geography_element1= 'UnitedStates' AND hzg.geography_id= hzgi.geography_id AND hzgi.identifier_subtype='GEO_CODE' AND hzgi.identifier_type ='CODE' AND hzgi.primary_flag = 'N' AND hzgi.geography_use = 'MASTER_REF' AND hzgi.language_code = 'US' AND hzgi.geography_id= hzgiv.geography_id AND hzgiv.geography_use = 'MASTER_REF'
  • 2. AND hzgiv.identifier_type ='NAME' AND hzgiv.identifier_subtype='STANDARD_NAME' AND hzgiv.language_code = 'US' AND hzgiv.primary_flag = 'Y' Counties: SELECT hzgiv.identifier_value FROM hz_geographieshzg ,hz_geography_identifiershzgi ,hz_geography_identifiers_vl hzgiv WHERE hzg.country_code = 'US' AND hzg.geography_use = 'MASTER_REF' AND hzg.geography_type = 'COUNTY' AND hzg.geography_element1= 'UnitedStates' AND hzg.geography_id= hzgi.geography_id AND hzgi.identifier_subtype='GEO_CODE' AND hzgi.identifier_type ='CODE' AND hzgi.primary_flag = 'Y' AND hzgi.geography_use = 'MASTER_REF' AND hzgi.language_code = 'US' AND hzgi.geography_id= hzgiv.geography_id AND hzgiv.geography_use = 'MASTER_REF' AND hzgiv.identifier_type ='NAME' AND hzgiv.identifier_subtype='STANDARD_NAME' AND hzgiv.language_code = 'US' AND hzgiv.primary_flag = 'Y' AND substr(hzgi.identifier_value,1,2) = : $FLEX$.STATE Cities:
  • 3. SELECT initcap(hzgiv.identifier_value) FROM hz_geographieshzg ,hz_geography_identifiershzgi ,hz_geography_identifiers_vl hzgiv WHERE hzg.country_code = 'US' AND hzg.geography_use = 'MASTER_REF' AND hzg.geography_type = 'CITY' AND hzg.geography_element1= 'UnitedStates' AND hzg.geography_id= hzgi.geography_id AND hzgi.identifier_subtype='GEO_CODE' AND hzgi.identifier_type ='CODE' AND hzgi.primary_flag = 'Y' AND hzgi.geography_use = 'MASTER_REF' AND hzgi.language_code = 'US' AND hzgi.geography_id= hzgiv.geography_id AND hzgiv.identifier_type ='NAME' AND hzgiv.identifier_subtype='STANDARD_NAME' AND hzgiv.language_code = 'US' AND hzgiv.primary_flag = 'Y' AND hzgiv.geography_use = 'MASTER_REF' AND substr(hzgi.identifier_value,1,2) = : $FLEX$.STATE AND substr(hzgi.identifier_value,4,3) = : $FLEX$.County Zip: SELECT hzgpc.geography_name FROM hz_geographieshzg ,hz_geography_identifiershzgi ,hz_geography_identifiers_vl hzgiv ,hz_geographieshzgpc
  • 4. WHERE hzg.country_code = 'US' AND hzg.geography_use = 'MASTER_REF' AND hzg.geography_type = 'CITY' AND hzg.geography_element1= 'UnitedStates' AND hzg.geography_id= hzgi.geography_id AND hzgi.identifier_subtype='GEO_CODE' AND hzgi.identifier_type ='CODE' AND hzgi.primary_flag = 'Y' AND hzgi.geography_use = 'MASTER_REF' AND hzgi.language_code = 'US' AND hzgi.geography_id= hzgiv.geography_id AND hzgiv.identifier_type ='NAME' AND hzgiv.identifier_subtype='STANDARD_NAME' AND hzgiv.language_code = 'US' AND hzgiv.primary_flag = 'Y' AND hzgiv.geography_use = 'MASTER_REF' AND hzgpc.country_code = 'US' AND hzgpc.geography_use = 'MASTER_REF' AND hzgpc.geography_type = 'POSTAL_CODE' AND hzgpc.geography_element1= hzg.geography_element1 AND hzgpc.geography_element2= hzg.geography_element2 AND hzgpc.geography_element3= hzg.geography_element3 AND hzgpc.geography_element4= hzg.geography_element4 AND hzgpc.geography_name IS NOT NULL AND substr(hzgi.identifier_value,1,2) = : $FLEX$.STATE AND substr(hzgi.identifier_value,4,3) = : $FLEX$.County AND substr(hzgi.identifier_value,8,4) = : $FLEX$.City Hope thishelps.Stay tunedfor more updates.