dbTalk Databases Forums  

Position of Table Columns

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Position of Table Columns in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ganapathi sundaram
 
Posts: n/a

Default Position of Table Columns - 01-02-2008 , 03:31 AM






Dear All,

I want to get more than one table columns as a single column by
alternative.

For eg,

Table name = employee

columns = empid, empname, address1,address2

Here, I want to interpolate the address2 column on address1 as
mentioned below,

empid empname address1
address2

1 aaa First Layout,
CA, US.


Thanks in advance.

Thanks and Regards,
Ganapathi sundaram.G

Reply With Quote
  #2  
Old   
Tom van Stiphout
 
Posts: n/a

Default Re: Position of Table Columns - 01-02-2008 , 08:32 AM






On Wed, 2 Jan 2008 01:31:21 -0800 (PST), Ganapathi sundaram
<ganapathysundarum (AT) gmail (DOT) com> wrote:

How about this:
select empid, empname, address1 + CHAR(13) + CHAR(10) + address2
from employee

-Tom.


Quote:
Dear All,

I want to get more than one table columns as a single column by
alternative.

For eg,

Table name = employee

columns = empid, empname, address1,address2

Here, I want to interpolate the address2 column on address1 as
mentioned below,

empid empname address1
address2

1 aaa First Layout,
CA, US.


Thanks in advance.

Thanks and Regards,
Ganapathi sundaram.G

Reply With Quote
  #3  
Old   
--CELKO--
 
Posts: n/a

Default Re: Position of Table Columns - 01-02-2008 , 03:15 PM



Quote:
I want to get more than one table columns as a single column by alternative.
Formatting is done in the front end in a tiered architecture, never in
the database. This is a basic programming concept and applies to more
than just SQL.


Reply With Quote
  #4  
Old   
Madhivanan
 
Posts: n/a

Default Re: Position of Table Columns - 01-03-2008 , 07:36 AM



On Jan 2, 2:31*pm, Ganapathi sundaram <ganapathysunda... (AT) gmail (DOT) com>
wrote:
Quote:
Dear All,

I want to get more than one table columns as a single column by
alternative.

For eg,

Table name = employee

columns = empid, empname, address1,address2

Here, I want to interpolate the address2 column on address1 as
mentioned below,

empid empname address1
* * * * * * * * * * * * * * *address2

1 * * * *aaa * * * * * *First Layout,
* * * * * * * * * * * * * * CA, US.

Thanks in advance.

Thanks and Regards,
Ganapathi sundaram.G

Where do you want to show data?
It seems you should use Reports


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.