Showing posts with label MISCALLANEOUS. Show all posts
Showing posts with label MISCALLANEOUS. Show all posts

Sunday, 31 July 2016

T SQL NOTES

Primary Key, Foreign Key, Unique, Not Null
INF - each set of column must have a unique value, There is a primary key
2NF - for a table that has concatenated primary key, each column in the table that is not part of the primary key must depend upon the entire concatenated key for its existence
3NF - there should not be the case that a non-prime attribute is determined by another non-prime attribute,
4NFevery non-prime attribute of table must be dependent on primary key

CREATE  TABLE <table name> {<columnname> <type> <NOT NULL|UNIQUE> ... Constraint <constraint name> <PRIMARY KEY | FOREIGN KEY>(<column name>) REFERENCES <TABLE NAME (COLUMN NAME)> }
varchar(max), int, bigint, money, float [ (precision) ], date, datetime, time [ (fractional second) ], text, image, binary, varbinary(max)
PRIMARY KEY, UNIQUE, FOREIGN KEY, CHECK, NOT NULL
INDEX

ALTER TABLE <table name>
ADD <column> or ALTER <column> or DROP <column>

DROP TABLE <table name>

INSERT INTO <table name> (<column names>) VALUES (<column values>)

UPDATE <table name>
SET <modification> //modifies column value
WHERE <condition>

DELETE FROM <table name> //deletes row
WHERE <condition>

BEGIN  TRAN  <transaction name>
<INSERT/UPDATE/DELETE>
COMMIT  TRAN  <transaction name> or ROLLBACK  TRAN  <transaction name>

SELECT select_list [AS]
[ INTO new_table_name ] (specifies that the result set is used to create a new table)
FROM table_list
[ WHERE search_conditions ]
[ GROUP BY group_by_list ] (partitions the result set into groups based on the values)
[ HAVING search_conditions ] (an additional filter that is applied to the result set)
[ ORDER BY order_list [ ASC | DESC ] ]

OPERTORS USED
DISTINCT, SUM, AVG, MAX, MIN, COUNT

Conditional Operators FOR WHERE:
= <> > < >= <=
IN , NOT IN (test for several values)
BETWEEN, NOT BETWEEN (intervals)
IS NULL, IS NOT NULL
LIKE, NOT LIKE ( % or _ )
EXISTS, NOT EXISTS (sub queries)
AND, OR

JOINS:
SELECT column_name(s)
FROM  table_name1 INNER JOIN table_name2
ON    table_name1.column_name = table_name2.column_name

table_name1 INNER JOIN table_name2 - excludes data that does NOT satisfy the join
table1 LEFT OUTER JOIN table2 - all rows from table 1 will be included
table1 RIGHT OUTER JOIN table2 - all rows from table 2 will be included
table1 FULL OUTER JOIN table2 - all rows from each table will be included
table_name1 CROSS table_name2Each - row in one table is paired to every row in the other table

QUERY [UNION | INTERSECT | EXCEPT] QUERY


ROW FUNNCTIONS:

SELECT <ROW FUNCTION>

MATH:
ABS, DEGREES, RAND, ACOS
EXP, ROUND, ASIN, LOG, SIN
ATN2, LOG10, SQRT, CEILING
FLOOR, SIGN, ATAN,PI
SQUARE, COS, POWER
TAN, COT, RADIANS

STRING:
ASCII, NCHAR, SOUNDEX, CHAR, PATINDEX
SPACE, CHARINDEX, DIFFERENCE, REPLACE
STUFF, LEFT, REPLICATE, SUBSTRING
QUOTENAME, STR,LEN, REVERSE
UNICODE, LOWER, RIGHT
UPPER, LTRIM, RTRIM

DATE/TIME:
DATEADD, DATEDIFF
DATENAME, DATEPART
DAY, MONTH, YEAR
GETDATE, GETUTCDATE

DATA TYPE CASTING:
CAST( 'abc'  AS varchar(5) )
SUBSTRING(Name, 1, 30)  AS  ProductName
CONVERT(int, ListPrice) LIKE '3%';

CASE:
SELECT  title, price,
Budget = CASE price
WHEN price > 20.00 THEN 'Expensive‘
WHEN price BETWEEN 10.00 AND 19.99 THEN 'Moderate'
WHEN price < 10.00 THEN 'Inexpensive'
ELSE 'Unknown'
END,
FROM titles

SUB QUERIES:
QUERY [IN | NOI IN] (QUERY)

VIEWS:
CREATE VIEW <VIEW NAME> AS (QUERY)

PROCEDURE:
CREATE PROCEDURE <PROCEDURE NAME>
AS
(QUERY)
EXECUTE <PROCEDURE NAME>

FUNCTIONS:
CREATE FUNCTION whichContinent
(@Country nvarchar(15))
RETURNS varchar(30)
AS BEGIN
declare @Return varchar(30)
  select @return = case @Country
when 'Argentina' then 'South America‘
when 'Belgium' then 'Europe'
when 'Brazil' then 'South America‘
else 'Unknown'
End
return @return
end

TRIGGERS:
CREATE TRIGGER trigAddStudents
ON Students
FOR INSERT
AS
DECLARE @Newname VARCHAR(100)
SELECT @Newname =(SELECT Name FROM INSERTED)
PRINT 'THE STUDENT ' + @Newname + ' IS ADDED.';

Saturday, 17 October 2015

Blops Privacy


  1. Blops doesn't collect any information from its users.
  2. Blops doesn't contain any tracking codes and is ad free

Thursday, 15 October 2015

Adding Ads to android app

1. Add a line to it like the one in bold above. This instructs gradle to include code from the play-services-ads artifact, which is found in the Google Repository.

build.gradle (excerpt)
...
dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        compile 'com.android.support:appcompat-v7:22.2.0'
        compile 'com.google.android.gms:play-services-ads:8.1.0'
    }
...


Friday, 28 August 2015

TCS HR Interview TIps

1. Introduce Yourself ?
Start with the present and tell why you are well qualified for the position. Remember that the key to all successful interviewing is to match your qualifications to what the interviewer is
looking for. In other words you must sell what the buyer is buying. This is the single most important strategy in job hunting.

Suggestion: your answer to this question should cover your educational background very briefly. You should talk about your achievements, if any, either in your academic or in work or both.
Then you can add a few details about what type of person you are, your likes, dislikes, etc. Giving details about your family background is not compulsory. Before interview frame a good answer and practice in front of a mirror.

2. Why should I take you in TCS?
Whether your interviewer asks you this question explicitly or not, this is the most important question of your interview because he must answer this question favorably in is own mind
before you will be hired. So help him out! Walk through each of the position’s requirements as you understand them, and follow each with a reason why you meet that requirement so well.

3. Who inspired you to become an Engineer?
Make pre preparation for such questions. Have a few heroes /Leaders of the industry in mind , who have achieved something extraordinary in their life.
Know about their life history and mention one such name with his achievements. Cite some of his quotes or values possessed by such a personality that according to
him has been the cause of his extraordinary success. Mention such qualities /Values that will be highly valuable in your success in the position you are being interviewed.

What is your weakness?
Do NOT mention key weaknesses here. This is not the place to say you are bad at meeting deadlines or you never mastered highschool mathematics etc. Turn this question around to your benefit. For example, you are 'over ambitious' or 'extremely attentive to detail' or 'like to take on too many projects'. Make it sound positive.
Extra co-curricular activities?
Explain work you have done apart from your studies.
Are you a team player?
You are, of course, a team player. Be sure to have examples ready. Specifics that show you often perform for the good of the team rather than for yourself are good evidence of your team attitude. Do not brag, just say it in a matter-of-fact tone. This is a key point.

Why should we hire you?
Again, explain that you are very interested in the job and demonstrate what it is about your past experiences, education and qualifications that makes you ideal for the job. Show enthusiasm and support your answers with evidence wherever you can. Elaborate on all the past experiences and skill sets that make you suitable for the job. In cases where your past experience is not directly relevant, you can still find elements of it that can be useful. Play up team skills, computer skills, leadership roles, specific courses and independent research activities that can be useful to the job at hand to show your initiative even where you don't have directly relevant job experience.

Tell me about your dream job?
Be honest. Also mention keywords such as challenging, steep learning curve, good work culture, demanding, rewarding, opportunities for advancement and growth, team environment, opportunity to build and maintain client relationships etc.

What is more important to you: the money or the work?
This one will reveal the real you. Money is always important, but the work is the most important. There is no better answer.

Are you willing to work overtime? Nights? Weekends?
This is up to you. Be totally honest.

Would you be willing to relocate if required?
You should be clear on this with your family prior to the interview if you think there is a chance it may come up. Do not say yes just to get the job if the real answer is no. This can create a lot of problems later on in your career. Be honest at this point and save yourself future grief.

Tell me about the recent trends in IT industry?
Be prepared with two or three trends that illustrate how well you understand your industry. You might consider technological challenges or opportunities, economic conditions, or even regulatory demands as you collect your thoughts about the direction in which your business is heading.

If you are rejected today, then what will you do?
Well this question does not mean that they are rejecting you. So don’t get dishearten. This is more like a ‘stress question’ to judge how you react during a stress situation. This could also be because they want to know your other plans like if you have also applied for other companies or if you are very adamant about joining TCS. Either ways it does not mean that they are going to reject you. And make sure your answer is positive.
Where you’re native place is and for what it is famous?
You obviously know your native place right? But its better you also learn few things about the place as well. This is something about you, and you will be expected to know these little details.
Who is the founder of Google?
Mr. Larry Page and Mr. Sergey Brin? Well yes. But, did you really knew this? No?

Who are the competitors of TCS in the world market as well as in Indian market?
A little study about the current market should certainly help. A good homework will reflect in your answer and that will really be impressive. This will show the interviewer that you are concerned about this interview and job.
Infosys, Wipro, HCL Tech, Oracle Financ,Mahindra Satyam, Tech Mahindra, Mphasis, Patni Computer
How you rank yourself compared with your friends?

Who is the founder of TCS?
Jamsetji Nusserwanji Tata established TATA Group in 1869. However it was under Mr. Jehangir Ratanji Dadabhoy Tata (JRD Tata), that this group was expanded and hence TCS was established in 1968. Currenty Mr. Ratan Tata is the Chairman of the group.

Who is the present CEO?
Mr. Natarajan Chandrasekaran is the Chief Executive Officer (CEO) and Managing Director of the company. If you did not know this basic fact about TCS, then you have not done your homework well. Be ready for such questions.
What is the name of the award TCS recently received?
Tata Consultancy Services (TCS), has won six awards for outstanding HR leadership at Asia's Best Employer Brand Awards 2010, in Singapore.
Award for Talent Management
Award for Excellence in HR through Technology
Award for Continuous Innovation in HR Strategy at Work
Award for Innovation in Recruitment
Award for Innovative Retention Strategy
Award for Excellence in Training

What is your aim?
Be honest at this part, because all that the interviewer wants to know is whether your aim and goal match with the company’s objective or not.

Wat r u r skills? Do u hav any certifications on u r skills?
Yes? Well good, however be ready with your certificates to show them (if asked). And if your answer is a No, then be ready to answer ‘why no’!

4. There's a bond of 2 years ....... u' re ok with it?
5. You'll be sent to any part of the country for work...... will you be ok with that?
First find out where you may have to relocate and how much travel may be involved. Then respond to the question.
6. Have you discussed about your job with your family?
This is up to you. Be totally honest

7. Why you want to join TCS? or  Why do you want to join TCS and not any other company?
Try to speak something about good work environment & growth.

Example : I heard from my friends that TCS has a very good work environment where employees get good respect. Moreover, TCS is one of the Top IT company in India and abroad. I want to be part of Asia's largest Software Company where I can also grow along with the company. For these reasons, I prefer TCS.
Caution: Never tell the reasons such as ONSITE or SALARY. That gives a negative impression on you.

8. What do you know about TCS as a company?
Best sources for researching your target company: annual reports, the corporate newsletter, contacts you know at the company or its suppliers, advertisements, articles about the company in the trade press.

Tata Consultancy Services Limited (TCS) is an Indian multinational IT services, business solutions and outsourcing company headquartered in Mumbai- India and a subsidiary of the Tata Group conglomerate. It is the largest Asia based provider of business process outsourcing services. TCS has been ranked #20 in the list of top companies of India, by Fortune India 500 magazine. It is the largest IT service company in India by revenue and market capitalization.
TCS has 142 offices across over 42 countries and generates around 30 per cent of India's IT exports. The company became the first Indian IT company to cross the ten billion dollar milestone posting annual revenues of $10.17 billion.
9.Do you have any questions for me?
Job hunters need to know whether a potential position is a good fit for them professionally and culturally. To do that, they need to find out all they can about a potential employer's company or department. To help you in this endeavor, here are the questions you should ask during initial job interviews .By taking this list with you to that next job interview , you'll be able to ask the right question to help you determine whether the company will be a good fit for your talents and expectations.


Why is this position open?
can you explain a typical day in this role?
what is the company policies regarding training ?
would the job description assigned to me be based on my interest area?
could you describe the work culture (do people work time , overtime, etc...)
what are the personal growth opportunities (such as leadership training , company supported community work , mentoring, and so on)?
what is the training budget?
how many employee do you have?

Monday, 24 August 2015

TCS Verbal Round

Directions:
1. Use all the phrases given 
2. Minimum words should be 50 otherwise your email cannot be validated
3. Addressing and signing should be done as in the question given. 
4. Common grammatical rules, punctuation should be according to standard english.
5. you can use your own phrases along with the phrases given. 

Question 1: Using the following phrases, write an email with minimum of 70 words to the customer Mr. Gill Roy explaining delay to the project.

Payment processing system – Schedule – 10th May (Friday) – Unexpected power outage – 3 days – Overall delay – 7 days – includes recovery of lost work – will not recur


Sample Answer:


Dear Gill Roy


The project “Payment processing system” was scheduled to be delivered on 10th May (Friday). However, due to an unexpected power outage in our offshore site for the past 3 days, work did not progress as expected. Also we lost a few of our works as backup systems did not come online.  Hence we are expecting an overall delay includes recovery of lost work in the delivery of the project for a maximum of 7 days within which our team will work on the issues. Apologies for the delay and we will ensure that the mistake will not recur in future again. 


Thanks and Regards 

XXX


Question 2: You are a part of corporate communication team in your company.  The working time period is revised as 8:30 am to 5:00 pm. Using the following phrases, write an email with a minimum of 70 words and a maximum of 100 words to the employees in your company informing the same. 

by 30 minutes to avoid traffic - effect from next week - lunch duration-revised working time - reduced by 10 minutes-free breakfast-office will start earlier-till the end of rainy season-will be in effect.

Dear All

We hereby announce a change in the work timings as 8.30 AM to 5.00 PM, with effect from next week, till the end of rainy season Which means, office hours would commence 30 mins earlier to cover up minimum 30 Mins extra time being spent during peak hour traffic during monsoons. Also, additional changes include reduction of lunch duration by 10 minutes & timings of free breakfast are now applicable from 7.30 AM to 8.30 AM only. Since request to each one of you to adhere to the new timings.

Have a nice day
Regards
Lead - Corporate Communications

Question 3: As your company is doing good business and expanding, your company is relocating it's office to a new address.  Using the following phrases, write an email with a minimum of 70 words and a maximum of 100 words to your customer informing the change in address.

near outer ring road-shifting to-bigger office space-November 10-change in telephone number-new address is provided below-fourth floor-Cesina Business Park.

Dear All

We are happy to announce that we are moving out to much spacious office from November 10th onwards.  It is indeed a great sign of our ever growing business & our increasing clientele.
Hence, for a better productivity results, our management has taken a decision of increasing the team size & allocate us a much more spacious facility with all the modern state of art amenities.
Our new abode will be Fourth Floor, Cesina Business Park, Near Outer Ring Road, Bangalore/Chennai/Hyderabad etc.,

Please also make a note of new board line number (reception number)-xxx-xxxxxxxx.  Lets us all make the most use of the resources available in the said new office to server our clients
better.

Thanks & Regards 

Question 4: You are the project leader for a team of 20 members.  As the team members are not submitting the weekly time sheets regularly, you need to email them stressing the need to submit without fail.  Using the following phrases, write an email with a minimum of 70 words and a maximum of 100 words to your team members informing the same.  

can be accessed online-lead to loss of pay-every week-do not default-used to bill client-actual working hours-by friday-failure to adhere-time sheet filling application.

Dear All

It has been observed that many of you are not filling the timesheets on regular basis.  Let me tell you, filling up time sheets is the only way, to measure your hardwork, as long as you are working on this project. So please do not default on this.  More over, This is important for us to report it to our client, the actual amount of work done by each one of you in terms of number of hours per day, at the end of every week. 
Only on the basis of this, we can bill you all to the client, which is directly linked to you monthly salary.  In our words, it leads to loss of pay for any particular day, for which time sheet is not filled.
Please adhere to the company guidelines & fill the same on daily basis or atleast weekly basis.
Time sheet filling application is easily accessible in our intranet portal, which needs your login credentials.

Please do the needful on regular basis.

Regards
Project Lead
xxxx

Saturday, 25 April 2015

The 7 Natural Laws of the Universe

The 7 Natural Laws of the Universe
The Law of Attraction is just part of one of the 7 natural laws of the Universe: the Law of Vibration. Of the 7 Laws, it may be the most important in how our everyday lives play out, but all of the laws are in effect whether we are aware of them or not. Knowing what the 7 laws are and how they work can make a significant difference in applying them to create the life you truly desire.

The 7 natural laws are in no particular order, but since the Law of Attraction has been discussed so much in The Secret, we’ll start with it.

The Law of Vibration states that everything vibrates and nothing rests. Vibrations of the same frequency resonate with each other, so like attracts like energy. Everything is energy, including your thoughts. Consistently focusing on a particular thought or idea attracts its vibrational match. How to apply it: Focus on what you want instead of what you don’t want.

The Law of Relativity states that nothing is what it is until you relate it to something. Point of view is determined by what the observer is relating to. The nature, value, or quality of something can only be measured in relation to another object. How to apply it: Practice relating your situation to something worse than yours, and you will feel good about where you are.

The Law of Cause and Effect states that for every action, there is an equal and opposite reaction. Every cause has an effect, and every effect has a cause. Be at cause for what you desire, and you will get the effect. All thought is creative, so be careful what you wish for… you will get it. How to apply it: Consistently think and act on what you desire to be effective at getting it.

The Law of Polarity states that everything has an opposite. Hot-Cold, Light-Dark, Up-Down, Good-Bad. In the absense of that which you are not, that which you are… is not. Polar opposites make existence possible. If what you are not didn’t coexist with what you are, then what you are could not be. Therefore, do not condemn or criticize what you are not or what you don’t want. How to apply it: Look for the good in people and situations. What you focus on, you make bigger in your life.

The Law of Rythym states that everything has a natural cycle. The tides go in and back out, night follows day, and life regenerates itself. We all have good times and bad times, but nothing stays the same. Change is constant. Knowing that “This too shall pass” is great wisdom about life’s ebb and flow. How to apply it: When you are on a down swing, know that things will get better. Think of the good times that are coming.

The Law of Gestation states that everything takes time to manifest. All things have a beginning and grow into form as more energy is added to it. Thoughts are like seeds planted in our fertile minds that bloom into our physical experience if we have nourished them. How to apply it: Stay focused and know that your goals will become reality when the time is right.

The Law of Transmutation states that energy moves in and out of physical form. Your thoughts are creative energy. The more you focus your thinking on what you desire, the more you harness your creative power to move that energy into results in your life. The Universe organizes itself according to your thoughts. How to apply it: Put your energy and effort, your thoughts and actions into attracting what you desire, and you will surely attract the physical manifestation of that energy.

The 7 Natural Laws of the Universe are working with you and for you. Take charge of your life by focusing on what you want, and by law, you will have it.