James Colby Maddox Business Intellignece and Computer Science Portfoliocolbydaman
This portfolio covers the business intelligence course work I have completed at Set Focus, and some of the course work I have completed at Kennesaw State University
Comparing 30 Elastic Search operations with Oracle SQL statementsLucas Jellema
Create index and mappings, update documents, do geospatial searches, advanced aggregations, filter and match, facets with Elastic Search
Comparing ElasticSearch actions with counterpart operations in Oracle Database (SQL, PL/SQL, Text index, Locator)
Download sources from GitHub: https://github.com/lucasjellema/sig-elasticsearch-february-2018
Data Exploration with Apache Drill: Day 2Charles Givre
Study after study shows that data scientists and analysts spend between 50% and 90% of their time preparing their data for analysis. Using Drill, you can dramatically reduce the time it takes to go from raw data to insight. This course will show you how.
The course material for this presentation are available at https://github.com/cgivre/data-exploration-with-apache-drill
Enhancing Research Orchestration Capabilities at ORNL.pdfGlobus
Cross-facility research orchestration comes with ever-changing constraints regarding the availability and suitability of various compute and data resources. In short, a flexible data and processing fabric is needed to enable the dynamic redirection of data and compute tasks throughout the lifecycle of an experiment. In this talk, we illustrate how we easily leveraged Globus services to instrument the ACE research testbed at the Oak Ridge Leadership Computing Facility with flexible data and task orchestration capabilities.
Strategies for Successful Data Migration Tools.pptxvarshanayak241
Data migration is a complex but essential task for organizations aiming to modernize their IT infrastructure and leverage new technologies. By understanding common challenges and implementing these strategies, businesses can achieve a successful migration with minimal disruption. Data Migration Tool like Ask On Data play a pivotal role in this journey, offering features that streamline the process, ensure data integrity, and maintain security. With the right approach and tools, organizations can turn the challenge of data migration into an opportunity for growth and innovation.
More Related Content
Similar to 08_SQL OLAP DBMS DB2 GROUP BY CUBE ROLL UP .pptx
James Colby Maddox Business Intellignece and Computer Science Portfoliocolbydaman
This portfolio covers the business intelligence course work I have completed at Set Focus, and some of the course work I have completed at Kennesaw State University
Comparing 30 Elastic Search operations with Oracle SQL statementsLucas Jellema
Create index and mappings, update documents, do geospatial searches, advanced aggregations, filter and match, facets with Elastic Search
Comparing ElasticSearch actions with counterpart operations in Oracle Database (SQL, PL/SQL, Text index, Locator)
Download sources from GitHub: https://github.com/lucasjellema/sig-elasticsearch-february-2018
Data Exploration with Apache Drill: Day 2Charles Givre
Study after study shows that data scientists and analysts spend between 50% and 90% of their time preparing their data for analysis. Using Drill, you can dramatically reduce the time it takes to go from raw data to insight. This course will show you how.
The course material for this presentation are available at https://github.com/cgivre/data-exploration-with-apache-drill
Enhancing Research Orchestration Capabilities at ORNL.pdfGlobus
Cross-facility research orchestration comes with ever-changing constraints regarding the availability and suitability of various compute and data resources. In short, a flexible data and processing fabric is needed to enable the dynamic redirection of data and compute tasks throughout the lifecycle of an experiment. In this talk, we illustrate how we easily leveraged Globus services to instrument the ACE research testbed at the Oak Ridge Leadership Computing Facility with flexible data and task orchestration capabilities.
Strategies for Successful Data Migration Tools.pptxvarshanayak241
Data migration is a complex but essential task for organizations aiming to modernize their IT infrastructure and leverage new technologies. By understanding common challenges and implementing these strategies, businesses can achieve a successful migration with minimal disruption. Data Migration Tool like Ask On Data play a pivotal role in this journey, offering features that streamline the process, ensure data integrity, and maintain security. With the right approach and tools, organizations can turn the challenge of data migration into an opportunity for growth and innovation.
Large Language Models and the End of ProgrammingMatt Welsh
Talk by Matt Welsh at Craft Conference 2024 on the impact that Large Language Models will have on the future of software development. In this talk, I discuss the ways in which LLMs will impact the software industry, from replacing human software developers with AI, to replacing conventional software with models that perform reasoning, computation, and problem-solving.
Unleash Unlimited Potential with One-Time Purchase
BoxLang is more than just a language; it's a community. By choosing a Visionary License, you're not just investing in your success, you're actively contributing to the ongoing development and support of BoxLang.
top nidhi software solution freedownloadvrstrong314
This presentation emphasizes the importance of data security and legal compliance for Nidhi companies in India. It highlights how online Nidhi software solutions, like Vector Nidhi Software, offer advanced features tailored to these needs. Key aspects include encryption, access controls, and audit trails to ensure data security. The software complies with regulatory guidelines from the MCA and RBI and adheres to Nidhi Rules, 2014. With customizable, user-friendly interfaces and real-time features, these Nidhi software solutions enhance efficiency, support growth, and provide exceptional member services. The presentation concludes with contact information for further inquiries.
Into the Box Keynote Day 2: Unveiling amazing updates and announcements for modern CFML developers! Get ready for exciting releases and updates on Ortus tools and products. Stay tuned for cutting-edge innovations designed to boost your productivity.
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar
The European Union Agency for Law Enforcement Cooperation (Europol) has suffered an alleged data breach after a notorious threat actor claimed to have exfiltrated data from its systems. Infamous data leaker IntelBroker posted on the even more infamous BreachForums hacking forum, saying that Europol suffered a data breach this month.
The alleged breach affected Europol agencies CCSE, EC3, Europol Platform for Experts, Law Enforcement Forum, and SIRIUS. Infiltration of these entities can disrupt ongoing investigations and compromise sensitive intelligence shared among international law enforcement agencies.
However, this is neither the first nor the last activity of IntekBroker. We have compiled for you what happened in the last few days. To track such hacker activities on dark web sources like hacker forums, private Telegram channels, and other hidden platforms where cyber threats often originate, you can check SOCRadar’s Dark Web News.
Stay Informed on Threat Actors’ Activity on the Dark Web with SOCRadar!
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?XfilesPro
Worried about document security while sharing them in Salesforce? Fret no more! Here are the top-notch security standards XfilesPro upholds to ensure strong security for your Salesforce documents while sharing with internal or external people.
To learn more, read the blog: https://www.xfilespro.com/how-does-xfilespro-make-document-sharing-secure-and-seamless-in-salesforce/
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisGlobus
JASMIN is the UK’s high-performance data analysis platform for environmental science, operated by STFC on behalf of the UK Natural Environment Research Council (NERC). In addition to its role in hosting the CEDA Archive (NERC’s long-term repository for climate, atmospheric science & Earth observation data in the UK), JASMIN provides a collaborative platform to a community of around 2,000 scientists in the UK and beyond, providing nearly 400 environmental science projects with working space, compute resources and tools to facilitate their work. High-performance data transfer into and out of JASMIN has always been a key feature, with many scientists bringing model outputs from supercomputers elsewhere in the UK, to analyse against observational or other model data in the CEDA Archive. A growing number of JASMIN users are now realising the benefits of using the Globus service to provide reliable and efficient data movement and other tasks in this and other contexts. Further use cases involve long-distance (intercontinental) transfers to and from JASMIN, and collecting results from a mobile atmospheric radar system, pushing data to JASMIN via a lightweight Globus deployment. We provide details of how Globus fits into our current infrastructure, our experience of the recent migration to GCSv5.4, and of our interest in developing use of the wider ecosystem of Globus services for the benefit of our user community.
Top 7 Unique WhatsApp API Benefits | Saudi ArabiaYara Milbes
Discover the transformative power of the WhatsApp API in our latest SlideShare presentation, "Top 7 Unique WhatsApp API Benefits." In today's fast-paced digital era, effective communication is crucial for both personal and professional success. Whether you're a small business looking to enhance customer interactions or an individual seeking seamless communication with loved ones, the WhatsApp API offers robust capabilities that can significantly elevate your experience.
In this presentation, we delve into the top 7 distinctive benefits of the WhatsApp API, provided by the leading WhatsApp API service provider in Saudi Arabia. Learn how to streamline customer support, automate notifications, leverage rich media messaging, run scalable marketing campaigns, integrate secure payments, synchronize with CRM systems, and ensure enhanced security and privacy.
We describe the deployment and use of Globus Compute for remote computation. This content is aimed at researchers who wish to compute on remote resources using a unified programming interface, as well as system administrators who will deploy and operate Globus Compute services on their research computing infrastructure.
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Anthony Dahanne
Les Buildpacks existent depuis plus de 10 ans ! D’abord, ils étaient utilisés pour détecter et construire une application avant de la déployer sur certains PaaS. Ensuite, nous avons pu créer des images Docker (OCI) avec leur dernière génération, les Cloud Native Buildpacks (CNCF en incubation). Sont-ils une bonne alternative au Dockerfile ? Que sont les buildpacks Paketo ? Quelles communautés les soutiennent et comment ?
Venez le découvrir lors de cette session ignite
Check out the webinar slides to learn more about how XfilesPro transforms Salesforce document management by leveraging its world-class applications. For more details, please connect with sales@xfilespro.com
If you want to watch the on-demand webinar, please click here: https://www.xfilespro.com/webinars/salesforce-document-management-2-0-smarter-faster-better/
In software engineering, the right architecture is essential for robust, scalable platforms. Wix has undergone a pivotal shift from event sourcing to a CRUD-based model for its microservices. This talk will chart the course of this pivotal journey.
Event sourcing, which records state changes as immutable events, provided robust auditing and "time travel" debugging for Wix Stores' microservices. Despite its benefits, the complexity it introduced in state management slowed development. Wix responded by adopting a simpler, unified CRUD model. This talk will explore the challenges of event sourcing and the advantages of Wix's new "CRUD on steroids" approach, which streamlines API integration and domain event management while preserving data integrity and system resilience.
Participants will gain valuable insights into Wix's strategies for ensuring atomicity in database updates and event production, as well as caching, materialization, and performance optimization techniques within a distributed system.
Join us to discover how Wix has mastered the art of balancing simplicity and extensibility, and learn how the re-adoption of the modest CRUD has turbocharged their development velocity, resilience, and scalability in a high-growth environment.
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Globus
The Earth System Grid Federation (ESGF) is a global network of data servers that archives and distributes the planet’s largest collection of Earth system model output for thousands of climate and environmental scientists worldwide. Many of these petabyte-scale data archives are located in proximity to large high-performance computing (HPC) or cloud computing resources, but the primary workflow for data users consists of transferring data, and applying computations on a different system. As a part of the ESGF 2.0 US project (funded by the United States Department of Energy Office of Science), we developed pre-defined data workflows, which can be run on-demand, capable of applying many data reduction and data analysis to the large ESGF data archives, transferring only the resultant analysis (ex. visualizations, smaller data files). In this talk, we will showcase a few of these workflows, highlighting how Globus Flows can be used for petabyte-scale climate analysis.
Software Engineering, Software Consulting, Tech Lead.
Spring Boot, Spring Cloud, Spring Core, Spring JDBC, Spring Security,
Spring Transaction, Spring MVC,
Log4j, REST/SOAP WEB-SERVICES.
Advanced Flow Concepts Every Developer Should KnowPeter Caitens
Tim Combridge from Sensible Giraffe and Salesforce Ben presents some important tips that all developers should know when dealing with Flows in Salesforce.
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns
Unlocking Business Potential: Tailored Technology Solutions by Prosigns
Discover how Prosigns, a leading technology solutions provider, partners with businesses to drive innovation and success. Our presentation showcases our comprehensive range of services, including custom software development, web and mobile app development, AI & ML solutions, blockchain integration, DevOps services, and Microsoft Dynamics 365 support.
Custom Software Development: Prosigns specializes in creating bespoke software solutions that cater to your unique business needs. Our team of experts works closely with you to understand your requirements and deliver tailor-made software that enhances efficiency and drives growth.
Web and Mobile App Development: From responsive websites to intuitive mobile applications, Prosigns develops cutting-edge solutions that engage users and deliver seamless experiences across devices.
AI & ML Solutions: Harnessing the power of Artificial Intelligence and Machine Learning, Prosigns provides smart solutions that automate processes, provide valuable insights, and drive informed decision-making.
Blockchain Integration: Prosigns offers comprehensive blockchain solutions, including development, integration, and consulting services, enabling businesses to leverage blockchain technology for enhanced security, transparency, and efficiency.
DevOps Services: Prosigns' DevOps services streamline development and operations processes, ensuring faster and more reliable software delivery through automation and continuous integration.
Microsoft Dynamics 365 Support: Prosigns provides comprehensive support and maintenance services for Microsoft Dynamics 365, ensuring your system is always up-to-date, secure, and running smoothly.
Learn how our collaborative approach and dedication to excellence help businesses achieve their goals and stay ahead in today's digital landscape. From concept to deployment, Prosigns is your trusted partner for transforming ideas into reality and unlocking the full potential of your business.
Join us on a journey of innovation and growth. Let's partner for success with Prosigns.
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
08_SQL OLAP DBMS DB2 GROUP BY CUBE ROLL UP .pptx
1. SQL OLAP
ON LINE ANALYTICAL PROCESSING
THINK: BUILDING AND DELIVERING INFORMATION VIA SQL
2. SQL OLAP FUNCTIONS
• RANK : MEMBERI RANKING PADA SETIAP BARIS BERDASARKAN URUTAN
TERTENTU
• DENSE_RANK: MEMBERI RANKING PADA PARTISI TERTENTU (DENSE:
RINGKAS, PADAT)
• ROW_NUMBER: MEMBERI NOMOR BARIS BERDASARKAN SATU ATAU LEBIH
KOLOM
• ROLLUP
• CUBE
• GROUPING SETS
• GROUPING
3. DATABASE FUNDAMENTALS > SQL >
LANGUAGE ELEMENTS > EXPRESSIONS >
OLAP SPECIFICATION
• ON-LINE ANALYTICAL PROCESSING (OLAP) FUNCTIONS PROVIDE THE ABILITY
TO:
• RETURN RANKING {RANK, DENSE_RANK}
• ROW NUMBERING {ROW_NUMBER}
• EXISTING AGGREGATE FUNCTION INFORMATION
AS A SCALAR VALUE IN A QUERY RESULT.
6. SELECT EMPNO, LASTNAME, FIRSTNME, SALARY+BONUS AS TOTAL_SALARY,
RANK() OVER (ORDER BY SALARY+BONUS DESC) AS RANK_SALARY
FROM EMPLOYEE WHERE SALARY+BONUS > 50000
ORDER BY LASTNAME;
PRIORITAS PERTAMA DIURUTKAN BY LASTNAME
DEFAULT PENGURUTAN ADALAH ASCENDING.
DESC BOTTOM UP DARI Z KE A, DARI BESAR KE KECIL
ASC TOP-DOWN DARI A KE Z, DARI KECIL KE BESAR
7. SELECT EMPNO, LASTNAME, FIRSTNME, SALARY+BONUS AS TOTAL_SALARY,
RANK() OVER (ORDER BY SALARY+BONUS DESC) AS RANK_SALARY
FROM EMPLOYEE WHERE SALARY+BONUS > 50000;
PRIORITAS PERTAMA DIURUTKAN BERDASARKAN RANK_SALARY
DESC DARI BESAR KE KECIL.
SELECT EMPNO, LASTNAME, FIRSTNME, SALARY+BONUS AS TOTAL_SALARY,
RANK() OVER (ORDER BY SALARY+BONUS DESC) AS RANK_SALARY
FROM EMPLOYEE WHERE SALARY+BONUS > 50000
ORDER BY SALARY+BONUS DESC;
SELECT EMPNO, LASTNAME, FIRSTNME, SALARY+BONUS AS
TOTAL_SALARY,
RANK() OVER (ORDER BY SALARY+BONUS DESC) AS
RANK_SALARY
FROM EMPLOYEE WHERE SALARY+BONUS > 50000
8. SELECT EMPNO, LASTNAME, FIRSTNME, SALARY+BONUS AS TOTAL_SALARY,
RANK() OVER (ORDER BY SALARY+BONUS DESC) AS RANK_SALARY
FROM EMPLOYEE JOIN DEPARTEMENT ON EMPLOYEE. WORKDEPT =
DEPARTEMENT.DEPTNO
WHERE SALARY+BONUS > 50000
ORDER BY RANK_SALARY;
SELECT EMPNO, LASTNAME, FIRSTNME, SALARY+BONUS AS TOTAL_SALARY,
RANK() OVER (ORDER BY SALARY+BONUS DESC) AS RANK_SALARY
FROM EMPLOYEE WHERE SALARY+BONUS > 50000
ORDER BY RANK() OVER (ORDER BY SALARY+BONUS DESC) ;
9. SELECT EMPNO, LASTNAME, FIRSTNME, SALARY+BONUS AS TOTAL_SALARY,
RANK() OVER (ORDER BY LASTNAME) AS RANK_LASTNAME
FROM EMPLOYEE WHERE SALARY+BONUS > 50000
ORDER BY RANK_LASTNAME;
BY DEFAULT ASCENDING (ASC: DARI A KE Z)
PRIORITAS PERTAMA DIURUTKAN BERDASARKAN LASTNAME MENGGUNAKAN
FUNGSI RANK().
10. Query untuk mencari rangking dari rata-rata total_salary (salary ditambah bonus) per
departemen.
Tampilkan kolom workdept, rata-rata total_salary, dan rankingnya.
SELECT WORKDEPT, AVG(SALARY+BONUS) AS AVG_TOTAL_SALARY,
RANK() OVER (ORDER BY AVG(SALARY+BONUS) DESC) AS RANK_AVG_SAL
FROM EMPLOYEE
GROUP BY WORKDEPT
ORDER BY RANK_AVG_SAL;
12. Beri ranking pada setiap kelompok departement (WORKDEPT) berdasarkan EDLEVEL tertinggi.
Urutkan berdasarkan WORKDEPT.
SELECT EMPNO, LASTNAME, WORKDEPT, EDLEVEL,
DENSE_RANK() OVER (PARTITION BY WORKDEPT ORDER BY EDLEVEL DESC) AS
RANK_EDLEVEL
FROM EMPLOYEE
ORDER BY WORKDEPT;
13. Beri ranking pada setiap kelompok departement (WORKDEPT) berdasarkan EDLEVEL tertinggi.
Urutkan berdasarkan LASTNAME.
SELECT EMPNO, LASTNAME, WORKDEPT, EDLEVEL,
DENSE_RANK() OVER (PARTITION BY WORKDEPT ORDER BY EDLEVEL DESC) AS
RANK_EDLEVEL
FROM EMPLOYEE
ORDER BY LASTNAME;
14. Beri ranking pada setiap kelompok departement (WORKDEPT) berdasarkan EDLEVEL tertinggi.
Urutkan berdasarkan WORKDEPT dan LASTNAME.
SELECT EMPNO, LASTNAME, WORKDEPT, EDLEVEL,
DENSE_RANK() OVER (PARTITION BY WORKDEPT ORDER BY EDLEVEL DESC) AS
RANK_EDLEVEL
FROM EMPLOYEE
ORDER BY WORKDEPT, LASTNAME;
15. CONTOH:
Mencari 5 ranking total salary (salary+bonus) tertinggi.
SELECT EMPNO, LASTNAME, FIRSTNME, TOTAL_SALARY, RANK_SALARY
FROM
(SELECT EMPNO, LASTNAME, FIRSTNME, SALARY+BONUS AS
TOTAL_SALARY,
RANK() OVER (ORDER BY SALARY+BONUS DESC) AS RANK_SALARY
FROM EMPLOYEE) AS RANKED_EMPLOYEE
WHERE RANK_SALARY < 6
ORDER BY RANK_SALARY;
16. SELECT EMPNO, LASTNAME, FIRSTNME, SALARY+BONUS AS TOTAL_SALARY,
RANK() OVER (ORDER BY SALARY+BONUS DESC) AS RANK_SALARY
FROM EMPLOYEE
WHERE (SALARY + BONUS) > 90000;
SELECT EMPNO, LASTNAME, FIRSTNME, SALARY+BONUS AS TOTAL_SALARY,
RANK() OVER (ORDER BY SALARY+BONUS DESC) AS RANK_SALARY
FROM EMPLOYEE
WHERE TOTAL_SALARY > 90000;
SELECT EMPNO, LASTNAME, FIRSTNME, SALARY+BONUS AS TOTAL_SALARY,
RANK() OVER (ORDER BY SALARY+BONUS DESC) AS RANK_SALARY
FROM EMPLOYEE
WHERE RANK_SALARY > 6;
"TOTAL_SALARY
" is not valid in
the context where
it is used..
SQLCODE=-206,
SQLSTATE=42703
, DRIVER=4.18.60
18. SELECT EMPNO, WORKDEPT, JOB, SALARY,
LEAD(SALARY, 0) OVER (PARTITION BY WORKDEPT ORDER BY SALARY) AS
L_SALARY
FROM EMPLOYEE
ORDER BY WORKDEPT, SALARY;
SELECT EMPNO, WORKDEPT, JOB, SALARY,
LEAD(SALARY, 1) OVER (PARTITION BY WORKDEPT ORDER BY SALARY) AS
L_SALARY
FROM EMPLOYEE
ORDER BY WORKDEPT, SALARY;
SELECT EMPNO, WORKDEPT, JOB, SALARY,
LEAD(SALARY, 2) OVER (PARTITION BY WORKDEPT ORDER BY SALARY) AS
L_SALARY
FROM EMPLOYEE
20. SELECT EMPNO, WORKDEPT, LASTNAME, FIRSTNME, JOB, SALARY,
LEAD(SALARY, 1) OVER
(PARTITION BY WORKDEPT ORDER BY SALARY) - SALARY AS
DELTA_SALARY
FROM EMPLOYEE
ORDER BY WORKDEPT, SALARY;
21. SELECT EMPNO, WORKDEPT, JOB, SALARY,
FIRST_VALUE(SALARY) OVER (PARTITION BY WORKDEPT ORDER BY SALARY) AS
L_SALARY
FROM EMPLOYEE
ORDER BY WORKDEPT, SALARY;
22. SELECT JOB, HIREDATE, EMPNO, LASTNAME, FIRSTNME, SALARY,
FIRST_VALUE(SALARY) OVER (PARTITION BY JOB ORDER BY HIREDATE) AS
FIRST_SALARY,
SALARY - FIRST_VALUE(SALARY) OVER (PARTITION BY JOB ORDER BY HIREDATE) AS
DELTA_SALARY
FROM EMPLOYEE
ORDER BY JOB, HIREDATE;
24. Memberi nomor pada setiap baris berdasarkan urutan ascending WORKDEPT dan
LASTNAME.
SELECT ROW_NUMBER() OVER (ORDER BY WORKDEPT, LASTNAME) AS NUMBER,
LASTNAME, WORKDEPT, SALARY
FROM EMPLOYEE
ORDER BY WORKDEPT, LASTNAME;
28. WHAT’S THE DIFFERENT ?
SELECT WORKDEPT, JOB, SUM(SALARY)
FROM EMPLOYEE
GROUP BY ROLLUP (WORKDEPT,JOB)
ORDER BY WORKDEPT;
SELECT WORKDEPT, JOB, SUM(SALARY)
FROM EMPLOYEE
GROUP BY (WORKDEPT,JOB)
ORDER BY WORKDEPT;
SELECT WORKDEPT, JOB, SUM(SALARY)
FROM EMPLOYEE
GROUP BY CUBE (WORKDEPT,JOB)
ORDER BY WORKDEPT;
SELECT WORKDEPT, JOB, SUM(SALARY)
FROM EMPLOYEE
GROUP BY GROUPING SETS (WORKDEPT, JOB)
ORDER BY WORKDEPT;
29. WHAT’S THE DIFFERENT ?
SELECT WORKDEPT, JOB, SUM(SALARY)
FROM EMPLOYEE
GROUP BY ROLLUP(WORKDEPT,JOB)
ORDER BY WORKDEPT;
30. WHAT’S THE DIFFERENT ?
SELECT WORKDEPT, JOB, SUM(SALARY)
FROM EMPLOYEE
GROUP BY (WORKDEPT, JOB)
ORDER BY WORKDEPT;
31. WHAT’S THE DIFFERENT ?
SELECT WORKDEPT, JOB, SUM(SALARY)
FROM EMPLOYEE
GROUP BY CUBE(WORKDEPT, JOB)
ORDER BY WORKDEPT;
32. WHAT’S THE DIFFERENT ?
SELECT WORKDEPT, JOB, SUM(SALARY)
FROM EMPLOYEE
GROUP BY GROUPING SETS(WORKDEPT, JOB)
ORDER BY WORKDEPT;
39. • SELECT * FROM SALES; --41 RECORD
• SELECT REGION, SALES_DATE, SUM(SALES) AS HASIL_PENJUALAN
• FROM SALES
• GROUP BY REGION, SALES_DATE;
• SELECT REGION, SALES_DATE, SUM(SALES) AS HASIL_PENJUALAN
• FROM SALES
• GROUP BY ROLLUP(REGION,SALES_DATE);
• SELECT REGION, SALES_DATE, SUM(SALES) AS HASIL_PENJUALAN
• FROM SALES
• GROUP BY ROLLUP(SALES_DATE,REGION);
• SELECT REGION, SALES_DATE, SUM(SALES) AS HASIL_PENJUALAN
• FROM SALES
• GROUP BY CUBE(REGION,SALES_DATE);