Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

COLUMN FORMULA

 
   Database Help (Home) -> Datamining RSS
Next:  Unexpected ShutDown  
Author Message
soc

External


Since: Apr 05, 2004
Posts: 9



(Msg. 1) Posted: Mon Apr 05, 2004 7:37 pm
Post subject: COLUMN FORMULA
Archived from groups: microsoft>public>sqlserver>datamining (more info?)

Is it possible to generate a password column by putting an expression into
the formula field when defining the column, to combine other fields? e.g.
(left([varcharcol1],2) &[integeridentitycol] & right([varcharcol2],1))

Thanks Sean.

 >> Stay informed about: COLUMN FORMULA 
Back to top
Login to vote
Jamie MacLennan 1

External


Since: Aug 24, 2003
Posts: 54



(Msg. 2) Posted: Mon Apr 05, 2004 7:37 pm
Post subject: Re: COLUMN FORMULA [Login to view extended thread Info.]
Archived from groups: microsoft>public>sqlserver>datamining, others (more info?)

Forwarding to appropriate newsgroup

--

-Jamie MacLennan
SQL Server Data Mining
This posting is provided "AS IS" with no warranties, and confers no rights.
"soc" <zxc0.DeleteThis@yahoo.com> wrote in message
news:unM21PyGEHA.3360@TK2MSFTNGP12.phx.gbl...
 > Is it possible to generate a password column by putting an expression into
 > the formula field when defining the column, to combine other fields? e.g.
 > (left([varcharcol1],2) &[integeridentitycol] & right([varcharcol2],1))
 >
 > Thanks Sean.
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: COLUMN FORMULA 
Back to top
Login to vote
Anith Sen

External


Since: Feb 17, 2004
Posts: 310



(Msg. 3) Posted: Tue Apr 06, 2004 11:58 am
Post subject: Re: COLUMN FORMULA [Login to view extended thread Info.]
Archived from groups: microsoft>public>sqlserver>datamining (more info?)

Here is an example:

CREATE TABLE tbl (
idCol INT NOT NULL IDENTITY,
vcol1 VARCHAR(20) NOT NULL,
vcol2 VARCHAR(20) NOT NULL,
compcol AS LEFT(vcol1, 2) + CAST(idcol AS VARCHAR) + RIGHT(vcol2, 1));

If these are nullable columns, then you have to use ISNULL/COALESCE to
change the values to avoid string concatenation on NULLs.

--
Anith
 >> Stay informed about: COLUMN FORMULA 
Back to top
Login to vote
soc

External


Since: Apr 05, 2004
Posts: 9



(Msg. 4) Posted: Tue Apr 06, 2004 1:30 pm
Post subject: Re: COLUMN FORMULA [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks/Sorry
Which group did you forward it to?

"soc" <zxc0.DeleteThis@yahoo.com> wrote in message
news:unM21PyGEHA.3360@TK2MSFTNGP12.phx.gbl...
 > Is it possible to generate a password column by putting an expression into
 > the formula field when defining the column, to combine other fields? e.g.
 > (left([varcharcol1],2) &[integeridentitycol] & right([varcharcol2],1))
 >
 > Thanks Sean.
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: COLUMN FORMULA 
Back to top
Login to vote
soc

External


Since: Apr 05, 2004
Posts: 9



(Msg. 5) Posted: Tue Apr 06, 2004 6:03 pm
Post subject: Re: COLUMN FORMULA [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Many thanks Anith!
"Anith Sen" <anith.RemoveThis@bizdatasolutions.com> wrote in message
news:eH0j089GEHA.3060@TK2MSFTNGP10.phx.gbl...
 > Here is an example:
 >
 > CREATE TABLE tbl (
 > idCol INT NOT NULL IDENTITY,
 > vcol1 VARCHAR(20) NOT NULL,
 > vcol2 VARCHAR(20) NOT NULL,
 > compcol AS LEFT(vcol1, 2) + CAST(idcol AS VARCHAR) + RIGHT(vcol2,
1));
 >
 > If these are nullable columns, then you have to use ISNULL/COALESCE to
 > change the values to avoid string concatenation on NULLs.
 >
 > --
 > Anith
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: COLUMN FORMULA 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Collation Problem any help - Hello all : My problem is like the following I have an online databse with a latin collation, this database is using ntext and nvarchar values that was with our previous admin ok the problem is in the data is stored should use another collation (the...

Reprocessing a mining model - I'm currently developing a user registration prototype. The aim is to classify certain types of users. However, after the registration I query a decision tree model in Analysis Services with DMX and I want to send the user data into the warehouse to....

Trying to cut down query times - I have a query that is based on two other queries that are based on tables in a database. All of the queries that are used for this final query use grouping and totals. In the application I am making, I need to choose a date range to select the subset....

Update serial number in database - Hi, I want to update specific fields in a existing table in SQL database as below example: L240100001-LG L240100002-LG *serial number is difficult to update one by one L240100003-LG L240100004-LG L240100005-LG change to L240100001-L L240100002-L..

Newbie question - I have SQL Server 2000. What add-ons do I need to try data mining, and where do I best go for resources/references?
   Database Help (Home) -> Datamining All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]