Home > Ask the SQL Server Experts > Andrew Novick - Development Questions & Answers > Nullable fields in a table
Ask The SQL Server Expert: Questions & Answers
EMAIL THIS

Nullable fields in a table

Andrew Novick EXPERT RESPONSE FROM: Andrew Novick

Pose a Question
Other SQL Server Categories
Meet all SQL Server Experts
Become an Expert for this site


Expert advice on database administration
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


>
QUESTION POSED ON: 06 September 2005
I have a Web-based application that creates mini sites for people. A user will sign up for the site with some basic personal information and then, once approved, they will add more information (one to zero or one). For example, bio short description, bio long description, head shot (.jpg) and work description.

Should I use nullable fields in the table containing the user's name, or normalize into other tables (bio, images, work)? If I choose the later, then do I create the records with null fields before they enter data, or do it on the first "update"?


>
EXPERT RESPONSE
This is basically up to you and your style. Unless there are a large enough number of rows in my table to make performance a consideration, I generally prefer a simpler structure to a more complex one. So put the nullable columns in the table containing the user's name. The fewer tables you have to access, the simpler your program.


Do you have comments on this Ask the Expert Q&A? Let us know.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
Andrew Novick - Development
Connecting Visual Basic to SQL Server
Stored procedures in Crystal Reports
Storing an image file in SQL Server
Storing large amounts of data as ntext data type
Stored procedures looking at different databases
Code trigger that captures login and system date
Stored procedures and remote procedure calls
Using newid in SQL Server to insert records in parent-child tables
How to use results from one stored procedure in another
How to display the XML result of 'Select For XML Explicit'

Web services/SOA
Calling a stored procedure remotely
SQL Server Express a sign of LAMP's success
jTDS: Open-source JDBC 3.0 middleware driver for SQL Server
What are XML Web Services?
Web services, BI fuel DBA job market

SQL/Transact SQL (T-SQL)
SQL Server data conversions from date/time values to character types
SQL and SQL Server Tutorial and Reference Guide
How to use the SELECT statement in SQL
Translating information requests into SQL SELECT statements
SQL SELECT statement and SELECT query samples
Using the ORDER BY clause of the SELECT query in SQL
Using DISTINCT in SQL to eliminate duplicate rows
Basics for working with DATETIME and SMALLDATETIME in SQL Server 2005
How to configure Database Mail in SQL Server 2005 to send mail
SQL Server stored procedures tutorial: Write, tune and get examples
SQL/Transact SQL (T-SQL) Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
Collaboration Data Objects  (SearchSQLServer.com)
container  (SearchSQLServer.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2005 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts