PIVOT allows you to "flip a table on its side", i.e. Columns to Rows / Rows to Columns. Previously we did this with DECODE or CASE. As of Oracle 11g, Oracle Database includes the PIVOT clause (and UNPIVOT). Oracle expert Geoff Wiland from SkillBuilders will demonstrate PIVOT, UNPIVOT, including the use of aggregate functions.
Views: 10994 SkillBuilders
This video tutorial talks about the frequently asked oracle sql interview question of changing rows to the column. Based on the given scenario, we are asked to change the presentation of data in a table with 3 rows and 2 column to 3 columns and 2 rows. Decode Function in oracle https://youtu.be/YUAjPMjqMws Pivot and unpivot in oracle https://youtu.be/6s0DI1YcWIM
Views: 16822 Kishan Mashru
This is a video tutorial on using pivot and unpivot operators to change rows to column and columns to rows when needed, the video also demonstrates a way to change from rows to column without using the pivot operator which can be helpful if you are using and older version of oracle or some other database without the feature of pivot and unpivot. Both the operators are explained with an example for better understanding
Views: 7861 Kishan Mashru
This video shows you advanced properties of pivot table in obiee 11g and obiee 12c
Views: 5343 Tutorials for beginners
If you'd like to help fund Wise Owl's conversion of tea and biscuits into quality training videos you can click this link https://www.wiseowl.co.uk/donate?t=1 to make a donation. Thanks for watching! By Andrew Gould https://www.wiseowl.co.uk - The most annoying part of creating a pivot table in Microsoft SQL Server is listing out the column headings for the table. This video explains how to use dynamic SQL so that you no longer have to repeat this laborious task. The video includes a quick recap of basic pivot tables, how to use the QuoteName function to generate a list of column headings, how to build an SQL statement and store it as a string of text and, finally, how to execute the dynamic SQL string. You can download the script to create the Movies database used in this video at the following link: https://www.wiseowl.co.uk/files/execise-question-files/qf-898.zip You can view a written version of this tutorial at: https://www.wiseowl.co.uk/blog/s417/pivoting-sql-data.htm You can see the range of resources and courses we offer in SQL Server here: https://www.wiseowl.co.uk/sql/ Visit www.wiseowl.co.uk for more online training resources in Microsoft Excel, Microsoft Access, Microsoft PowerPoint, Microsoft Word, Microsoft Project, Microsoft Publisher, Microsoft Visio, SQL Server, Reporting Services, Analysis Services, Visual Studio, ASP.NET, VB.NET, C# and more!
Views: 44063 WiseOwlTutorials
In this lecture you will learn about PIVOT operator and using it to generate dynamic columns.PIVOT is very use full operator to convert values into columns. PIVOT: •Convert your output from (values)vertical order to horizontal(making columns) one Topic to cover: •PIVOT example •PIVOT syntax •Interview Question •PIVOT on northwind •Dynamic PIVOT query http://www.techsapphire.in/index/pivot_sql_lesson_with_generating_dynamic_columns_with_pivot/0-158
Views: 30630 techsapphire
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2014/06/part-6-transform-rows-into-columns-in.html This is another common sql server interview question. We will be using Countries table in this example. SQL to create the table Create Table Countries ( Country nvarchar(50), City nvarchar(50) ) GO Insert into Countries values ('USA','New York') Insert into Countries values ('USA','Houston') Insert into Countries values ('USA','Dallas') Insert into Countries values ('India','Hyderabad') Insert into Countries values ('India','Bangalore') Insert into Countries values ('India','New Delhi') Insert into Countries values ('UK','London') Insert into Countries values ('UK','Birmingham') Insert into Countries values ('UK','Manchester') Here is the interview question. Write a sql query to transpose rows to columns. Using PIVOT operator we can very easily transform rows to columns. Select Country, City1, City2, City3 From ( Select Country, City, 'City'+ cast(row_number() over(partition by Country order by Country) as varchar(10)) ColumnSequence from Countries ) Temp pivot ( max(City) for ColumnSequence in (City1, City2, City3) ) Piv
Views: 198822 kudvenkat
This sample is from our OneView Reporting Catalog.
Views: 410 iLearn ERP
Many more free Oracle Database and SQL tutorials at http://skillbuilders.com/free-oracle-tutorials. SQL is a language that allows you to perform queries to answer a wide range of questions about your data. While standard SQL is quite powerful, there are many questions that it cannot answer at all or that it can only answer with complex and inefficient SQL workarounds. Questions about running totals, percent of total, and ranking within a group fall into this area. Also, more complex issues such as Top-N within a group and aggregates over a range also fall in this arena. These questions can be easily answered via a new class of SQL statements called Analytic Functions. This presentation will show you how to use Oracle's Analytic Function extensions to SQL to answer these questions simply and efficiently.
Views: 26325 SkillBuilders
Viewing the contents of each order. Create a report that allows the user to filter for a single Order ID which provides the name of each product ordered, its unit price, its quantity and its extended price. In addition a grand total of all extended prices for the given Order ID should be included at the bottom of the report.
Views: 4494 BYU-Hawaii Learning Channel
In this video we will learn about pivot operator. Pivot is a sql server operator that can be used to turn unique values from one column, into multiple columns in the output, there by effectively rotating a table. Text version of the video http://csharp-video-tutorials.blogspot.com/2012/10/pivot-operator-in-sql-server-part-54.html Slides http://csharp-video-tutorials.blogspot.com/2013/09/part-54-pivot-in-sql-server-2008.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 189819 kudvenkat
Example is using only one table show the difference between Unpivot and Pivot
Views: 342 Sal Amrani
http://www.ReportingGuru.com produced this video. This video shows how to connect a Pivot Table to a database View. Email us at [email protected] if you need help, custom reports, or reporting architecture setup. Our phone number is 1-(800) 921-4759
Views: 654 Reporting Guru
What is pivoting and how to pivot a table in MySQL. #### Watch the video in fullscreen at 720p for better quality ### Check this article by stratos for more explanation on pivoting a table http://stratosprovatopoulos.com/web-development/mysql/pivot-a-table-in-mysql/
Views: 17360 Mahtab alam
This video demonstrated how to change the logic of a given row calculation based on the value in another column. You may run in to a scenerion where you need to implement this when you have a requirement that the rows with one dimension value have logic "X" (for instance Mean) and the the rows with a different dimension value have logic "Y" (for instance a Median) assigned. This is accomplished with the Switch (Case) expression in the OBIEE formula builder.
Views: 8573 Justin W. Steigerwalt
sql server convert columns to rows in a table sql server transpose columns to rows unpivot in sql server example sql server unpivot example In this video we will discuss UNPIVOT operator in SQL Server. PIVOT operator turns ROWS into COLUMNS, where as UNPIVOT turns COLUMNS into ROWS. We dicussed PIVOT operator in Part 54 of SQL Server tutorial. Please watch Part 54 before proceeding. http://csharp-video-tutorials.blogspot.com/2012/10/pivot-operator-in-sql-server-part-54.html Let us understand UNPIVOT with an example. We will use the following tblProductSales table in this demo. SQL Script to create tblProductSales table Create Table tblProductSales ( SalesAgent nvarchar(50), India int, US int, UK int ) Go Insert into tblProductSales values ('David', 960, 520, 360) Insert into tblProductSales values ('John', 970, 540, 800) Go Write a query to turn COLUMNS into ROWS. SELECT SalesAgent, Country, SalesAmount FROM tblProductSales UNPIVOT ( SalesAmount FOR Country IN (India, US ,UK) ) AS UnpivotExample Text version of the video http://csharp-video-tutorials.blogspot.com/2015/10/unpivot-in-sql-server.html Slides http://csharp-video-tutorials.blogspot.com/2015/10/unpivot-in-sql-server_10.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 46826 kudvenkat
This video demonstrates how a function can return multiple values to the calling environment, but without using multiple out parameters, the video shows an example on how we can create a object, a nested table based on the object and then returning the nested table type from the function.
Views: 20311 Kishan Mashru
In this tutorial you learn how to add pivot tables and action links to an analysis in that shows absence data by business unit. The example in this video is from HCM but applies to all applications that use OTBi and OTBI Enterprise including Oracle Financials Cloud, Oracle Project Portfolio Management Cloud, and Oracle Procurement Cloud. Please note that all of the techniques and concepts in this tutorial also apply to OTBI Enterprise although the available subject areas will be different.
Views: 7047 Oracle EPM Tutorials
Check out my Blog: http://exceltraining101.blogspot.com You may be used to using the Pivot Table feature in Excel and there is a similar capability in Power Query. But you may think if it's something I can do in a Pivot Table why would I use it in Power Query. Well...if it something you do on a recurring basis, wouldn't it be nice if it took fewer clicks to do this? That's where Power Query comes in to play because it can semi-automate this process. Once you set it up for the most part all you need to do is just click refresh and it auto-magically updates it. P.S. Feel free to provide a comment or share it with a friend! #exceltips #exceltipsandtricks #exceltutorial #doughexcel
Views: 1579 Doug H
This video teaches you how to create a calculated item for a specific set of data values. A calculated item is a computation between members. To find out more about Oracle BI EE, see the documentation at https://docs.oracle.com/en/middleware Copyright © 2015 Oracle and/or its affiliates. Oracle is a registered trademark of Oracle and/or its affiliates. All rights reserved. Other names may be registered trademarks of their respective owners. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the “Materials”). The Materials are provided “as is” without any warranty of any kind, either express or implied, including without limitation warranties or merchantability, fitness for a particular purpose, and non-infringement.
Views: 12611 Oracle Learning Library
This presentation is based on Jonathan Knight's excellent blog article (http://thegridman.com/coherence/oracle-coherence-pivot-table-queries/) on the same subject. Here he will elaborate on this article and talk further about how Oracle Coherence can be used to perform pivot-table like queries using the Coherence GroupAggregator.
Views: 1362 OracleCoherence
Check out my Blog: http://exceltraining101.blogspot.com Sometimes you have columns doing double duty as a data. This video shows how to convert or move a column field into a row data field using the consolidated range option in the pivot table wizard. #exceltips #exceltipsandtricks #exceltutorial #doughexcel
Views: 220959 Doug H
Do you know about all the new features and advances Oracle has released with Smart View? Watch a replay of the webinar as we provide an update needed by anyone leveraging Hyperion Planning (including Planning and Budgeting Cloud Service), Hyperion Financial Management, Essbase, Oracle Business Intelligence Enterprise Edition, and Hyperion Workforce Planning for ad-hoc and free form analysis and data access from relationship and multi-dimensional sources. Hear what’s new in Smart View including key new features since the 126.96.36.199 release, including: • Data Submission- submitting without refresh • POV and Pivot Enhancements- multiple members and single dimension • New Microsoft Capabilities- Surface Pro, Windows 8 and Office 2013 now supported • Displaying Fully Qualified Variable Names- global, application and database level • Changes to Smart View Options- apply to all existing sheets and all new worksheets • New Alias Table for Essbase and Planning- member selection dialog box • Planning Extension- import and work with meta data Plus, learn about advanced techniques, such as: • Cascading Reports- key points and custom headers • Smart Slice • Smart Query • How to embed Reports in Microsoft Office
Views: 9914 KeyPerformanceIdeas
This video will show you how simple it is to get started doing adhoc analysis with the Hyperion Smartview addin. More and more everyday value in the work place is shifting from away from manual work product creation to torwards analysis and value added review of facts figures and data.
Views: 7795 Compass Hyperion training
In this episode of my Oracle BI Video Tutorial, I make a simple report and then make it interactive using a view and a column selector I first build a basic table, add a graph and then show the power of view and column selectors. To finish off, I show how to make a rollup report, by using column selectors in a creative way. Everything I talk about is applicable to building reports for Oracle Sales Cloud or any other applications that uses this reporting tool. Other applications like: - Oracle CRM On Demand - Oracle HCM Cloud - Oracle ERP Cloud - Peoplesoft - e-Business Suite - or even custom built applications Sometimes the user interface might be slightly different though. This video is part of my Oracle BI Video Tutorial that can be found on my blog: Edward's Oracle Blog: http://www.dewolf.net Let me know how you liked it and if it was usefull! Want to know when I upload more videos or post about Oracle Sales Cloud or Oracle BI? Follow me on twitter: https://twitter.com/edewolf_cx
Views: 4422 Edward's Oracle Blog
Other ways to use the COUNT function in SQL. The full Introduction to Oracle SQL course is available here: https://www.databasestar.com/introduction-to-oracle-sql-course/
Views: 222 Database Star
This video lesson fully explains the concepts of Business Intelligence, OLAP, MDX and and how they apply to Excel 2013. At http://ExcelCentral.com you can view over 850 free Excel video lessons just like this one. All in full HD with vari-speed and human-transcribed subtitles providing the perfect Excel learning environment. You can also track your progress through the course and print a certificate upon completion. Separate videos are provided for Excel 2007, Excel 2010 and Excel 2013. The lesson begins with an explanation of OLAP and its purpose. You'll learn about OLAP Cubes and how they are divided into Dimensions, Measure and Hierarchies to create a multidimensional data structure. You'll also learn about how the MDX query language is used to extract values from OLAP cubes. This lesson also explains the concept of Business Intelligence and how it applies to OLAP. This video comes from the Data Model, OLAP, MDX and BI session (Session 6 in our Excel 2013 Expert Skills free video training course). This session includes the following video lessons: ▪ Lesson 6-1: Understand primary and foreign keys (11m 27s) http://excelcentral.com/excel2013/expert/lessons/06010-understand-primary-key-foreign-key-relationships.html ▪ Lesson 6-2: Create a simple data model (6m 31s) http://excelcentral.com/excel2013/expert/lessons/06020-create-a-simple-data-model.html ▪ Lesson 6-3: Understand OLAP, MDX and Business Intelligence (10m 17s) http://excelcentral.com/excel2013/expert/lessons/06030-what-is-business-intelligence-and-an-olap-cube.html ▪ Lesson 6-4: Use the GETPIVOTDATA function (4m 31s) http://excelcentral.com/excel2013/expert/lessons/06040-use-the-getpivotdata-function.html ▪ Lesson 6-5: Use the CUBEVALUE function to query an OLAP cube (5m 40s) http://excelcentral.com/excel2013/expert/lessons/06050-use-the-cubevalue-function-to-query-an-olap-cube.html ▪ Lesson 6-6: Convert CUBEVALUE functions to include MDX expressions (5m 48s) http://excelcentral.com/excel2013/expert/lessons/06060-convert-cubevalue-functions-to-include-mdx-expressions.html ▪ Lesson 6-7: Understand OLAP pivot table limitations (10m 52s) http://excelcentral.com/excel2013/expert/lessons/06070-understand-olap-pivot-table-limitations.html ▪ Lesson 6-8: Create an asymmetric OLAP pivot table using Named Sets (4m 57s) http://excelcentral.com/excel2013/expert/lessons/06080-create-an-asymmetric-olap-pivot-table-using-named-sets.html ▪ Lesson 6-9: Understand many-to-many relationships (11m 5s) http://excelcentral.com/excel2013/expert/lessons/06090-understand-many-to-many-relationships.html ▪ Lesson 6-10: Create an OLAP pivot table using a many-to-many relationship (12m 47s) http://excelcentral.com/excel2013/expert/lessons/06100-create-an-olap-pivot-table-using-a-many-to-many-relationship.html You can watch any of the 850 Excel video lessons, free and without any required registration at http://excelcentral.com/excel2013/expert/tutorials/default.html.
Views: 248317 ExcelCentral.com
This 2 minutes demo shows you how to use the formula functionality in the Layout Editor and create a custom column.
Views: 13943 bipublisher
In this video you learn how to create analyses using Smart View. The example in this video is from HCM but applies to all applications that use OTBi and OTBI Enterprise including Oracle Financials Cloud, Oracle Project Portfolio Management Cloud, and Oracle Procurement Cloud. Please note that all of the techniques and concepts in this tutorial also apply to OTBI Enterprise although the available subject areas will be different.
Views: 1291 Oracle EPM Tutorials
over partition by in sql server 2008 sql server over clause partition partition by clause in sql server 2008 over partition by clause in sql In this video we will discuss the power and use of Over clause in SQL Server. The OVER clause combined with PARTITION BY is used to break up data into partitions. Syntax : function (...) OVER (PARTITION BY col1, Col2, ...) The specified function operates for each partition. For example : COUNT(Gender) OVER (PARTITION BY Gender) will partition the data by GENDER i.e there will 2 partitions (Male and Female) and then the COUNT() function is applied over each partition. Any of the following functions can be used. Please note this is not the complete list. COUNT(), AVG(), SUM(), MIN(), MAX(), ROW_NUMBER(), RANK(), DENSE_RANK() etc. Example : SQl Script to create Employees table Create Table Employees ( Id int primary key, Name nvarchar(50), Gender nvarchar(10), Salary int ) Go Insert Into Employees Values (1, 'Mark', 'Male', 5000) Insert Into Employees Values (2, 'John', 'Male', 4500) Insert Into Employees Values (3, 'Pam', 'Female', 5500) Insert Into Employees Values (4, 'Sara', 'Female', 4000) Insert Into Employees Values (5, 'Todd', 'Male', 3500) Insert Into Employees Values (6, 'Mary', 'Female', 5000) Insert Into Employees Values (7, 'Ben', 'Male', 6500) Insert Into Employees Values (8, 'Jodi', 'Female', 7000) Insert Into Employees Values (9, 'Tom', 'Male', 5500) Insert Into Employees Values (10, 'Ron', 'Male', 5000) Go Write a query to retrieve total count of employees by Gender. Also in the result we want Average, Minimum and Maximum salary by Gender. This can be very easily achieved using a simple GROUP BY query as show below. SELECT Gender, COUNT(*) AS GenderTotal, AVG(Salary) AS AvgSal, MIN(Salary) AS MinSal, MAX(Salary) AS MaxSal FROM Employees GROUP BY Gender What if we want non-aggregated values (like employee Name and Salary) in result set along with aggregated values You cannot include non-aggregated columns in the GROUP BY query. SELECT Name, Salary, Gender, COUNT(*) AS GenderTotal, AVG(Salary) AS AvgSal, MIN(Salary) AS MinSal, MAX(Salary) AS MaxSal FROM Employees GROUP BY Gender The above query will result in the following error : Column 'Employees.Name' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause One way to achieve this is by including the aggregations in a subquery and then JOINING it with the main query as shown in the example below. Look at the amount of T-SQL code we have to write. SELECT Name, Salary, Employees.Gender, Genders.GenderTotals, Genders.AvgSal, Genders.MinSal, Genders.MaxSal FROM Employees INNER JOIN (SELECT Gender, COUNT(*) AS GenderTotals, AVG(Salary) AS AvgSal, MIN(Salary) AS MinSal, MAX(Salary) AS MaxSal FROM Employees GROUP BY Gender) AS Genders ON Genders.Gender = Employees.Gender Better way of doing this is by using the OVER clause combined with PARTITION BY SELECT Name, Salary, Gender, COUNT(Gender) OVER(PARTITION BY Gender) AS GenderTotals, AVG(Salary) OVER(PARTITION BY Gender) AS AvgSal, MIN(Salary) OVER(PARTITION BY Gender) AS MinSal, MAX(Salary) OVER(PARTITION BY Gender) AS MaxSal FROM Employees Text version of the video http://csharp-video-tutorials.blogspot.com/2015/09/over-clause-in-sql-server.html Slides http://csharp-video-tutorials.blogspot.com/2015/09/over-clause-in-sql-server_29.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 90093 kudvenkat
In this video, we are going to teach you about "connect Excel with Oracle Database" Below are the steps followed. 1.Open Excel. 2.open "Data sources" on Excel Menu 3.Create required datasoure. 4.Give the required details(Service, Username, Password) on the utility displayed on Excel 5.Click on finish 6.Now select the table and optimize query to fetch the data from database(Here we have considered Oracle database) 7.Finish.to come back to Excel sheet 8.Now we can see the data in the Excel sheet.Manipulate the data in Excel accordingly. Please subscribe to our channel for more videos....
Views: 5925 WebTechs
This video tutorial explains on how case statement and decode function are different from each other. Though both of them are used in giving the if-then-else conditional functionality to sql statement, they differ much from each other, this video will walk through each of the difference with appropriate examples. If you want more such videos of exciting and amazing 'difference between' concepts, check out the links below : char and varchar2 : https://youtu.be/039qzwjWf4k replace and translate : https://youtu.be/HKYF77BGzOE procedure and function : https://youtu.be/q3LmOenL120 in and exists : https://youtu.be/REX4IjRYlFw rank and dense_rank : https://youtu.be/WGSX998hZ9M delete and truncate : https://youtu.be/u76wMm2byXo %type and %rowtype : https://youtu.be/MlLUFeZ_3eM
Views: 12968 Kishan Mashru
In this video you learn how to work with analyses using Smart View. The example in this video is from HCM but applies to all applications that use OTBi and OTBI Enterprise including Oracle Financials Cloud, Oracle Project Portfolio Management Cloud, and Oracle Procurement Cloud. Please note that all of the techniques and concepts in this tutorial also apply to OTBI Enterprise although the available subject areas will be different.
Views: 957 Oracle EPM Tutorials