You will never reach the perfection

These are the chosen quotes dedicated to “Perfection” – you will never reach it and your life will pass beside you. There also interesting quotes for people who are afraid to make mistakes and some clever thoughts for hard workers (better work clever then work hard).

  • Have no fear of perfection – you’ll never reach it.
  • Strive for excellence, not perfection.
  • If you can’t do what you want, do what you can.
  • Good enough is good enough.
  • The risk of a wrong decision is preferable to the terror of indecision.
  • How does a project get to be a year behind schedule? One day at a time.
  • It’s not the hours you put in your work that counts, it’s the work you put in the hours.
  • 80% of a company’s sales come from 20% of its products.
  • Mistakes are the portals of discovery.
  • Because he has never forgiven himself any fault, he can forgive no one else’s.
  • Nothing is worse than active ignorance.
  • Avoid having your ego so close to your position that when your position falls, your ego goes with it.
  • Leadership is based on inspiration, not domination; on cooperation, not intimidation.
  • A person who trusts no one can’t be trusted.
  • Nothing is as simple as we hope it will be.
  • To be or not to be. That’s not really a question.
  • If you think you can, you can. And if you think you can’t, you’re right.
  • If you don’t think every day is a good day, just try missing one.

Using SQL Server APPLY command in queries

APPLY clause in Transact-SQL is interesting because it can be user in the following scenario:
For example, you might create a query that returns a list of payments (in this case last 2 payment amounts and dates) for each subscriber inside your SaaS product.

SELECT c.Id AS CustomerId,
       c.Firstname + ' ' + c.Lastname AS Name,
       i.PaidDate,
       i.Amount
FROM   Customer c
OUTER APPLY
(
  SELECT TOP 2 i.PaidDate, i.Amount
  FROM Invoice i
  WHERE i.CustomerId = c.Id
  ORDER BY i.PaidDate DESC
) AS i
WHERE YEAR(c.Registered) = YEAR(GETDATE())

You get something like this

958 Usain Jordan 2014-06-01 299.00
958 Usain Jordan 2014-07-18 458.00
110 Seagal KungFu 2014-01-12 15.16
110 Seagal KungFu 2014-03-06 17.45

Wimbledon final and soft drink ads

Watching right now Wimbledon men’s final between Novak Djokovic and Roger Federer (btw, hoping that Djokovic will win it).

Almost every ad between games and sets are from producers of soft drinks (Nestea, Coca-Cola, Schweppes) and energy drinks (unknown RedBull competition). They are promising fun, health life, enjoyment and similar crap.

If I can give you some advice in this area I can tell you just don’t buy anything like this. Think logically… If they have so much money to spend on advertisement in prime time of biggest sport events that means that ingredients are cheap and there is really a great profit margin. It for sure is not good for your health – you can only get fat. If they don’t put physical sugar they will add artificial one which is not healthy at all. Read the ingredients on the label.

The best drink of your life is clear water. But not the water from the plastic bottle. I am talking about common water from your water pipe. Just use you phone and set a 2-hour reminder that will alert you to drink one glass of water every two hours. Don’t wait to be thirsty – it is already too late. Just drink by your timer alarm. Your brain needs water to operate properly. If you do like this, you will be more productive, less tired and you will live longer.

Cheers!

P.S. (happy update)
When I was writing this it was 1:1 in sets (I believed before the match that it will be 3:1 for Djokovic but it was 3:2 in very dramatic and high quality match). Bravo Novak, you have deserved it!

Follow

Get every new post delivered to your Inbox

Join other followers