SlideShare uma empresa Scribd logo
1 de 20
[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
 
Input Parameters: @AccountID, @CustomerID, @Transaction Amount. Once the procedure checks to see if the account is active and the transaction amount is greater than 0 new values are inserted into the Transactions table and the Balance in the Accounts table is updated.
Input Parameters: @AccountID, CustomerID, @TransactionAmount. This procedure validates to make sure the customer is associated with the account and to make sure the account is active. Once all the validations are checked new values are inserted into the Transactions table.
Input Parameters: @AccountID, @CustomerID, @UpdateType, @NewBalance,  @SpecificOverdraftAccountID, GeneralOverdraft. Output Parameters: @CustomerAccountID. Validations:  1)Do not allow for  a customer to be added to an account more than once. 2) Account cannot be reopen with less than $20.  3) Account cannot be closed unless balance is $0.  Inserts: CustomerAccount table. Updates: AccountStatus
The vBalance view is called by the GetBalance Stored Procedure to show the current balance with the last 5 transactions.  The vCustomerAccountInfo view is called by the CustomerAccountInfo stored procedure to obtain statements by either CustomerID or AccountNumber.  The vTransactionsView is called by the GetTransactions stored procedure to show transactions on a particular account for the past 30 days.
Use DDL triggers to prevent customer accounts and transactions from being accidently deleted.
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Create a new filegroup, EmployeeWorkHistoryFG, containing one file, EmpWorkHist.ndf, in the default data directory of the default SQL Server 2008 instance.  The data file should have an initial size of 100MB and should not allow for autogrowth.
You have been assigned the task of creating a database snapshot that will allow the database to be recovered from the database snapshot, often referred to as reverting to the database snapshot.
Riley is the first employee hired that will need access to select records from all tables in the Sales schema. In the upcoming weeks, several other Sales Managers will be hired, all of which will require the same access as Riley Using the principle of least privilege, give Riley and her future colleagues the minimal permissions necessary to perform their tasks.
The Adventureworks company has decided that Production.Product data should be maintained at all three locations.  The headquarters office, which is the default instance, should be the publisher and distributor.  SQLInstance2 and SQLInstance3 will be subscribers in a transactional replication scenario that supports immediate updating subscribers.
[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
 
[object Object],[object Object],[object Object]

Mais conteúdo relacionado

Mais procurados

Mds cdc implementation
Mds cdc implementationMds cdc implementation
Mds cdc implementationSainatth Wagh
 
Microsoft MCSE 70-467 it exams dumps
Microsoft MCSE 70-467 it exams dumpsMicrosoft MCSE 70-467 it exams dumps
Microsoft MCSE 70-467 it exams dumpslilylucy
 
93016175 ax2012-enus-rep-02
93016175 ax2012-enus-rep-0293016175 ax2012-enus-rep-02
93016175 ax2012-enus-rep-02Ahmed Farag
 
Bilir's Business Intelligence Portfolio SSAS Project
Bilir's Business Intelligence Portfolio SSAS ProjectBilir's Business Intelligence Portfolio SSAS Project
Bilir's Business Intelligence Portfolio SSAS ProjectFigen Bilir
 
( 5 ) Office 2007 Create A Business Data Catolog
( 5 ) Office 2007   Create A Business Data Catolog( 5 ) Office 2007   Create A Business Data Catolog
( 5 ) Office 2007 Create A Business Data CatologLiquidHub
 
Business Intelligence Technology Presentation
Business Intelligence Technology PresentationBusiness Intelligence Technology Presentation
Business Intelligence Technology PresentationJohn Paredes
 
06 asp.net session08
06 asp.net session0806 asp.net session08
06 asp.net session08Mani Chaubey
 
Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01
Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01
Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01Ahmed Farag
 
06 asp.net session08
06 asp.net session0806 asp.net session08
06 asp.net session08Vivek chan
 
Xml transformation-doc
Xml transformation-docXml transformation-doc
Xml transformation-docAmit Sharma
 
Datawarehousing with MySQL
Datawarehousing with MySQLDatawarehousing with MySQL
Datawarehousing with MySQLHarshit Parekh
 
Update strategy-transformation
Update strategy-transformationUpdate strategy-transformation
Update strategy-transformationAmit Sharma
 
Informatica log files
Informatica log filesInformatica log files
Informatica log filesAmit Sharma
 
Step by Step Asp.Net GridView Tutorials
Step by Step Asp.Net GridView TutorialsStep by Step Asp.Net GridView Tutorials
Step by Step Asp.Net GridView TutorialsNilesh kumar Jadav
 

Mais procurados (18)

Mds cdc implementation
Mds cdc implementationMds cdc implementation
Mds cdc implementation
 
Microsoft MCSE 70-467 it exams dumps
Microsoft MCSE 70-467 it exams dumpsMicrosoft MCSE 70-467 it exams dumps
Microsoft MCSE 70-467 it exams dumps
 
informatica
informaticainformatica
informatica
 
93016175 ax2012-enus-rep-02
93016175 ax2012-enus-rep-0293016175 ax2012-enus-rep-02
93016175 ax2012-enus-rep-02
 
Sql Portfolio
Sql PortfolioSql Portfolio
Sql Portfolio
 
Bilir's Business Intelligence Portfolio SSAS Project
Bilir's Business Intelligence Portfolio SSAS ProjectBilir's Business Intelligence Portfolio SSAS Project
Bilir's Business Intelligence Portfolio SSAS Project
 
( 5 ) Office 2007 Create A Business Data Catolog
( 5 ) Office 2007   Create A Business Data Catolog( 5 ) Office 2007   Create A Business Data Catolog
( 5 ) Office 2007 Create A Business Data Catolog
 
Business Intelligence Technology Presentation
Business Intelligence Technology PresentationBusiness Intelligence Technology Presentation
Business Intelligence Technology Presentation
 
06 asp.net session08
06 asp.net session0806 asp.net session08
06 asp.net session08
 
Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01
Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01
Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01
 
06 asp.net session08
06 asp.net session0806 asp.net session08
06 asp.net session08
 
Chapter12 (1)
Chapter12 (1)Chapter12 (1)
Chapter12 (1)
 
Xml transformation-doc
Xml transformation-docXml transformation-doc
Xml transformation-doc
 
Datawarehousing with MySQL
Datawarehousing with MySQLDatawarehousing with MySQL
Datawarehousing with MySQL
 
Update strategy-transformation
Update strategy-transformationUpdate strategy-transformation
Update strategy-transformation
 
9 element entry_validation_part_9
9 element entry_validation_part_99 element entry_validation_part_9
9 element entry_validation_part_9
 
Informatica log files
Informatica log filesInformatica log files
Informatica log files
 
Step by Step Asp.Net GridView Tutorials
Step by Step Asp.Net GridView TutorialsStep by Step Asp.Net GridView Tutorials
Step by Step Asp.Net GridView Tutorials
 

Semelhante a SetFocus SQL Portfolio

Porfolio of Setfocus work
Porfolio of Setfocus workPorfolio of Setfocus work
Porfolio of Setfocus workKevinPSF
 
Jazmine Kane Portfolio
Jazmine Kane PortfolioJazmine Kane Portfolio
Jazmine Kane PortfolioJazmine Kane
 
Kevin Bengtson Portfolio
Kevin Bengtson PortfolioKevin Bengtson Portfolio
Kevin Bengtson PortfolioKbengt521
 
Rodney Matejek Portfolio
Rodney Matejek PortfolioRodney Matejek Portfolio
Rodney Matejek Portfoliormatejek
 
Dennis Schmid Portfolio
Dennis Schmid PortfolioDennis Schmid Portfolio
Dennis Schmid PortfolioDennis Schmid
 
Jessica Herndon Sql Portfolio
Jessica Herndon Sql PortfolioJessica Herndon Sql Portfolio
Jessica Herndon Sql PortfolioJessicaLHerndon
 
Gunavathi_Resume
Gunavathi_ResumeGunavathi_Resume
Gunavathi_Resumeguna vathi
 
A.Asgharian.Portfolio
A.Asgharian.PortfolioA.Asgharian.Portfolio
A.Asgharian.Portfolioaasgharian
 
SQL Server 2017 Community Driven Features
SQL Server 2017 Community Driven FeaturesSQL Server 2017 Community Driven Features
SQL Server 2017 Community Driven FeaturesJavier Villegas
 
Rinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat PortfolioRinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat PortfolioRinkeshkumar15
 
Rinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat PortfolioRinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat PortfolioRinkeshkumar15
 
Reynaldo Fadri’S Porfolio
Reynaldo Fadri’S PorfolioReynaldo Fadri’S Porfolio
Reynaldo Fadri’S Porfoliorfadri
 
Bill Greens Power Point Portfolio
Bill Greens   Power Point PortfolioBill Greens   Power Point Portfolio
Bill Greens Power Point Portfoliosoldierfc
 
Robert Parkin Portfolio
Robert Parkin PortfolioRobert Parkin Portfolio
Robert Parkin Portfoliorsparkin
 
How to develop a gateway service using code based implementation
How to develop a gateway service using code based implementationHow to develop a gateway service using code based implementation
How to develop a gateway service using code based implementationnitin2517
 
B Woodward Portfolio
B Woodward PortfolioB Woodward Portfolio
B Woodward Portfoliobwoodward
 
Strayer cis-515-week-7-assignment-6-sql-concepts-and-database-design
Strayer cis-515-week-7-assignment-6-sql-concepts-and-database-designStrayer cis-515-week-7-assignment-6-sql-concepts-and-database-design
Strayer cis-515-week-7-assignment-6-sql-concepts-and-database-designkxipvscsk02
 

Semelhante a SetFocus SQL Portfolio (20)

Porfolio of Setfocus work
Porfolio of Setfocus workPorfolio of Setfocus work
Porfolio of Setfocus work
 
Jazmine Kane Portfolio
Jazmine Kane PortfolioJazmine Kane Portfolio
Jazmine Kane Portfolio
 
Kevin Bengtson Portfolio
Kevin Bengtson PortfolioKevin Bengtson Portfolio
Kevin Bengtson Portfolio
 
Rodney Matejek Portfolio
Rodney Matejek PortfolioRodney Matejek Portfolio
Rodney Matejek Portfolio
 
Dennis Schmid Portfolio
Dennis Schmid PortfolioDennis Schmid Portfolio
Dennis Schmid Portfolio
 
Jessica Herndon Sql Portfolio
Jessica Herndon Sql PortfolioJessica Herndon Sql Portfolio
Jessica Herndon Sql Portfolio
 
Gunavathi_Resume
Gunavathi_ResumeGunavathi_Resume
Gunavathi_Resume
 
A.Asgharian.Portfolio
A.Asgharian.PortfolioA.Asgharian.Portfolio
A.Asgharian.Portfolio
 
Df12 Performance Tuning
Df12 Performance TuningDf12 Performance Tuning
Df12 Performance Tuning
 
SQL Server 2017 Community Driven Features
SQL Server 2017 Community Driven FeaturesSQL Server 2017 Community Driven Features
SQL Server 2017 Community Driven Features
 
Rinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat PortfolioRinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat Portfolio
 
Rinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat PortfolioRinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat Portfolio
 
Reynaldo Fadri’S Porfolio
Reynaldo Fadri’S PorfolioReynaldo Fadri’S Porfolio
Reynaldo Fadri’S Porfolio
 
Bill Greens Power Point Portfolio
Bill Greens   Power Point PortfolioBill Greens   Power Point Portfolio
Bill Greens Power Point Portfolio
 
Robert Parkin Portfolio
Robert Parkin PortfolioRobert Parkin Portfolio
Robert Parkin Portfolio
 
PowerBI Embedded in D365 Finance and Operations
PowerBI Embedded in D365 Finance and OperationsPowerBI Embedded in D365 Finance and Operations
PowerBI Embedded in D365 Finance and Operations
 
How to develop a gateway service using code based implementation
How to develop a gateway service using code based implementationHow to develop a gateway service using code based implementation
How to develop a gateway service using code based implementation
 
B Woodward Portfolio
B Woodward PortfolioB Woodward Portfolio
B Woodward Portfolio
 
Dbi h315
Dbi h315Dbi h315
Dbi h315
 
Strayer cis-515-week-7-assignment-6-sql-concepts-and-database-design
Strayer cis-515-week-7-assignment-6-sql-concepts-and-database-designStrayer cis-515-week-7-assignment-6-sql-concepts-and-database-design
Strayer cis-515-week-7-assignment-6-sql-concepts-and-database-design
 

SetFocus SQL Portfolio

  • 1.
  • 2.
  • 3.
  • 4.  
  • 5. Input Parameters: @AccountID, @CustomerID, @Transaction Amount. Once the procedure checks to see if the account is active and the transaction amount is greater than 0 new values are inserted into the Transactions table and the Balance in the Accounts table is updated.
  • 6. Input Parameters: @AccountID, CustomerID, @TransactionAmount. This procedure validates to make sure the customer is associated with the account and to make sure the account is active. Once all the validations are checked new values are inserted into the Transactions table.
  • 7. Input Parameters: @AccountID, @CustomerID, @UpdateType, @NewBalance, @SpecificOverdraftAccountID, GeneralOverdraft. Output Parameters: @CustomerAccountID. Validations: 1)Do not allow for a customer to be added to an account more than once. 2) Account cannot be reopen with less than $20. 3) Account cannot be closed unless balance is $0. Inserts: CustomerAccount table. Updates: AccountStatus
  • 8. The vBalance view is called by the GetBalance Stored Procedure to show the current balance with the last 5 transactions. The vCustomerAccountInfo view is called by the CustomerAccountInfo stored procedure to obtain statements by either CustomerID or AccountNumber. The vTransactionsView is called by the GetTransactions stored procedure to show transactions on a particular account for the past 30 days.
  • 9. Use DDL triggers to prevent customer accounts and transactions from being accidently deleted.
  • 10.
  • 11. Create a new filegroup, EmployeeWorkHistoryFG, containing one file, EmpWorkHist.ndf, in the default data directory of the default SQL Server 2008 instance. The data file should have an initial size of 100MB and should not allow for autogrowth.
  • 12. You have been assigned the task of creating a database snapshot that will allow the database to be recovered from the database snapshot, often referred to as reverting to the database snapshot.
  • 13. Riley is the first employee hired that will need access to select records from all tables in the Sales schema. In the upcoming weeks, several other Sales Managers will be hired, all of which will require the same access as Riley Using the principle of least privilege, give Riley and her future colleagues the minimal permissions necessary to perform their tasks.
  • 14. The Adventureworks company has decided that Production.Product data should be maintained at all three locations. The headquarters office, which is the default instance, should be the publisher and distributor. SQLInstance2 and SQLInstance3 will be subscribers in a transactional replication scenario that supports immediate updating subscribers.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.  
  • 20.