Question

You work for a manufacturing company. The company has recently hired a programmer who does not...

You work for a manufacturing company. The company has recently hired a programmer who does not have knowledge of SQL Server, but has been tasked to develop queries. As a database administrator, you have been tasked with the following to help him/her out with understanding queries and performance. Address the following in your discussion posts: What design considerations will the developer need to be aware of to ensure queries are optimized? Why? What should the developer be aware of when sorting data in a result set? Why? Explain how you can test a prototype query to fine-tune its performance characteristics.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Query Optimization:

1) fetch only the required colums or data, as it will unnecessarly flood the memory.

2) HAVING clause should be used to filter the rows after all the rows are selected.

3) minimize the number of subquery block in the main query. Subquery blocks the main query while it is running.

4) Use EXISTS instead of DISTINCT when using joins which involves tables having one-to-many relationship.

5) Use temporary tables only when needed.

6) delete and update in batches. It improves the performance to great extent as all the query are executed at one go.

While sorting the data in resultset, always collection should be used. Data should be extracted into List and then it should be shorted there as it increases the performance.

To fine-tune performance chars, we sholud use stored procedure, Optimize Your Transact-SQL Code, choosing appropriate data types, check for the use of properly when needed, most of the time we sholud avoid using cursors.

Add a comment
Know the answer?
Add Answer to:
You work for a manufacturing company. The company has recently hired a programmer who does not...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • You work for a manufacturing company. The company has recently hired a programmer who does not...

    You work for a manufacturing company. The company has recently hired a programmer who does not have knowledge of SQL Server, but has been tasked to develop queries. As a database administrator, you have been tasked with the following to help him/her out with understanding queries and performance. Address the following in your discussion posts: What design considerations will the developer need to be aware of to ensure queries are optimized? Why? What should the developer be aware of when...

  • You work for a manufacturing company, you are constantly being tasked with creating reports out of...

    You work for a manufacturing company, you are constantly being tasked with creating reports out of the SQL database, it consumes a good portion of your day setting up and generating these reports. What would be a good solution as a database administrator in solving this problem?

  • Imagine that you are an IT administrator with a medium sized manufacturing company. Your company has...

    Imagine that you are an IT administrator with a medium sized manufacturing company. Your company has the following equipment: 5 Servers in San Francisco, LA and Sacramento, all deploying Windows Server 2102R2 as follows: 1 SQL Server Database server in SFO 1 Exchange Email Server in SFO 1 File Server in SFO. This server is also the Domain Controller 1 File Server in Sacramento 1 File Server in L.A The file servers are connected through VPN lines to each other....

  • You have been hired as database administrator for Athabasca University and the computing services director asked you to...

    You have been hired as database administrator for Athabasca University and the computing services director asked you to tune the following database that is too slow for query processing. The database has two relations: Professor(sin, prof_name, office_no, age, gender, specialty, dept_did) Department(did, dept_name, budget, nbr_programs, chair_sin) After examining the application you found that the following queries are the five most common queries in the workload for this university application and that all are roughly equivalent in frequency and importance: o...

  • You have been hired by a Fortune 500 aerospace company to work on an integrated product...

    You have been hired by a Fortune 500 aerospace company to work on an integrated product development team (IPDT) tasked with designing a communications pod that mounts on top of the fuselage of a wide-body jet. The pod consists of an antenna, transmitter, receiver, controller, housing, coolant pump, power supply, and vibration dampening equipment. Name the type of engineer you would expect to find as the lead engineer for this project and explain why

  • You are working as an intern at a new company. Your boss, Paul, was recently hired...

    You are working as an intern at a new company. Your boss, Paul, was recently hired as a systems analyst and he needs to set up a structured walk-through/peer group review but isn’t quite clear on exactly what that involves. Since this is his first walk-through/peer group review, he wants to make a good impression. Paul has tasked you with finding the answers to the following questions: What is the purpose of the structured walk-through/peer group review? Why does it...

  • You are recently hired as a staff accountant for a small finished goods manufacturing company. Part...

    You are recently hired as a staff accountant for a small finished goods manufacturing company. Part of your duties include doing the month end inventory of finished goods. After a few months you do not look forward to this as the amount of inventory seems to be increasing. In order to satisfy your thoughts on this increase of inventory you decide to review the financial information for the last few months. Looking over the Income Statement you see the profits...

  • You are recently hired as a staff accountant for a small finished goods manufacturing company. Part...

    You are recently hired as a staff accountant for a small finished goods manufacturing company. Part of your duties include doing the month end inventory of finished goods. After a few months you do not look forward to this as the amount of inventory seems to be increasing. In order to satisfy your thoughts on this increase of inventory you decide to review the financial information for the last few months. Looking over the Income Statement you see the profits...

  • You have just been hired as the new Director of Human Resources at a mid-sized company...

    You have just been hired as the new Director of Human Resources at a mid-sized company of 48 employees. The company’s name is Florida Wireless, which is an authorized agent for Verizon Wireless. Florida Wireless has 5 retail locations throughout Central Florida. The stores are all very busy. Customer wait times are usually very long. Customer satisfaction surveys indicate poor service. Turnover is high for sales/customer service. Even though the stores are busy, store managers are not making the sales...

  • You are the HR Director of one of the most respected Computer Company. Your CEO recently...

    You are the HR Director of one of the most respected Computer Company. Your CEO recently fired the Executive Vice-President (EVP) of your company who was supposed to be the most qualified person to replace the CEO who is retiring in three years. You have been tasked to look for a replacement who would be the best person to assume the responsibilities of the EVP and would be able to take over the CEO after he retires. A colleague of...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT