Click here to Skip to main content
15,919,434 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
This is the question i faced in an interview.

can any one help?
Posted

"Can anyone help?"
Yes: Use a database and try each of clauses in a statement, you'll only learn about them by doing them. This[^] will give you pretty much all the information you'll ever need, though you could google for the specific terms.
 
Share this answer
 
There's no single way to write a query like that. Actually depending on the requirements there are enormous amount of possibilities. Have a look at the syntax specification: http://msdn.microsoft.com/en-us/library/ms189499.aspx[^]

Then some examples: http://msdn.microsoft.com/en-us/library/ms187731.aspx[^]

And most importantly test and explore different things in order to learn. One good resource in learning is: http://www.w3schools.com/sql/default.asp[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900