| A community of more than 1,600,000 database professionals and growing |
| | Handling Inconvenient Requests This editorial was originally published on Dec 7, 2009. It is being re-run as Steve is on vacation. "You can have everything in life that you want if you will just help enough other people get what they want." - Zig Ziglar Early in my career, I read a lot of books by self-help gurus, seeking advice on how to make my career successful. While I learned a lot of useful information, the one insight that has stuck with me the longest is the quote from Zig Ziglar you can see above. While this quote might be promising more than it can deliver, it still rings true with me in most cases. I find this advice particularly helpful when I am faced with situations where helping someone else might be inconvenient to me. Let's look at one example... It's almost 5:00 PM on Friday afternoon and you get a call from a manager (who is not your boss), asking if you can help him run a report he is having difficulty with. He needs the report now so that he can work on a presentation over the weekend, to be delivered on Monday morning. When you get an inconvenient request for help like this, there are several different ways you might decide on a response. You could say no, because: Why should you have to work overtime because some manager isn't smart enough to run his own report? Why should you help out if the manager can't plan his time better, and make the request earlier in the day? Maybe you don't like the manager, or don't know him very well, and you don't have any desire to help him. Maybe you don't have time, because you have an important appointment at 5:30 PM. You could say yes, because: Perhaps that particular report is complex, and you can understand why he might need help with it. Perhaps the manager was just told an hour ago that he had to make a presentation on Monday, and he didn't have time to ask for help earlier. Maybe you know and like the manager, so you don't mind helping out. Maybe you don't have any pressing time constraints, and putting in a little extra time won't cause any problems for you. I could provide lots more reasons for saying either yes or no to the manager's request, but I think you get the point. When someone asks you for something that is an inconvenience to you, there are lots of pros and cons for deciding whether or not to help out. When I am faced with these types of difficult decisions, I try to remember Zig Ziglar's advice and use it to help me make the best decision. I may not always make the best choice (who can?), but keeping his advice in mind helps me to make more right choices than wrong ones. What do you think? When faced with a difficult decision about whether or not to help someone when it is inconvenient for you, what thought process do you go through? Brad McGehee from SQLServerCentral.comJoin the debate, and respond to today's editorial on the forums |
|
| |
| | | Adam Aspin from SQLServerCentral.com Comparing year on year sales is a fundamental requirement in much commercial analysis - here you learn how to do this in SQL More » |
| With more than 75% of organizations now having developers in their teams who work across both applications and databases, you need to ensure code quality is continually enforced. Matt Hilbert explains why. More » |
| Additional Articles from SimpleTalk Many organizations are moving to Azure and other cloud providers. Understanding how resources are being used and what is spent is very important. In this article, Feodor explains his solution for automating the collection of the Enterprise Agreement billing from Azure into an Azure SQL Database where it can be analyzed. More » |
| Steve Jones from SQLServerCentral Blogs I’ve been using the Redgate Software Data Masker for SQL Server in a number of situations to help customers. This... More » |
| Kenneth Fisher from SQLServerCentral Blogs I have a presentation I do every now again on security basics that I’m actually quite proud of. One of... More » |
|
|
| | Today's Question (by Steve Jones): I have this code to create a table and add an index. CREATE TABLE dbo.PurchaseOrder ( PurchaseOrderKey INT IDENTITY(1, 1) NOT NULL CONSTRAINT PurchaseOrderPK PRIMARY KEY , PONumber VARCHAR(100) , CustomerName VARCHAR(100) ); CREATE INDEX PurchaseOrderNDX_PO ON dbo.PurchaseOrder (PONumber) INCLUDE (CustomerName); GO I now run this: ALTER TABLE dbo.PurchaseOrder DROP COLUMN CustomerName GO What happens? |
Think you know the answer? Click here, and find out if you are right. We keep track of your score to give you bragging rights against your peers. This question is worth 1 point in this category: Alter table. We'd love to give you credit for your own question and answer. To submit a QOTD, simply log in to the Contribution Center. |
|
|
| |
| Yesterday's Question of the Day |
| Yesterday's Question (by Steve Jones): I have this data frame: > teambatting2017 Tm AB R H Dbl Trpl HR RBI 1 ARI 5525 812 1405 314 39 220 776 2 ATL 5584 732 1467 289 26 165 706 3 BAL 5650 743 1469 269 12 232 713 4 BOS 5669 785 1461 302 19 168 735 5 CHC 5496 822 1402 274 29 223 785 6 CHW 5513 706 1412 256 37 186 670 7 CIN 5484 753 1390 249 38 219 715 8 CLE 5511 818 1449 333 29 212 780 9 COL 5534 824 1510 293 38 192 793 10 DET 5556 735 1435 289 35 187 699 11 HOU 5611 896 1581 346 20 238 854 12 KCR 5536 702 1436 260 24 193 660 13 LAA 5415 710 1314 251 14 186 678 14 LAD 5408 770 1347 312 20 221 730 15 MIA 5602 778 1497 271 31 194 743 16 MIL 5467 732 1363 267 22 224 695 17 MIN 5557 815 1444 286 31 206 781 18 NYM 5510 735 1379 286 28 224 713 19 NYY 5594 858 1463 266 23 241 821 20 OAK 5464 739 1344 305 15 234 708 21 PHI 5535 690 1382 287 36 174 654 22 PIT 5458 668 1331 249 36 151 635 23 SDP 5356 604 1251 227 31 189 576 24 SEA 5551 750 1436 281 17 200 714 25 SFG 5551 639 1382 290 28 128 612 26 STL 5470 761 1402 284 28 196 728 27 TBR 5478 694 1340 226 32 228 671 28 TEX 5430 799 1326 255 21 237 756 29 TOR 5499 693 1320 269 5 222 661 30 WSN 5553 819 1477 311 31 215 796 I want to sort this by the number of home runs, descending. What command returns this data? Answer: teambatting2017[order(-teambatting$HR),] Explanation: One way to do this is with the order() function. This orders the values by their indicies. Using this inside brackets, returns the data in that order. Since we want the largest home run totals first, we use a - in front of the ordering column. There is no sort() function. Ref: Sorting data - click here » Discuss this question and answer on the forums |
|
|
| Database Pros Who Need Your Help |
| Here's a few of the new posts today on the forums. To see more, visit the forums. Availability Groups either -- Windows 2016 Failover Cluster vs SQL Server Cluster - Hello, I supported SQL Server Clustering for a number of years, but now I am facing a task to implement Availability... SQL help with date comaprisons - Hi, I have a scenario where i need to calculate the number of days of hold on a loan . Example is... Fact-and-Dimension vs Storing Character Values - Hey Everyone! I am new here, and have a question about "best practice" data warehouse design. I am facing a requirement to... Finding levels in a hierarchy - i have some data which has a variable amount of hiearchy levels to it, DAX has a function called Path(),... How to Transfer Linked Servers from one server to another automatically? - Dear All, Please help me to generate script automatically for transferring Linked Servers from one server to another. I know I... What does your backup process look like? - Hi, I'd be interested to hear how most of you have your backups set up. I know a lot of it... Need a dynamic way to return data that could be in on of a 10000 tables - So let me try to explain what we have. SQL SERVER PRO 2014. We have an extremely large table that is... Converting a COALESCE statement to varchar - Hello Everyone, I don't know if this is possible but I figured I would give it a try.... I have a... xp_cmdshell in database administration - Hi colleagues. I made T-SQL script for automatic backup databases which is on AlwaysON availability group. Whole script works prorerly but... CHECKDB - Cannot continue the execution because the session is in the kill state. - we started getting this last weekend on a large-ish AlwaysOn database (800GB). it failed on all 3 replicas last weekend. next... HELP,TSQL, - How do I write the SELECT stmt to condense multiple time spans - My attempts failed. I need a SELECT STMT that will give me 2 rows as output. The 2 rows must... How to get min and max date? - Hi Friends, Can someone help me to get a query to produce the output that showed in the below sql code.?... Grouping inside a loop - Good day all, Please i need help in grouping my result based on the current item inside a comma separated loop.... Standard Deviation (variance) using columns in same row. - Is there a way to get a variance from two columns in the same row? I have a row that... CDE in SQL - Does anyone know what is CDE in SQL? I have been asked this question on the interview but i had... Eliminate Null Values in a Cross Tab Query - Hi there, I have a problem with eliminating null-values in a cross tab. Perhaps someone out there would be so kind... How do we actually use Kerberos? - For as long as I've used SQL Server, I've always used it in a way where an application (either Windows... Is combining multiple SQL Server Database and Integration Services projects in one master solution a bad idea? - tl;dr: How do you organize your multiple SSDT projects that comprise a single solution? I've got a DW with these logical... Getting RMS VAX Data into SQL Server - I have a series of flat files sent over from a VAX that I need to import into sqlserver. These... Conversion failed because the data value overflowed the data type used by the provider. - Hi all, This is a follow up to a previous post from aprox 2 years ago. http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=145803 I have stored procedures set up... |
|
| This email has been sent to [email protected]. To be removed from this list, please click here. If you have any problems leaving the list, please contact the [email protected]. | This newsletter was sent to you because you signed up at SQLServerCentral.com. Feel free to forward this to any colleagues that you think might be interested. If you have received this email from a colleague, you can register to receive it here. | This transmission is ©2018 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved. Contact: [email protected] |
|
|