Sunday, 17 June 2012

SQL SERVER INTERVIEW QUESTION - PART 2



What is normalization?
Normalization is the basic concept used in designing a database. Its nothing but, an advise given to the database to have minimal repetition of data, highly structured, highly secured, easy to retrieve. In high level definition, the Process of organizing data into tables is referred to as normalization.

What is a stored procedure:
Stored procedures are precompiled T-SQL statements combined to perform a single task of several tasks. Its basically like a Macro so when you invoke the Stored procedure, you actually run a set of statements. As, its precompiled statement, execution of Stored procedure is compatatively high when compared to an ordinary T-SQL statement.


What is the difference between UNION ALL Statement and UNION ?
The main difference between UNION ALL statement and UNION is UNION All statement is much faster than UNION,the reason behind this is that because UNION ALL statement does not look for duplicate rows, but on the other hand UNION statement does look for duplicate rows, whether or not they exist.
Example for Stored Procedure?
They are three kinds of stored procedures,1.System stored procedure – Start with sp_2. User defined stored procedure – SP created by the user.3. Extended stored procedure – SP used to invoke a process in the external systems.Example for system stored proceduresp_helpdb - Database and its propertiessp_who2 – Gives details about the current user connected to your system. sp_renamedb – Enable you to rename your database

What is a trigger?
Triggers are precompiled statements similar to Stored Procedure. It will automatically invoke for a particular operation. Triggers are basically used to implement business rules.

What is a view?
If we have several tables in a db and we want to view only specific columns from specific tables we can go for views. It would also suffice the needs of security some times allowing specfic users to see only specific columns based on the permission that we can configure on the view. Views also reduce the effort that is required for writing queries to access specific columns every time.

What is an Index?
When queries are run against a db, an index on that db basically helps in the way the data is sorted to process the query for faster and data retrievals are much faster when we have an index.

What are the types of indexes available with SQL Server?
There are basically two types of indexes that we use with the SQL ServerClustered -
1. It will format the entire table, inturn physically sort the table.
2. Only one clustered index can be created for a table.
3. Data will be located in the leaf level.
4. By default, primary key will create clustered index on the table.
Non-Clustered Index
1. It wont touch the structure of the table.
2. It forms an index table as reference to the exact data.
3. A reference to the data will be located in the leaf level.
4. For a table, we can create 249 non clustered index.


Courtesy : http://mrsupport.blogspot.com/

SQL SERVER INTERVIEW QUESTIONS - PART 1

What is the significance of NULL value and why should we avoid permitting null values?
Null means no entry has been made. It implies that the value is either unknown or undefined.We should avoid permitting null values because Column with NULL values can't have PRIMARY KEY constraints. Certain calculations can be inaccurate if NULL columns are involved.

What is SQL whats its uses and its component ?
The Structured Query Language (SQL) is foundation for all relational database systems. Most of the large-scale databases use the SQL to define all user and administrator interactions. It enable us to retrieve the data from based on our exact requirement. We will be given a flexibility to store the data in our own format.




The DML component of SQL comprises four basic statements:
* SELECT to get rows from tables
* UPDATE to update the rows of tables
* DELETE to remove rows from tables
* INSERT to add new rows to tables


What is DTS in SQL Server ?
Data Transformation Services is used to transfer the data from one source to our required destination. Considering am having some data in sql server and I need to transfer the data to Excel destination. Its highly possible with dialogue based tool called Data Transformation services. More customization can be achieved using SSIS. A specialized tool used to do such migration works.


What is the difference between SQL and Pl/Sql ?

Straight forward. SQL is a single statement to finish up our work.Considering, I need some data from a particular table. “Select * from table” will fetch the necessary information. Where as I need to do some row by row processing. In that case, we need to go for Procedural Logic / SQL. 

What is the significance of NULL value and why should we avoid permitting null values?
Null means no entry has been made. It implies that the value is either unknown or undefined.We should avoid permitting null values because Column with NULL values can't have PRIMARY KEY constraints. Certain calculations can be inaccurate if NULL columns are involved.

Difference between primary key and Unique key?
Both constraints will share a common property called uniqueness. The data in the column should be unique. The basic difference is,
· Primary key won’t allow null value. Whereas, unique key will accept null value but only one null value.
· On creating primary key, it will automatically format the data inturn creates clustered index on the table. Whereas, this characteristics is not associated with unique key.
· Only one primary key can be created for the table. Any number of Unique key can be created for the table.

SELECT STATEMENT IN SQL SERVER

Select Statement in SQL Server 

STRING FUNCTIONS IN SQL SERVER

String Functions in sql server
Substring/Len/replace/Ltrim/Rtrim

Saturday, 16 June 2012

Microsoft .NET Framework Repair Tool Released


Microsoft has released a new tool called as Microsoft .NET Framework Repair Tool that will help you resolve issues you may face with the .NET  Framework on your Windows computer.

This tool troubleshoots common issues with the setup of or with updates to Microsoft .NET Framework setup installation. Additionally, this tool tries to resolve these issues by applying known fixes or by repairing the installed product. 

Specifically, the tool will typically carry out the following tasks:

· Re-register Windows Installer service. It unregisters and re-registers the Windows Installer service using MsiExec.exe. Applicable regardless of the diagnosis results. 

· Restart Windows Installer service. It stops and restarts the Windows Installer service. Applicable regardless of the diagnosis results. 

If any additional fixes need to be applied, those too will be recommended on completion of the run. 

While one may need to troubleshoot .NET Frameworks 4.0 Install Issues on Windows manually, or run the .NET Framework Setup Cleanup Utility and try to install the .NET Framework again, running the new .NET Framework Repair Tool from Microsoft should now be the first option, should you be facing any .NET Framework issues on your Windows computer. 


Source : http://www.thewindowsclub.com ,  Via : http://sapost.blogspot.in/

Vodafone Launches Ask a Doctor Service


Vodafone India today announced the launch of 1st ever Wap health portal “Ask a doctor” a unique health portal for its customers. With the current service health and care service launched its becomes the simplest mode to ask any query on health.
This service is priced at Rs. 5/day and allows customers to ask unlimited queries or questions from qualified experts. Answers to the queries or questions will be provided within 24 hours.

Few features of the health portal ,Any questions asked by the customers will be archived in the “My questions” section for any future reference. Also customers can browse through the questions asked by the users. Customers can know about the questions asked by the others users also.
Customers can know various myths & facts related with a disease.Interesting medical cases in the Very short story format. Basics health tips will also be updated to handle some common challenges.How to activate sms HC5 from your Vodafone number and send it to 111 / 144. Charged at Rs. 5/day with unlimited queries. To cancel CAN<>HC5 to 111/144.
Courtesy : http://telecomtalk.info

Facebook wants your Mobile Number


In a bid to improve security on Facebook, the social networking website is asking each of its more than 900 million active users to provide it with their mobile phone numbers.
The move comes in the wake of much-publicised password hacks at other networking sites including LinkedIn and eHarmony, the Daily Mail reported.
Millions of Facebook users have already seen a link at the top of their desktop news feed requesting them to follow simple security tips.

Those that click on the link are led to the site’s security page, where they are asked to pick a unique password and given a tutorial on how to spot an online scam.
They are then requested to provide their phone number for secure account recovery.
This, Facebook claims, works because when a user confirms their phone number it allows the site to automatically wipe their password in the event of their account being hacked.
The social network would then send a text message to the user informing that their password has been changed.
This, the site reasons, would be preferable to sending the user and email because many of these are ignored as assumed junk and get deleted.
Facebook said the desktop security message, already seen by millions of users in the U.S., will be on all accounts in the next few days.
Source : the Hindu

Friday, 15 June 2012

Safety Of Mobile Phones



Remember to ::
Keep your phone out of sight in your pocket or handbag when not in use
Use your phone's security lock code, if it has one
Install a tracer software if it is available in the market.
Record details of your IMEI number or Electronic Serial Number (ESN) and consider separate insurance
You can obtain IMEI number by typing *#06# (star hash 06 hash) into your mobile phone and it will display a 15 digit number
Feed your address and alternative number in welcome message of your mobile phone. If it is found, you can be contacted at least.
Copy the sensitive data, contact details and pictures from mobile phone to your personal computer.
Report a lost or stolen phone to the police immediately
Inform your service provider if your phone is stolen or lost


Don't
Attract attention to your phone when you are carrying or using it in the street
Leave your phone in an unattended car, on your table, cash counters, wash basins.
Give to strangers who just make a call as their phone is discharged or there is no balance in the mobile phone.

 Buying a Second Hand Mobile
  Please follow the checklist below...
Insist on bill with IMEI written on it.
If you find a stolen mobile inform Police
If the IMEI sticker is tampered or erased in the battery slot do not buy the phone

Monday, 11 June 2012

Cloud Storage: How Useful is Google Drive?


Did you know that you store a lot of your personal and official information on a cloud? Where do you think all the attachments in your web mail accounts are stored? However, when it comes to consciously storing data and accessing it, most of us prefer a USB flash drive or, if the data is sizeable, a portable hard disk drive (HDD). Now, Google Drive aims to change this since it is not just a warehouse, but also offers a bunch of applications. 


An office suite 

At first glance, Google Drive seems just another storage service; all you see is a series of files that you would want to share. However, when you visit the Google Drive website ( drive.google.com), you will also see a 'create' option, which lets you use Google's online office suite, Google Docs. This allows you to create and edit documents, spreadsheets, drawings, even presentations, providing you with an online office suite. It's almost like having a computer in your browser.

To use Google Drive, all you need is a Google ID. If you have a Gmail account, it will suffice. You can also download the Google Drive app on your computer, be it a PC or a Mac, as well as Android phone and tablet. Though you can create and edit documents through the app on your Android phone, this facility isn't available offline if the app is downloaded on to your computer.
Google Drive offers 5 GB of storage for free. If you need more, you will have to shell out a monthly fee, which starts at $2.49 (Rs 137) a month for 25 GB, and goes up to $800 (Rs 44,000) a month for 16 TB. Upgrading to a paid account will also expand the storage of your Gmail account and Picasa web albums as the storage is shared among these. 


Share and sync 



The search feature is very good as you can hunt not just for document names but also terms used in them and, in a neat touch, even for words used in scanned documents. In fact, you can upload PDFs and scanned documents and Google Drive will translate them into Google Docs using optical character recognition. However, this aspect requires some fine-tuning. Google Drive keeps most of Google Docs' sharing options intact. So you can share documents and files from Google Drive either by sending them as attachments or simply by sharing links. 




This is where we discovered another impressive feature of Google Drive. If you share a document with someone else, they will be able to view it even if they do not have the software you used to create it. For instance, if you share an image you created using Photoshop, it can be seen by recipients even if they do not have Photoshop. What's more, they will be able to comment on it. 

The best part is that all the files you store on your Google Drive will be synchronised automatically across different devices, allowing you to access the same files from different computers, phones and tablets. You can even see live updates of changes made by you or anyone you have shared a file with. All you need is an Internet connection, so you don't have to worry about carrying your pen drive.

Source : http://economictimes.indiatimes.com

Courtesy : http://sapost.blogspot.in/