The document discusses design patterns for dashboards. It introduces common dashboard design patterns like the Headline Charts Page pattern which features key charts linking to topic dashboards. The Levels of Detail pattern shows consistent data at different organizational levels with single drill-down items. Other patterns covered include the Multi-Level "Cheat" using multi-series charts, Dynamic Axes combining multiple queries, Defaulting Filter Variables to handle filters, and Rotating Results to transform between column and row formats. The presentation emphasizes patterns for strategic dashboard design, individual charts, and working with data sources and filters.
This document provides information about an upcoming SQL Saturday Night event on March 30, 2013 that will focus on using T-SQL. The presentation will be recorded so that those unable to attend can view it later. Attendees are asked to change their virtual cards to a specific color if they are unable to hear the presenter. The presentation will be free and begin in 1 minute.
A subquery is a SELECT statement embedded within another SQL statement. It allows queries to retrieve data from multiple tables or queries. There are two types of subqueries: single-row and multiple-row. Single-row subqueries return only one row of data and use single-row comparison operators like =. Multiple-row subqueries return more than one row of data and use operators like IN, ANY, ALL that can handle multiple values. Subqueries are useful for solving problems that require performing multiple related queries by nesting one query within another.
This slideshow is for IT professionals, data analysts, managers, and anyone looking to drive more productivity from Excel. You will learn how you can effectively leverage the add-ins with your own data and analysis requirements.
One of the pillars of the SQL Server 2008 R2 release is Managed Self-Service BI.
Peter Myers of SolidQ will introduce:
* SQL Server PowerPivot for Excel
* SQL Server PowerPivot for SharePoint
The SQL Server PowerPivot for Excel add-in is a key offering in this pillar, and delivers an entirely new analytic experience to Excel 2010. This add-in allows analysts to load and prepare large volumes of data from various sources to create a multidimensional model. The model can be enriched with sophisticated calculations. Then the model can then be used as the source for PivotTable and PivotChart reports.
With the SQL Server PowerPivot for SharePoint add-in, the Excel workbooks that host the PowerPivot model can be cataloged in SharePoint and exposed as a data source for other Excel and Reporting Services reports. These SharePoint hosted models can then be managed by IT with scheduled data refreshes from the originating data stores.
The document discusses subqueries in SQL. It defines a subquery as a SELECT statement embedded within another SELECT statement. Subqueries allow queries to be built from simpler statements by executing an inner query and using its results to inform the conditions of the outer query. The key aspects covered are: subqueries can be used in the WHERE, HAVING, FROM and other clauses; single-row subqueries use single-value operators while multiple-row subqueries use operators like ANY and ALL; and subqueries execute before the outer query to provide their results.
A SQL subquery is a query nested inside another query. Subqueries can be used in the SELECT, WHERE, INSERT, UPDATE, or DELETE clauses. The subquery executes first and its results are then used by the outer query. There are three types of subqueries: single row, multiple row, and multiple column. Single row subqueries use comparison operators like =, <, > and return one row. Multiple row subqueries use operators like IN, ANY, ALL and return multiple rows. Multiple column subqueries compare more than one column between the outer and inner queries.
The document discusses design patterns for dashboards. It introduces common dashboard design patterns like the Headline Charts Page pattern which features key charts linking to topic dashboards. The Levels of Detail pattern shows consistent data at different organizational levels with single drill-down items. Other patterns covered include the Multi-Level "Cheat" using multi-series charts, Dynamic Axes combining multiple queries, Defaulting Filter Variables to handle filters, and Rotating Results to transform between column and row formats. The presentation emphasizes patterns for strategic dashboard design, individual charts, and working with data sources and filters.
This document provides information about an upcoming SQL Saturday Night event on March 30, 2013 that will focus on using T-SQL. The presentation will be recorded so that those unable to attend can view it later. Attendees are asked to change their virtual cards to a specific color if they are unable to hear the presenter. The presentation will be free and begin in 1 minute.
A subquery is a SELECT statement embedded within another SQL statement. It allows queries to retrieve data from multiple tables or queries. There are two types of subqueries: single-row and multiple-row. Single-row subqueries return only one row of data and use single-row comparison operators like =. Multiple-row subqueries return more than one row of data and use operators like IN, ANY, ALL that can handle multiple values. Subqueries are useful for solving problems that require performing multiple related queries by nesting one query within another.
This slideshow is for IT professionals, data analysts, managers, and anyone looking to drive more productivity from Excel. You will learn how you can effectively leverage the add-ins with your own data and analysis requirements.
One of the pillars of the SQL Server 2008 R2 release is Managed Self-Service BI.
Peter Myers of SolidQ will introduce:
* SQL Server PowerPivot for Excel
* SQL Server PowerPivot for SharePoint
The SQL Server PowerPivot for Excel add-in is a key offering in this pillar, and delivers an entirely new analytic experience to Excel 2010. This add-in allows analysts to load and prepare large volumes of data from various sources to create a multidimensional model. The model can be enriched with sophisticated calculations. Then the model can then be used as the source for PivotTable and PivotChart reports.
With the SQL Server PowerPivot for SharePoint add-in, the Excel workbooks that host the PowerPivot model can be cataloged in SharePoint and exposed as a data source for other Excel and Reporting Services reports. These SharePoint hosted models can then be managed by IT with scheduled data refreshes from the originating data stores.
The document discusses subqueries in SQL. It defines a subquery as a SELECT statement embedded within another SELECT statement. Subqueries allow queries to be built from simpler statements by executing an inner query and using its results to inform the conditions of the outer query. The key aspects covered are: subqueries can be used in the WHERE, HAVING, FROM and other clauses; single-row subqueries use single-value operators while multiple-row subqueries use operators like ANY and ALL; and subqueries execute before the outer query to provide their results.
A SQL subquery is a query nested inside another query. Subqueries can be used in the SELECT, WHERE, INSERT, UPDATE, or DELETE clauses. The subquery executes first and its results are then used by the outer query. There are three types of subqueries: single row, multiple row, and multiple column. Single row subqueries use comparison operators like =, <, > and return one row. Multiple row subqueries use operators like IN, ANY, ALL and return multiple rows. Multiple column subqueries compare more than one column between the outer and inner queries.
Merhaba, bu dersimizde Stimulsoft Report Rapor Tasarımı Yapmak konusuna bakacağız. Önceki dersimizde kodlarla nasıl rapor ürettiğimizi, nasıl parametre göndereceğimizi ve conenction string cümlesini dışarıdan gönderme işlemine bakmıştık. Bu ders, bir önceki dersi tamamlayacak bir ders olacaktır.
PHP ile etkileşimli programlar oluşturmak istiyorsak web sunucu ve yorumlayıcıya ihtiyaç vardır. Birinin olmaması durumunda program çalışmaz.
Üye kaydı, ürün bilgisi gibi verilerin kullanılacağı bir web sayfasında ise veri tabanı sunucu gerekir. Veri tabanı sunucusunu daha kolay kontrol etmek ve verileri düzenlemek için de yardımcı veri tabanı programı yönetimi programları ( PhpMyAdmin vb.) kullanılabilir.
Serhad Makbuloğlu tarafından verilecek bu web seminerinde, Exchange Server 2010 Tips and Tricks anlatılacaktır. Bu web semineri teknik içeriğe sahiptir.
Merhaba, bu dersimizde Stimulsoft Report Rapor Tasarımı Yapmak konusuna bakacağız. Önceki dersimizde kodlarla nasıl rapor ürettiğimizi, nasıl parametre göndereceğimizi ve conenction string cümlesini dışarıdan gönderme işlemine bakmıştık. Bu ders, bir önceki dersi tamamlayacak bir ders olacaktır.
PHP ile etkileşimli programlar oluşturmak istiyorsak web sunucu ve yorumlayıcıya ihtiyaç vardır. Birinin olmaması durumunda program çalışmaz.
Üye kaydı, ürün bilgisi gibi verilerin kullanılacağı bir web sayfasında ise veri tabanı sunucu gerekir. Veri tabanı sunucusunu daha kolay kontrol etmek ve verileri düzenlemek için de yardımcı veri tabanı programı yönetimi programları ( PhpMyAdmin vb.) kullanılabilir.
Serhad Makbuloğlu tarafından verilecek bu web seminerinde, Exchange Server 2010 Tips and Tricks anlatılacaktır. Bu web semineri teknik içeriğe sahiptir.
1. Veritabanı Yönetim Sistemi platformlarında (Sql Server, Oracle v.b.) yer alan herkesin pek
bilmediği Pivot ve Unpivot Operatörleri bulunmaktadır. Şimdi gelin hep birlikte Pivot-
Unpivot operatörlerini inceleyelim. Pivot ve Unpivot operatörleri daha çok OLAP
biçimindeki sorgulamalarda ve açık şema uygulamalarında ihtiyaç duyulabilen operatörlerdir.
Burada OLAP ve açık şema uygulamaları derken kastedilen şeyi kısaca açıklamak yerinde
olur. OLAP, veriler üzerinde derinlemesine analiz yapılabilmesine olanak tanıyan bir
teknolojidir. Açık şema uygulamaları ise hazırlanmış bir tablonun normalizasyon kuralları
içinde yeterli çözümleri sağlayamadığı durumlarda farklı bir tablo üzerinde satırların
sütunlara veya sütunların satırlara dönüştürülmesi gerekliliğidir. İşte bu tip durumlarda
devreye Pivot ve Unpivot operatörleri girer. Pivot operatörü bir tablonun satırlarını yani
belirli kayıtlarını sütunlara çevirir. Unpivot operatörü ise bir tablonun sütunlarını satırlara
çevirmektedir. Biliyorum ki bu konuda örnekler yaparsak konu daha iyi anlaşılacaktır.
Öncelikle aşağıdaki şekilde görüldüğü gibi bir tablo oluşturalım.
Tablomuzu Sql kodları ile oluşturmak isteyenler için aşağıdaki kodları kullanabiliriz.
Create Table BilgisayarDetay(
BilgisayarKod int,
Nitelikler nvarchar(50),
Aciklama nvarchar(50)
)
Ardından oluşturduğumuz bu tabloya insert cümleciği vasıtasıyla kayıtlar ekleyelim. Ben
aşağıdaki gibi eklemeler yaptım.
insert into BilgisayarDetay(BilgisayarKod,Nitelikler,Aciklama)values (1000,'Bellek
(GB)','3')
insert into BilgisayarDetay(BilgisayarKod,Nitelikler,Aciklama)values (1000,'Sabit Disk
(GB)','500')
insert into BilgisayarDetay(BilgisayarKod,Nitelikler,Aciklama)values (1000,'Ekran
(MB)','512')
insert into BilgisayarDetay(BilgisayarKod,Nitelikler,Aciklama)values (1000,'Boyut
(Inch)','19')
insert into BilgisayarDetay(BilgisayarKod,Nitelikler)values (1000,'Web Cam')
insert into BilgisayarDetay(BilgisayarKod,Nitelikler,Aciklama)values (1001,'Bellek (GB)','4')
insert into BilgisayarDetay(BilgisayarKod,Nitelikler,Aciklama)values (1001,'Sabit Disk
(GB)','800')
insert into BilgisayarDetay(BilgisayarKod,Nitelikler,Aciklama)values (1001,'Ekran
(MB)','1024')
insert into BilgisayarDetay(BilgisayarKod,Nitelikler,Aciklama)values (1001,'Boyut
2. (Inch)','21')
insert into BilgisayarDetay(BilgisayarKod,Nitelikler,Aciklama)values (1001,'Web
Cam','Var' )
insert into BilgisayarDetay(BilgisayarKod,Nitelikler,Aciklama)values (1002,'Bellek (GB)','2')
insert into BilgisayarDetay(BilgisayarKod,Nitelikler,Aciklama)values (1002,'Sabit Disk
(GB)','1024')
insert into BilgisayarDetay(BilgisayarKod,Nitelikler,Aciklama)values (1002,'Ekran
(MB)','1024')
insert into BilgisayarDetay(BilgisayarKod,Nitelikler,Aciklama)values (1002,'Boyut
(Inch)','17')
insert into BilgisayarDetay(BilgisayarKod,Nitelikler)values (1002,'Web Cam')
Bu kayıtlarımızı ekledikten sonra tablodaki kayıtlarımızın içeriği aşağıdaki gibi gözüküyor
olmalı.
Şimdi gelin Nitelikler kısmında yer alan satırları yani kayıtları Pivot operatörü ile sütunlara
çevirelim. Bu işi gerçekleştirmek için aşağıdaki gibi bir Sql kod bloğu yazmamız gerekiyor.
WITH BilgisayarOzellik AS(
SELECT * FROM BilgisayarDetay
)
SELECT Kayit.* FROM BilgisayarOzellik
PIVOT(MAX(Aciklama)
FOR Nitelikler IN ([Bellek (GB)],[Sabit Disk (GB)],[Ekran (MB)],[Boyut (Inch)],[Web
Cam])
)AS Kayit
Bu kod bloğunu şu şekilde açıklayabiliriz; öncelikle BilgisayarDetay isimli tablomuzun
kayıtlarını pivot sorgusunun çalıştırılacağı BilgisayarOzellik adında sanal bir tabloya yani
sonradan türettiğimiz bir tabloya aktardık. Ardından "SELECT Kayit.* FROM
BilgisayarOzellik" satırı ile BilgisayarOzellik isimli sanal tablomuzun bütün sütünlarını
seçmiş bulunuyoruz. Sonraki kod satırımızda MAX fonksiyonu aklınızı karıştırmış,neden
3. böyle bir fonksiyon kullandık diyebilirsiniz. Pivot operatörümüzün çalışabilmesi için
gruplama yapabilen bir fonsiyon gereklidir. Bu fonksiyon MAX, MIN veya SUM gibi
gruplama yapabilen bir fonksiyon olabilir. Biz burada Aciklama sütünuna göre MAX
fonksiyonu ile bir gruplama yaptık.Son olarak "FOR Nitelikler IN ([Bellek (GB)],[Sabit Disk
(GB)],[Ekran (MB)],[Boyut (Inch)],[Web Cam])" sql kod satırı ile Nitelikler sütunundaki
kayıtları kullanarak satırları sütunlara çevirmek istediğimizi belirttik. Satırları sütunlara
çevrilecek kısımlar köşeli parantez içinde yazılmıştır. Şimdi yazdığımız bu kod bloğunu
çalıştırdığımızda ekrana gelecek sonucu görelim.
Yukarıdaki şekilden de gördüğümüz gibi Nitelikler içinde yer alan satırlar sütunlara
dönüşmüş durumda ve Aciklama sütunundaki veriler bu yeni sütunlar içindeki kayıtlar olarak
yerini almıştır.
Şimdi de Pivot operatörünün tersi işlemi yapan yani sütunları satırlara çeviren Unpivot
operatörüne ait bir örnek yapalım. Bu işlem için aşağıdaki gibi bir tablo oluşturalım.
Yukarıda görüldüğü gibi Satis adında her bir satıcının yıllık satış miktarlarının tutulduğu bir
tablo oluşturduk. Bu tabloya aşağıdaki gibi kayıtları ekleyelim.
Yukarıda bulunan şekildeki gibi bazı kayıtlarımızı tablomuza girdikten sonra Unpivot
operatörümüzü kullanabiliriz.
SELECT satislar.* FROM Satis
UNPIVOT (SatışMiktari FOR Yıllar IN ([2007],[2008],[2009])
)AS satislar
Bu kod bloğunda Satis tablosunun bütün sütunları,kayıtları satislar isimli sanal bir tabloya
aktarılmıştır. 2007,2008,2009 isimli sütunlar satırlara dönüştürülmek üzere Unpivot operatörü
4. kullanılmıştır. Bu kod bloğu bize aşağıdaki gibi bir çıktı sunacaktır.
Gördüğümüz gibi yıllar isminde ayrı bir sütun oluşturulmuştur. Ümit ediyorum ki bu makale
ile veritabanı, veri madenciliği, OLAP gibi kavramlar konusunda herkeste bir merak
oluşacaktır ve bu konuda araştırmalar artacaktır.
Tekrar görüşmek dileğiyle.
Görkem SEZGİN