Unix Technical Forum

Position of Table Columns

This is a discussion on Position of Table Columns within the SQL Server forums, part of the Microsoft SQL Server category; --> Dear All, I want to get more than one table columns as a single column by alternative. For eg, ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-01-2008, 03:47 PM
Ganapathi sundaram
 
Posts: n/a
Default Position of Table Columns

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-01-2008, 03:47 PM
Tom van Stiphout
 
Posts: n/a
Default Re: Position of Table Columns

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

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

-Tom.


>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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-01-2008, 03:47 PM
--CELKO--
 
Posts: n/a
Default Re: Position of Table Columns

>> 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-01-2008, 03:47 PM
Madhivanan
 
Posts: n/a
Default Re: Position of Table Columns

On Jan 2, 2:31*pm, Ganapathi sundaram <ganapathysunda...@gmail.com>
wrote:
> 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:51 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com