Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

Browse by Tags · View All
#SQLServer 46
SQL Server 44
SSRS EXPERT 41
BI 36
#BI 33
brh 28
SSIS BEST PRACTICES 23
TSQL 19
MS BI STACKS 18
SSRS 17

Archive · View All
March 2011 24
July 2011 17
February 2011 15
April 2010 13
June 2011 11
May 2011 11
April 2011 11
July 2010 11
March 2010 8
December 2011 7

SQL Interview Q #1 – What is First Normal Form (1NF)?

Nov 12 2011 1:34AM by Sherry Li   

My blog has many practical tips and best pratices for SQL/BI developers,but I haven’t focused on interview questions for SQL/BI developers so far. This might change in the future. It’s been a challenge for many people to break into or stay competitive in the SQL/BI profession.

I am very lucky to be able to stay in the profession and also stay in the financial industry. It’s been very rewarding for me to share my experience and knowledge through this blog.

Many recruiters do not understand what exactly a SQL/BI Developer does. One thing they assume we don’t do is design. On the contrary, designing from simple table structure to the entire sub-system for staging and ETL is our daily job.

In this blog, I’ll share with you one simple SQL design interview question and the answer that will set you apart from other candidates.

Interview question: what is First Normal Form (1NF)?

In order to give an answer that will earn you an A, we need to relate 1NF to what we do every day first. Memorising answers from hundrands of SQL blogs will not get you very far, because under the pressure of being interviewed by several people, your memory will start to suffer from impairment very soon.

Have you ever created primary keys for your SQL tables? I bet you have. But have you ever asked yourself why do we need to create primary keys? Or have you ever asked yourself a question in an even bigger scope: how do we efficiently organize data in a database?

Here are the simple answers to the above questions:

  1. Normalization is the process of efficiently organizing data in a database.
  2. There are two goals of the normalization process.
  3. One goal is to eliminate redundant data.
  4. Another goal is to ensure data dependencies make sense (only storing related data in a table).
  5. First normal form (1NF) happens to be the very basic rule for an organized database.
  6. The implementation of 1NF principle in DBMS is to create primary key for a SQL table.
  7. Now we know 1NF is implemented as primary key in DBMS. With the above answers, you’ve already received an A. With the additions below, you will for sure get a solid A+.

  8. When creating PK for a table, we want to accomplish two things.
  9. One is to eliminate duplicative columns from the same table.
  10. Another one is to create separate tables for each group of related data and identify each row with a unique column or set of columns (the primary key).

Tags: #SQLServer, SQL Server, SQL INTERVIEW QS,


Sherry Li
14 · 12% · 3697
4
 
0
Lifesaver
 
0
Refreshed
 
0
Learned
 
0
Incorrect



Submit

7  Comments  

  • Excellent Posts!

    commented on Nov 14 2011 11:52PM
    Pinal Dave
    146 · 1% · 326
  • Thank you for a wonderful post! i appreciate it.

    Quick Quote on Normalization: "The data depends on the key [1NF], the whole key [2NF] and nothing but the key [3NF] , so help me codd!"

    commented on Nov 15 2011 12:43AM
    Paras Doshi
    16 · 10% · 3265
  • Excellent, Very basic and help full to remember

    commented on Nov 23 2011 1:06AM
    LeelaKrishna
    1823 · 0% · 10
  • Very good post. Thumbs up!

    commented on Nov 23 2011 3:14AM
    woodymax
    867 · 0% · 33
  • Sherry,

    I have a follow-up question. How does creating a Primary Key eliminate duplicative columns from the same table?

    Woodymax

    commented on Nov 23 2011 3:18AM
    woodymax
    867 · 0% · 33
  • Great job

    commented on Nov 23 2011 8:23AM
    Ashraf
    226 · 1% · 197
  • Great post, Sherry! Normal forms are something that most people do sub-consciously. What is important is to have an understanding and avoid leaving this half-way by a clear understanding of these basic fundamentals.

    @Paras: Great way to remember the normal forms! Thanks for sharing!

    commented on Nov 26 2011 12:40PM
    Nakul Vachhrajani
    4 · 33% · 10575

Your Comment


Sign Up or Login to post a comment.

"SQL Interview Q #1 – What is First Normal Form (1NF)?" rated 5 out of 5 by 4 readers
SQL Interview Q #1 – What is First Normal Form (1NF)? , 5.0 out of 5 based on 4 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]