You are here: Re: a newbie question on derived/computed column « MsSQL Server « IT news, forums, messages
Re: a newbie question on derived/computed column

Posted by metaperl on 07/11/06 20:38

Erland Sommarskog wrote:

>
> CREATE TABLE tradingdays (date datetime NOT NULL,
> dayno int NOT NULL,
> CONSTRAINT pk_tradingdays PRIMARY KEY (date),
> CONSTRAINT u_tradingdays UNIQUE (dayno))
>
> That is a table that maps a day to a number. The rest is easy.

I'm not following this.

- how would this table be populated and what with?
- how does the day number tell you that a day is not a weekend or
holiday?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация