How do you think while formulating Sql Queries. Is it an experience or a concept ?

Posted by Shantanu Gupta on Stack Overflow See other posts from Stack Overflow or by Shantanu Gupta
Published on 2010-04-12T16:03:24Z Indexed on 2010/04/12 16:22 UTC
Read the original article Hit count: 402

I have been working on sql server and front end coding and have usually faced problem formulating queries.

I do understand most of the concepts of sql that are needed in formulating queries but whenever some new functionality comes into the picture that can be dont using sql query, i do usually fails resolving them.

I am very comfortable with select queries using joins and all such things but when it comes to DML operation i usually fails

For every query that i never done before I usually finds uncomfortable with that while creating them. Whenever I goes for an interview I usually faces this problem.

Is it their some concept behind approaching on formulating sql queries.

Eg.

I need to create an sql query such that

A table contain single column having duplicate record. I need to remove duplicate records. 

I know i can find the solution to this query very easily on Googling, but I want to know how everyone comes to the desired result.

Is it something like Practice Makes Man Perfect i.e. once you did it, next time you will be able to formulate or their is some logic or concept behind.

I could have get my answer of solving above problem simply by posting it on stackoverflow and i would have been with an answer within 5 to 10 minutes but I want to know the reason. How do you work on any new kind of query. Is it a major contribution of experience or some an implementation of concepts.

Whenever I learns some new thing in coding section I tries to utilize it wherever I can use it. But here scenario seems to be changed because might be i am lagging in some concepts.

© Stack Overflow or respective owner

Related posts about sql

Related posts about sql-query