Click here to Skip to main content
15,902,114 members
Home / Discussions / Database
   

Database

 
AnswerRe: colums to single row Pin
_Damian S_12-Dec-11 19:43
professional_Damian S_12-Dec-11 19:43 
AnswerRe: colums to single row Pin
SilimSayo13-Dec-11 3:13
SilimSayo13-Dec-11 3:13 
AnswerRe: colums to single row Pin
gvprabu22-Dec-11 1:45
gvprabu22-Dec-11 1:45 
Questionerror has occurred while establishing a connection Pin
Member 808991411-Dec-11 23:54
Member 808991411-Dec-11 23:54 
AnswerRe: error has occurred while establishing a connection Pin
Satheesh154612-Dec-11 1:20
Satheesh154612-Dec-11 1:20 
AnswerRe: error has occurred while establishing a connection Pin
thatraja12-Dec-11 1:58
professionalthatraja12-Dec-11 1:58 
QuestionSQL Server Management Studio R2 (varchar(MAX)) Pin
Framework .l.11-Dec-11 18:13
Framework .l.11-Dec-11 18:13 
AnswerRe: SQL Server Management Studio R2 (varchar(MAX)) Pin
Mycroft Holmes11-Dec-11 19:04
professionalMycroft Holmes11-Dec-11 19:04 
GeneralRe: SQL Server Management Studio R2 (varchar(MAX)) Pin
Framework .l.11-Dec-11 19:26
Framework .l.11-Dec-11 19:26 
GeneralRe: SQL Server Management Studio R2 (varchar(MAX)) Pin
Mycroft Holmes11-Dec-11 19:40
professionalMycroft Holmes11-Dec-11 19:40 
GeneralRe: SQL Server Management Studio R2 (varchar(MAX)) Pin
Framework .l.11-Dec-11 20:47
Framework .l.11-Dec-11 20:47 
GeneralRe: SQL Server Management Studio R2 (varchar(MAX)) Pin
Mycroft Holmes11-Dec-11 22:13
professionalMycroft Holmes11-Dec-11 22:13 
GeneralRe: SQL Server Management Studio R2 (varchar(MAX)) Pin
Framework .l.11-Dec-11 22:34
Framework .l.11-Dec-11 22:34 
AnswerRe: SQL Server Management Studio R2 (varchar(MAX)) Pin
Eddy Vluggen12-Dec-11 8:37
professionalEddy Vluggen12-Dec-11 8:37 
Questiongenerate specific format in sql table Pin
sk_ko11-Dec-11 15:46
sk_ko11-Dec-11 15:46 
AnswerRe: generate specific format in sql table Pin
Mycroft Holmes11-Dec-11 19:00
professionalMycroft Holmes11-Dec-11 19:00 
GeneralRe: generate specific format in sql table Pin
sk_ko11-Dec-11 21:20
sk_ko11-Dec-11 21:20 
GeneralRe: generate specific format in sql table Pin
Mycroft Holmes11-Dec-11 22:11
professionalMycroft Holmes11-Dec-11 22:11 
AnswerRe: generate specific format in sql table Pin
PIEBALDconsult12-Dec-11 1:54
mvePIEBALDconsult12-Dec-11 1:54 
GeneralRe: generate specific format in sql table Pin
sk_ko12-Dec-11 2:57
sk_ko12-Dec-11 2:57 
AnswerRe: generate specific format in sql table Pin
jschell12-Dec-11 8:51
jschell12-Dec-11 8:51 
AnswerRe: generate specific format in sql table Pin
Eddy Vluggen12-Dec-11 10:15
professionalEddy Vluggen12-Dec-11 10:15 
sankooo wrote:
I want to add one column in sql table.

That will be in specific format.

Mycroft is right, but it's half the story. Tables hold data, not information.

sankooo wrote:
If the year changes to new year, I want to start from 00001. like that.

That's a composite column, and in the ideal world we try to keep the data atomic. That means that you can loose the date-part, as that's already encoded in the previous column. You also don't need the prefix-zeroes, those are merely there for presentation. Hence, all you need in the ApplicationID-row is a sequence-number; all other information is already present and the complete applicationID as you need can be calculated from the rest of the tuple.

The other half of the story is that we don't want to duplicate information, as that would be redundant (and thus, increases the chances for errors).

I'd suggest you read up on normalization[^] procedures.
Bastard Programmer from Hell Suspicious | :suss:

Questionupdate and view news headline Pin
Jassim Rahma10-Dec-11 21:48
Jassim Rahma10-Dec-11 21:48 
AnswerRe: update and view news headline Pin
Wayne Gaylard10-Dec-11 22:26
professionalWayne Gaylard10-Dec-11 22:26 
QuestionGet start date Pin
Elizabeth Rani7-Dec-11 23:50
Elizabeth Rani7-Dec-11 23:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.