Wednesday, April 26, 2006

तू कोण आहेस माझा?

आपल्या जवळजवळ प्रत्येक भेटीत तू मला तोच, एकमेव प्रश्‍न विचारतेस, "तू कोण आहेस माझा?' हा प्रश्‍न तू मला विचारलेला तर असतोच, पण तो तू स्वतःलाही विचारत असतेस. तुला उत्तर सापडेल, न सापडेल, माहिती नाही. पण मला मात्र उत्तर सापडलंय, नव्हे ते मी कष्टपूर्वक शोधलंय. तुला आजपर्यंत सांगितलं नाही, पण आता सांगतो. ऐक.... मनुष्यजन्म अतिदुर्लभ असतो म्हणतात. असं दुर्लभ भाग्य आपल्या दोघांच्या वाट्याला आलंय. अन्‌ दुधात साखर म्हणजे, माझ्यावर जिवापाड प्रेम करणारं माणूस मला मिळालंय. त्याला अन्‌ त्याच्या प्रेमाला मला तितकंच काळजीपूर्वक जपून ठेवायचंय. इतकसंसुद्धा न दुखावता... शेवटी ही सगळी करामत नात्याचीच असते ना! एक पुरुष म्हणून मी सर्व रूपांतली नाती निभावणार आहे... "मग ? उद्याचा काय प्रोग्रॅम?' असं जेव्हा मी विचारेन तेव्हा ती चौकस चौकशी नसेल, तर मित्र या नात्याने उत्सुकतेपोटी विचारलेला, प्रॉंट उत्तराची अपेक्षा नसलेला एक साधासुधा प्रश्‍न असेल. एका संध्याकाळी मोगऱ्याच्या गच्च सुवासाचा गजरा तुझ्या ओंजळीत ठेवेन तेव्हा मी तुझा प्रियकरच असेन. समुद्रकाठी वाळूत मनसोक्त फिरून झाल्यानंतर शांतपणे, डोळे मिटून तुझ्या मांडीवर डोकं ठेवून पडेन तेव्हा तुझा व्रात्य तरीही प्रेमळ मुलगा असेन. क्वचित कधी तुला उशीर झाला अन्‌ मला म्हणालीस, "न्यायला ये ना रे.' तर तुला न्यायला येताना, माझ्या मनातल्या भावना एखाद्या मोठ्या भावाप्रमाणेच असतील. तुला मिळालेलं बक्षीस, ट्रॉफी दाखवशील, तेव्हा त्या ट्रॉफीसकट बक्षिसासकट तुला मिठीत घेऊन कपाळावर ओठ टेकवताना, पित्याचं वात्सल्य कसं असतं, हे माझं मलाच उमजेल. पहिल्या लाजऱ्याबुजऱ्या श्रावणसरीनंतर जेव्हा मी तुला विचारेन, "चल येतेस? मस्त भटकून येऊ दोन दिवस.' तेव्हा प्रेमाबरोबर मला मैत्रीचीदेखील ओढ असेल.. आणि जेव्हा तुझ्या हातचं सुग्रास जेवून तृप्ततेचा विडा खाताना, तुझ्या कामसू गोऱ्या हातात नाटकाची दोन तिकिटं ठेवेन तेव्हा, त्याक्षणी मी फक्त तुझ्या नवरा असेन. संपूर्णपणे नवरा. ही सर्व नाती एकाच जन्मात निभावताना माझा निभाव लागेल की नाही माहीत नाही, पण प्रयत्न तर नक्कीच सच्चामुच्चा असेल. "माझ्यावर विश्‍वास ठेव' असं मी म्हणणार नाही, कारण तो आहेच... अगदी भरभक्कम आहे. त्यावरच तर ही नात्याची गुंफण होणार आहे. "फक्त तुझाच' हे नेहमी शेवटी येणारे शब्द माझ्या तोंडी नेहमी सर्वप्रथम असतील. कारण, उत्तरं शोधणाराच जाणतो राणी प्रश्‍नांची किंमत. आणि मौल्यवान प्रश्‍नांसाठी मौल्यवान उत्तरंच हुडकून काढतो.

job reservations

ET has opened a debate on "Is Premji right to go against job quotas in Wipro?"
As expected most of the posts agree with him... here is someone who put his pt in a v diff way.. :))

I think we should have job reservations in all the fields. I completely support the PM and all the politicians for promoting this.

Let's start the reservation with our cricket team. We should have 10 percent reservation for muslims. 30 percent for OBC, SC/ST like that. Cricket rules should be modified accordingly. The boundary circle should be reduced for an SC/ST player. The four hit by an OBC player should be considered as a six and a six hit by a OBC player should be counted as 8 runs. An OBC player scoring 60 runs should be declared as a century.
We should influence ICC and make rules so that the pace bowlers like Shoaib Akhtar should not bowl fast balls to our OBC player. Bowlers should bowl maximum speed of 80 kilometer per hour to an OBC player. Any delivery above this speed should be made illegal.

Also we should have reservation in Olympics. In the 100 meters race, an OBC player should be given a gold medal if he runs 80 meters.

There can be reservation in Government jobs also. Let's recruit SC/ST and OBC pilots for aircrafts which are carrying the ministers and politicians (that can really help the country.. )

Ensure that only SC/ST and OBC doctors do the operations for the ministers and other politicians. (Another way of saving the country..)

Let's be creative and think of ways and means to guide INDIA forward... Let's show the world that INDIA is a GREAT country. Let's be proud of being an INDIAN..

Wednesday, April 19, 2006

Paka's wedding

Paka's wedding is on 14th May.
Waiting eagerly to meet all of the wishram people there.

Saturday, April 15, 2006

Another win

Anothe win today in a chess game...
1. e4 e5 2. Nf3 d6 3. Nc3 c6 4. d4 Bg4 5. dxe5 Bxf3 6. Qxf3 dxe5 7. Bc4 Qc7 8. O-O a5 9. Rd1 h6 10. Be3 Nf6 11. a3 b5 12. Ba2 Na6 13. Ne2 Bc5 14. Ng3 Bxe3 15. Qxe3 O-O 16. Nf5 Kh7 17. Rd6 Rad8 18. Rxf6 g5 19. Rxh6+ Kg8 20. Qxg5# 1-0

Friday, April 14, 2006

Not exactly related to SQL, but one of my passions...
Chess...

I play white in this game.
1. e4 e6 2. e5 d5 3. d4 c5 4. c3 Nc6 5. Nf3 Qb6 6. dxc5 Bxc5 7. Be3 Bxe3 8. fxe3 Qxb2 9. Nbd2 Qxc3 10. Be2 Qxe3 11. Rb1 Nxe5 12. Rb3 Nxf3+ 13. Nxf3 Qe4 14. O-O Nf6 15. Ng5 Qg6 16. Bb5+ Bd7 17. Bxd7+ Nxd7 18. Nxf7 Ke7 19. Nxh8 Rxh8 20. Rxb7 Ra8 21. Qa4 Rd8 22. Qxa7 Qe4 23. Qc5+ Ke8 24. Rxd7 Kxd7 25. Rf7+ 1-0

Tuesday, April 04, 2006

Formula in SQL server 2000 database

Question:
How to use the formula when creating the table. What is the benefit of using this?

Gabbar:
CREATE table #mytable (myID int, PromoCode varchar(32),
PromoExpiration AS CASE WHEN PromoCode IS NOT NULL THEN dateadd(day,10,getdate()) ELSE NULL END)

Benifit is you don't have to take care of the value in this field in case of INSERT and UPDATE both. The value in the formula field are always in sync with your data.

delete ...

Question:
How would I write a SQL statement to delete rows from tables based upon matching values between 2 tables ?

Gabbar:
DELETE t1
FROM
tblTable1 t1
INNER JOIN tblTable2 t2 ON
(t1.fldID = t2.fldID
AND t1.fldField5 = t2.fldField5)
WHERE
t2.fldField6 = @Value

Age calculation

Question:
From tblAge (fields: DOB, City),
I need to pull out the counts of ages specified (let say Age_Category) below:

50 & under
51-64
65-69
70-74
75-79
80-84
85 & up

The output is to show:

Age_Category, City, count (city) based on DOB vs the date specified (let say 10/30/05).

Gabbar:
SELECT
CASE
WHEN DATEDIFF(YEAR, DOB, getdate()) < 51 THEN '50 & under'
WHEN DATEDIFF(YEAR, DOB, getdate()) BETWEEN 51 AND 64 THEN '51-64'
-- add another betweens cases here
WHEN DATEDIFF(YEAR, DOB, getdate()) > 84 THEN '85 & up'
END
AS Age_Category,
City,
count(city)
FROM
tblAge
GROUP BY
City,
CASE
WHEN DATEDIFF(YEAR, DOB, getdate()) < 51 THEN '50 & under'
WHEN DATEDIFF(YEAR, DOB, getdate()) BETWEEN 51 AND 64 THEN '51-64'
-- add another betweens cases here
WHEN DATEDIFF(YEAR, DOB, getdate()) > 84 THEN '85 & up'
END