Click here to Skip to main content
15,888,454 members
Home / Discussions / Database
   

Database

 
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 
AnswerRe: Get start date Pin
Hum Dum8-Dec-11 0:11
Hum Dum8-Dec-11 0:11 
GeneralRe: Get start date Pin
Elizabeth Rani8-Dec-11 0:25
Elizabeth Rani8-Dec-11 0:25 
AnswerRe: Get start date Pin
SilimSayo8-Dec-11 10:49
SilimSayo8-Dec-11 10:49 
QuestionHow to Call A web service inside SQL server Pin
yousefshokati7-Dec-11 17:30
yousefshokati7-Dec-11 17:30 
AnswerRe: How to Call A web service inside SQL server Pin
David Skelly7-Dec-11 22:26
David Skelly7-Dec-11 22:26 
GeneralRe: How to Call A web service inside SQL server Pin
yousefshokati8-Dec-11 0:28
yousefshokati8-Dec-11 0:28 
AnswerRe: How to Call A web service inside SQL server Pin
SilimSayo8-Dec-11 8:27
SilimSayo8-Dec-11 8:27 
QuestionExporting and Importing data from and into SQL Server 2008 Pin
SQL Ed7-Dec-11 2:58
SQL Ed7-Dec-11 2:58 
AnswerRe: Exporting and Importing data from and into SQL Server 2008 Pin
Blue_Boy7-Dec-11 3:11
Blue_Boy7-Dec-11 3:11 
QuestionSum the counts from two different tables Pin
Elizabeth Rani7-Dec-11 1:04
Elizabeth Rani7-Dec-11 1:04 
AnswerRe: Sum the counts from two different tables Pin
Corporal Agarn7-Dec-11 8:46
professionalCorporal Agarn7-Dec-11 8:46 
AnswerRe: Sum the counts from two different tables Pin
SilimSayo7-Dec-11 12:50
SilimSayo7-Dec-11 12:50 
GeneralRe: Sum the counts from two different tables Pin
Elizabeth Rani7-Dec-11 19:46
Elizabeth Rani7-Dec-11 19:46 
GeneralRe: Sum the counts from two different tables Pin
SilimSayo8-Dec-11 3:25
SilimSayo8-Dec-11 3:25 

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.