הצטרפו לקבוצות שלנו לקבלת עדכונים מרוכזים פעם בשבוע:

ווטסאפ:
http://wa.dwh.co.il
טלגרם:
http://telegram.dwh.co.il

view ב 2005

More
17 years 8 months ago #2531 by inbs
view ב 2005 was created by inbs
האם יש view בתוך 2005?
(כמו קליקויו/פנורמה/קוגנוס)

Please התחברות to join the conversation.

More
17 years 8 months ago #2533 by eldad
Replied by eldad on topic בעניין: view ב 2005
להלן דוגמה ליצירת VIEW


USE [AdventureWorksDW]
GO
/****** Object:  View [dbo].[vDMPrep]    Script Date: 07/29/2008 00:13:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

-- vDMPrep will be used as a data source by the other data mining views. 
-- Uses DW data at customer, product, day, etc. granularity and
-- gets region, model, year, month, etc.
CREATE VIEW [dbo].[vDMPrep]
AS
    SELECT
        pc.[EnglishProductCategoryName]
        ,Coalesce(p.[ModelName], p.[EnglishProductName]) AS [Model]
        ,c.[CustomerKey]
        ,s.[SalesTerritoryGroup] AS [Region]
        ,CASE
            WHEN Month(GetDate()) < Month(c.[BirthDate])
                THEN DateDiff(yy,c.[BirthDate],GetDate()) - 1
            WHEN Month(GetDate()) = Month(c.[BirthDate])
            AND Day(GetDate()) < Day(c.[BirthDate])
                THEN DateDiff(yy,c.[BirthDate],GetDate()) - 1
            ELSE DateDiff(yy,c.[BirthDate],GetDate())
        END AS [Age]
        ,CASE
            WHEN c.[YearlyIncome] < 40000 THEN 'Low'
            WHEN c.[YearlyIncome] > 60000 THEN 'High'
            ELSE 'Moderate'
        END AS [IncomeGroup]
        ,t.[CalendarYear]
        ,t.[FiscalYear]
        ,t.[MonthNumberOfYear] AS [Month]
        ,f.[SalesOrderNumber] AS [OrderNumber]
        ,f.SalesOrderLineNumber AS LineNumber
        ,f.OrderQuantity AS Quantity
        ,f.ExtendedAmount AS Amount 
    FROM
        [dbo].[FactInternetSales] f
    INNER JOIN [dbo].[DimTime] t
        ON f.[OrderDateKey] = t.[TimeKey]
    INNER JOIN [dbo].[DimProduct] p
        ON f.[ProductKey] = p.[ProductKey]
    INNER JOIN [dbo].[DimProductSubcategory] psc
        ON p.[ProductSubcategoryKey] = psc.[ProductSubcategoryKey]
    INNER JOIN [dbo].[DimProductCategory] pc
        ON psc.[ProductCategoryKey] = pc.[ProductCategoryKey]
    INNER JOIN [dbo].[DimCustomer] c
        ON f.[CustomerKey] = c.[CustomerKey]
    INNER JOIN [dbo].[DimGeography] g
        ON c.[GeographyKey] = g.[GeographyKey]
    INNER JOIN [dbo].[DimSalesTerritory] s
        ON g.[SalesTerritoryKey] = s.[SalesTerritoryKey]
;

Please התחברות to join the conversation.

More
17 years 8 months ago #2536 by inbs
Replied by inbs on topic בעניין: view ב 2005
סליחה התכוונתי ל VIEWR

Please התחברות to join the conversation.

More
17 years 8 months ago #2544 by eldad
Replied by eldad on topic בעניין: view ב 2005
אני לא מבין מה אתה רוצה שהוא יציג? את הסכמה?

Please התחברות to join the conversation.

More
17 years 8 months ago #2552 by inbs
Replied by inbs on topic בעניין: view ב 2005
שיציג קוביה ואפשר לראות גרפים ודוחות כמו בפנורמה,
האם יש כלי כזה המצורף ל 2005?

Please התחברות to join the conversation.

More
17 years 8 months ago #2557 by eldad
Replied by eldad on topic בעניין: view ב 2005
אין כלי כמו פנורמה שמגיע בחינם....
אתה יכול לבצע browse דרך ה SQL server או להתחבר דרך האקסל

Please התחברות to join the conversation.

More
17 years 8 months ago #2609 by roavi
Replied by roavi on topic בעניין: view ב 2005
אתם לא נורמליים, חיפוש הכי צנוע בגוגל MS SQL 2005 היה אומר שקיים כלי
שבא ביחד עם ה-SQL לצרכי דוחות ושמו, אתם לא תאמינו, Reporting Services.

Please התחברות to join the conversation.

Moderators: eldad
Time to create page: 0.268 seconds