SlideShare una empresa de Scribd logo
1 de 5
Descargar para leer sin conexión
Candidate Joshua Gabrielson  Po Box 161 Wirtz, VA 24184 joshua.gabrielson@gmail.com  540.589.9534 
                                        Visual Studio Samples 




                                                                                           




                                                                                   




                                                                               
Candidate Joshua Gabrielson  Po Box 161 Wirtz, VA 24184 joshua.gabrielson@gmail.com  540.589.9534 
                                        Visual Studio Samples 




                                                                                     




                                                                                 

                                                  
Candidate Joshua Gabrielson  Po Box 161 Wirtz, VA 24184 joshua.gabrielson@gmail.com  540.589.9534 
                                        Visual Studio Samples 




                                                                         




                                                                                                      

                                                  
Candidate Joshua Gabrielson  Po Box 161 Wirtz, VA 24184 joshua.gabrielson@gmail.com  540.589.9534 
                                        Visual Studio Samples 




                                                                                             

                                                  

                                  SQL Stored Procedure Example:  
ALTER PROCEDURE [dbo].[OrderNumber2]
        /*
        (
        @parameter1 int = 5,
        @parameter2 datatype OUTPUT
        )
        */
        @Ordernumber as int
AS
        /* SET NOCOUNT ON */
        SELECT     OrderNumber, CustomerID, [Church Name], [Church Address], [Church City],
[Church State], [Church Zip], [Church Phone], [Church Fax], [Church Email],
                              Date, [Church Pastor], ShippingAddress, ShippingCity,
ShippingState, ShippingZip, Freight, Terms, ToBeShippedBY, SalesRep, PaymentType, PaymentAccount,
PaymentEXPDate, PaymentNameonCard, PaymentBillingAdd, PaymentBillingCity,
PaymentBillingState,PaymentBillingZip, Item1NO, Item1Desc, Item1QTY, Item1Price, Item2NO,
Item2Desc, Item2QTY, Item2Price, Item3NO, Item3Desc, Item3QTY, Item3Price, Item4NO, Item4Desc,
Item4QTY, Item4Price, Item5NO, Item5Desc, Item5QTY, Item5Price, Item6NO, Item6Desc, Item6QTY,
Item6PRice, Item7NO, Item7Desc, Item7QTY, tem7Price, Item8NO, Item8Desc, Item8QTY, Item8Price,
Notes, OrderStatus, BusinessUnit, Subtotal, Total, SalesTax, AuthNUM, MiscNotes, StainColor,
Framecolor, Silvervein, [Tracking Number], Deposit, SpecialInstructions, DONTSHIPBEFOREDATE,
Vendor, Item1weight, Item2weight, Item3weight, Item4weight, Item5weight, Item6weight,
Item7weight, Item8weight, Item1QTY * Item1weight AS Item1LBS, Item2QTY * Item2weight AS Item2LBS,
                              Item3QTY * Item3weight AS Item3LBS, Item4QTY * Item4weight AS
Item4LBS, Item5QTY * Item5weight AS Item5LBS,
                              Item6QTY * Item6weight AS Item6LBS, Item7QTY * Item7weight AS
Item7LBS, Item8QTY * Item8weight AS Item8LBS,
                              (((Item1QTY * Item1weight + Item2QTY * Item2weight) + (Item3QTY *
Item3weight + Item4QTY * Item4weight))
                              + (Item5QTY * Item5weight + Item6QTY * Item6weight)) + (Item7QTY *
Item7weight + Item8QTY * Item8weight) AS TOTALLBS, TruckNumber, ShipDate,
DeliverDate, Customer
        FROM         OrderSheet1V
        WHERE     (OrderNumber = @OrderNumber)
        RETURN
                                                  
Candidate Joshua Gabrielson  Po Box 161 Wirtz, VA 24184 joshua.gabrielson@gmail.com  540.589.9534 
                                        Visual Studio Samples 

                                                    

                                          SQL View Example:  

          SELECT     TOP (100) PERCENT dbo.MONTHLYADMINSALES_V.salesrep AS [GCS Rep], 
        dbo.MONTHLYADMINSALES_V.[desc], dbo.MONTHLYADMINSALES_V.qty AS [QTY Sold],  

                           dbo.Items.CommissionPRice * dbo.MONTHLYADMINSALES_V.qty AS Commission, 
                       dbo.Items.WHOLESALECOST, dbo.MONTHLYADMINSALES_V.ordernumber 

                        FROM         dbo.MONTHLYADMINSALES_V INNER JOIN 

                             dbo.Items ON dbo.MONTHLYADMINSALES_V.[desc] = dbo.Items.[Item Name] 

       GROUP BY dbo.MONTHLYADMINSALES_V.salesrep, dbo.MONTHLYADMINSALES_V.[desc], 
                            dbo.MONTHLYADMINSALES_V.qty,  

                                  dbo.Items.CommissionPRice * dbo.MONTHLYADMINSALES_V.qty, 
               dbo.Items.WHOLESALECOST, dbo.MONTHLYADMINSALES_V.ordernumber 

 HAVING      (dbo.MONTHLYADMINSALES_V.salesrep IS NOT NULL) AND (dbo.Items.CommissionPRice * 
                         dbo.MONTHLYADMINSALES_V.qty IS NOT NULL) 

                        ORDER BY dbo.MONTHLYADMINSALES_V.ordernumber 

                                                    

                                                    

                                                    

                                                    

Más contenido relacionado

Destacado

27665965 performance-management
27665965 performance-management27665965 performance-management
27665965 performance-managementKonkana De
 
Algoritmos DX Clinico-Imagenologicos
Algoritmos DX Clinico-ImagenologicosAlgoritmos DX Clinico-Imagenologicos
Algoritmos DX Clinico-ImagenologicosPreinternado
 
Memory Science & Medical Education (Nov. 4th, 2010)
Memory Science & Medical Education (Nov. 4th, 2010)Memory Science & Medical Education (Nov. 4th, 2010)
Memory Science & Medical Education (Nov. 4th, 2010)Ben Williams
 
Genetic Algorithm for Process Scheduling
Genetic Algorithm for Process SchedulingGenetic Algorithm for Process Scheduling
Genetic Algorithm for Process SchedulingLogin Technoligies
 
Future Medical Education
Future Medical EducationFuture Medical Education
Future Medical EducationBen Williams
 
Key Architectural Aspects of a Enterprise Mobility Solution
Key Architectural Aspects of a Enterprise Mobility SolutionKey Architectural Aspects of a Enterprise Mobility Solution
Key Architectural Aspects of a Enterprise Mobility Solutionroshanjk
 

Destacado (8)

27665965 performance-management
27665965 performance-management27665965 performance-management
27665965 performance-management
 
Why hrm 145
Why hrm 145Why hrm 145
Why hrm 145
 
Algoritmos DX Clinico-Imagenologicos
Algoritmos DX Clinico-ImagenologicosAlgoritmos DX Clinico-Imagenologicos
Algoritmos DX Clinico-Imagenologicos
 
Memory Science & Medical Education (Nov. 4th, 2010)
Memory Science & Medical Education (Nov. 4th, 2010)Memory Science & Medical Education (Nov. 4th, 2010)
Memory Science & Medical Education (Nov. 4th, 2010)
 
Genetic Algorithm for Process Scheduling
Genetic Algorithm for Process SchedulingGenetic Algorithm for Process Scheduling
Genetic Algorithm for Process Scheduling
 
Future Medical Education
Future Medical EducationFuture Medical Education
Future Medical Education
 
엑셀마이너를 활용한 데이터 분석
엑셀마이너를 활용한 데이터 분석엑셀마이너를 활용한 데이터 분석
엑셀마이너를 활용한 데이터 분석
 
Key Architectural Aspects of a Enterprise Mobility Solution
Key Architectural Aspects of a Enterprise Mobility SolutionKey Architectural Aspects of a Enterprise Mobility Solution
Key Architectural Aspects of a Enterprise Mobility Solution
 

Screenshots

  • 4. Candidate Joshua Gabrielson  Po Box 161 Wirtz, VA 24184 joshua.gabrielson@gmail.com  540.589.9534  Visual Studio Samples      SQL Stored Procedure Example:   ALTER PROCEDURE [dbo].[OrderNumber2] /* ( @parameter1 int = 5, @parameter2 datatype OUTPUT ) */ @Ordernumber as int AS /* SET NOCOUNT ON */ SELECT OrderNumber, CustomerID, [Church Name], [Church Address], [Church City], [Church State], [Church Zip], [Church Phone], [Church Fax], [Church Email], Date, [Church Pastor], ShippingAddress, ShippingCity, ShippingState, ShippingZip, Freight, Terms, ToBeShippedBY, SalesRep, PaymentType, PaymentAccount, PaymentEXPDate, PaymentNameonCard, PaymentBillingAdd, PaymentBillingCity, PaymentBillingState,PaymentBillingZip, Item1NO, Item1Desc, Item1QTY, Item1Price, Item2NO, Item2Desc, Item2QTY, Item2Price, Item3NO, Item3Desc, Item3QTY, Item3Price, Item4NO, Item4Desc, Item4QTY, Item4Price, Item5NO, Item5Desc, Item5QTY, Item5Price, Item6NO, Item6Desc, Item6QTY, Item6PRice, Item7NO, Item7Desc, Item7QTY, tem7Price, Item8NO, Item8Desc, Item8QTY, Item8Price, Notes, OrderStatus, BusinessUnit, Subtotal, Total, SalesTax, AuthNUM, MiscNotes, StainColor, Framecolor, Silvervein, [Tracking Number], Deposit, SpecialInstructions, DONTSHIPBEFOREDATE, Vendor, Item1weight, Item2weight, Item3weight, Item4weight, Item5weight, Item6weight, Item7weight, Item8weight, Item1QTY * Item1weight AS Item1LBS, Item2QTY * Item2weight AS Item2LBS, Item3QTY * Item3weight AS Item3LBS, Item4QTY * Item4weight AS Item4LBS, Item5QTY * Item5weight AS Item5LBS, Item6QTY * Item6weight AS Item6LBS, Item7QTY * Item7weight AS Item7LBS, Item8QTY * Item8weight AS Item8LBS, (((Item1QTY * Item1weight + Item2QTY * Item2weight) + (Item3QTY * Item3weight + Item4QTY * Item4weight)) + (Item5QTY * Item5weight + Item6QTY * Item6weight)) + (Item7QTY * Item7weight + Item8QTY * Item8weight) AS TOTALLBS, TruckNumber, ShipDate, DeliverDate, Customer FROM OrderSheet1V WHERE (OrderNumber = @OrderNumber) RETURN  
  • 5. Candidate Joshua Gabrielson  Po Box 161 Wirtz, VA 24184 joshua.gabrielson@gmail.com  540.589.9534  Visual Studio Samples    SQL View Example:   SELECT     TOP (100) PERCENT dbo.MONTHLYADMINSALES_V.salesrep AS [GCS Rep],  dbo.MONTHLYADMINSALES_V.[desc], dbo.MONTHLYADMINSALES_V.qty AS [QTY Sold],                         dbo.Items.CommissionPRice * dbo.MONTHLYADMINSALES_V.qty AS Commission,  dbo.Items.WHOLESALECOST, dbo.MONTHLYADMINSALES_V.ordernumber  FROM         dbo.MONTHLYADMINSALES_V INNER JOIN                        dbo.Items ON dbo.MONTHLYADMINSALES_V.[desc] = dbo.Items.[Item Name]  GROUP BY dbo.MONTHLYADMINSALES_V.salesrep, dbo.MONTHLYADMINSALES_V.[desc],  dbo.MONTHLYADMINSALES_V.qty,                         dbo.Items.CommissionPRice * dbo.MONTHLYADMINSALES_V.qty,  dbo.Items.WHOLESALECOST, dbo.MONTHLYADMINSALES_V.ordernumber  HAVING      (dbo.MONTHLYADMINSALES_V.salesrep IS NOT NULL) AND (dbo.Items.CommissionPRice *  dbo.MONTHLYADMINSALES_V.qty IS NOT NULL)  ORDER BY dbo.MONTHLYADMINSALES_V.ordernumber