dbTalk Databases Forums  

Result on a single line

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss Result on a single line in the microsoft.public.sqlserver.clients forum.



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

Default Result on a single line - 05-28-2008 , 08:30 AM






Hi,

Using MS Query, I like to query an Informix database and get the result of
multiple rows on a single line. I would like to end up with a specific
colomn showing the result on a signle line which include several rows like
this

Col 1 - Col 2 - Col 3 - Col 3 - Col 3 - Col 3
data data data1 data2 data3 data4

Instead of

Col 1 - Col 2 - Col 3
data data data1
data2

Can I do that in MS Query?

Thanks in advance.

Amiro
data3



Reply With Quote
  #2  
Old   
Amiro
 
Posts: n/a

Default Re: Result on a single line - 05-28-2008 , 09:32 AM






Thanks for replying but it doesn't work. I got an error message. I think it
doesn't like the + sign...
Here is the query:

SELECT inv2.in2_in1_code, inv2.in2_loc_mag, inv2.in2_en1_code, loc1.lc1_loc,
loc1.lc1_seq, loc1.lc1_date
FROM prog.inv2 inv2, prog.loc1 loc1
WHERE loc1.lc1_en1_code = inv2.in2_en1_code AND loc1.lc1_in1_code =
inv2.in2_in1_code AND ((inv2.in2_en1_code='3') AND
(inv2.in2_in1_code='2001492'))

loc1.lc1_loc is the column that we need the data to show on several columns.

Amiro

"Rubén Garrigós" <rgarrigos (AT) solidq (DOT) com> a écrit dans le message de news:
OjXCY3MwIHA.524 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
Quote:
You can concatenate the columns with:

select col1, col2, col31 + col32 + col33 as col3 from...

--
Rubén Garrigós
Solid Quality Mentors

"Amiro" <Amiro (AT) amiro (DOT) com> wrote in message
news:OHh9JdMwIHA.5580 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Hi,

Using MS Query, I like to query an Informix database and get the result
of multiple rows on a single line. I would like to end up with a specific
colomn showing the result on a signle line which include several rows
like this

Col 1 - Col 2 - Col 3 - Col 3 - Col 3 - Col 3
data data data1 data2 data3 data4

Instead of

Col 1 - Col 2 - Col 3
data data data1
data2

Can I do that in MS Query?

Thanks in advance.

Amiro
data3






Reply With Quote
  #3  
Old   
Amiro
 
Posts: n/a

Default Re: Result on a single line - 05-28-2008 , 09:32 AM



Thanks for replying but it doesn't work. I got an error message. I think it
doesn't like the + sign...
Here is the query:

SELECT inv2.in2_in1_code, inv2.in2_loc_mag, inv2.in2_en1_code, loc1.lc1_loc,
loc1.lc1_seq, loc1.lc1_date
FROM prog.inv2 inv2, prog.loc1 loc1
WHERE loc1.lc1_en1_code = inv2.in2_en1_code AND loc1.lc1_in1_code =
inv2.in2_in1_code AND ((inv2.in2_en1_code='3') AND
(inv2.in2_in1_code='2001492'))

loc1.lc1_loc is the column that we need the data to show on several columns.

Amiro

"Rubén Garrigós" <rgarrigos (AT) solidq (DOT) com> a écrit dans le message de news:
OjXCY3MwIHA.524 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
Quote:
You can concatenate the columns with:

select col1, col2, col31 + col32 + col33 as col3 from...

--
Rubén Garrigós
Solid Quality Mentors

"Amiro" <Amiro (AT) amiro (DOT) com> wrote in message
news:OHh9JdMwIHA.5580 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Hi,

Using MS Query, I like to query an Informix database and get the result
of multiple rows on a single line. I would like to end up with a specific
colomn showing the result on a signle line which include several rows
like this

Col 1 - Col 2 - Col 3 - Col 3 - Col 3 - Col 3
data data data1 data2 data3 data4

Instead of

Col 1 - Col 2 - Col 3
data data data1
data2

Can I do that in MS Query?

Thanks in advance.

Amiro
data3






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

Default Re: Result on a single line - 05-28-2008 , 09:32 AM



Thanks for replying but it doesn't work. I got an error message. I think it
doesn't like the + sign...
Here is the query:

SELECT inv2.in2_in1_code, inv2.in2_loc_mag, inv2.in2_en1_code, loc1.lc1_loc,
loc1.lc1_seq, loc1.lc1_date
FROM prog.inv2 inv2, prog.loc1 loc1
WHERE loc1.lc1_en1_code = inv2.in2_en1_code AND loc1.lc1_in1_code =
inv2.in2_in1_code AND ((inv2.in2_en1_code='3') AND
(inv2.in2_in1_code='2001492'))

loc1.lc1_loc is the column that we need the data to show on several columns.

Amiro

"Rubén Garrigós" <rgarrigos (AT) solidq (DOT) com> a écrit dans le message de news:
OjXCY3MwIHA.524 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
Quote:
You can concatenate the columns with:

select col1, col2, col31 + col32 + col33 as col3 from...

--
Rubén Garrigós
Solid Quality Mentors

"Amiro" <Amiro (AT) amiro (DOT) com> wrote in message
news:OHh9JdMwIHA.5580 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Hi,

Using MS Query, I like to query an Informix database and get the result
of multiple rows on a single line. I would like to end up with a specific
colomn showing the result on a signle line which include several rows
like this

Col 1 - Col 2 - Col 3 - Col 3 - Col 3 - Col 3
data data data1 data2 data3 data4

Instead of

Col 1 - Col 2 - Col 3
data data data1
data2

Can I do that in MS Query?

Thanks in advance.

Amiro
data3






Reply With Quote
  #5  
Old   
Amiro
 
Posts: n/a

Default Re: Result on a single line - 05-28-2008 , 09:32 AM



Thanks for replying but it doesn't work. I got an error message. I think it
doesn't like the + sign...
Here is the query:

SELECT inv2.in2_in1_code, inv2.in2_loc_mag, inv2.in2_en1_code, loc1.lc1_loc,
loc1.lc1_seq, loc1.lc1_date
FROM prog.inv2 inv2, prog.loc1 loc1
WHERE loc1.lc1_en1_code = inv2.in2_en1_code AND loc1.lc1_in1_code =
inv2.in2_in1_code AND ((inv2.in2_en1_code='3') AND
(inv2.in2_in1_code='2001492'))

loc1.lc1_loc is the column that we need the data to show on several columns.

Amiro

"Rubén Garrigós" <rgarrigos (AT) solidq (DOT) com> a écrit dans le message de news:
OjXCY3MwIHA.524 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
Quote:
You can concatenate the columns with:

select col1, col2, col31 + col32 + col33 as col3 from...

--
Rubén Garrigós
Solid Quality Mentors

"Amiro" <Amiro (AT) amiro (DOT) com> wrote in message
news:OHh9JdMwIHA.5580 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Hi,

Using MS Query, I like to query an Informix database and get the result
of multiple rows on a single line. I would like to end up with a specific
colomn showing the result on a signle line which include several rows
like this

Col 1 - Col 2 - Col 3 - Col 3 - Col 3 - Col 3
data data data1 data2 data3 data4

Instead of

Col 1 - Col 2 - Col 3
data data data1
data2

Can I do that in MS Query?

Thanks in advance.

Amiro
data3






Reply With Quote
  #6  
Old   
Amiro
 
Posts: n/a

Default Re: Result on a single line - 05-28-2008 , 09:32 AM



Thanks for replying but it doesn't work. I got an error message. I think it
doesn't like the + sign...
Here is the query:

SELECT inv2.in2_in1_code, inv2.in2_loc_mag, inv2.in2_en1_code, loc1.lc1_loc,
loc1.lc1_seq, loc1.lc1_date
FROM prog.inv2 inv2, prog.loc1 loc1
WHERE loc1.lc1_en1_code = inv2.in2_en1_code AND loc1.lc1_in1_code =
inv2.in2_in1_code AND ((inv2.in2_en1_code='3') AND
(inv2.in2_in1_code='2001492'))

loc1.lc1_loc is the column that we need the data to show on several columns.

Amiro

"Rubén Garrigós" <rgarrigos (AT) solidq (DOT) com> a écrit dans le message de news:
OjXCY3MwIHA.524 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
Quote:
You can concatenate the columns with:

select col1, col2, col31 + col32 + col33 as col3 from...

--
Rubén Garrigós
Solid Quality Mentors

"Amiro" <Amiro (AT) amiro (DOT) com> wrote in message
news:OHh9JdMwIHA.5580 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Hi,

Using MS Query, I like to query an Informix database and get the result
of multiple rows on a single line. I would like to end up with a specific
colomn showing the result on a signle line which include several rows
like this

Col 1 - Col 2 - Col 3 - Col 3 - Col 3 - Col 3
data data data1 data2 data3 data4

Instead of

Col 1 - Col 2 - Col 3
data data data1
data2

Can I do that in MS Query?

Thanks in advance.

Amiro
data3






Reply With Quote
  #7  
Old   
Amiro
 
Posts: n/a

Default Re: Result on a single line - 05-28-2008 , 09:32 AM



Thanks for replying but it doesn't work. I got an error message. I think it
doesn't like the + sign...
Here is the query:

SELECT inv2.in2_in1_code, inv2.in2_loc_mag, inv2.in2_en1_code, loc1.lc1_loc,
loc1.lc1_seq, loc1.lc1_date
FROM prog.inv2 inv2, prog.loc1 loc1
WHERE loc1.lc1_en1_code = inv2.in2_en1_code AND loc1.lc1_in1_code =
inv2.in2_in1_code AND ((inv2.in2_en1_code='3') AND
(inv2.in2_in1_code='2001492'))

loc1.lc1_loc is the column that we need the data to show on several columns.

Amiro

"Rubén Garrigós" <rgarrigos (AT) solidq (DOT) com> a écrit dans le message de news:
OjXCY3MwIHA.524 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
Quote:
You can concatenate the columns with:

select col1, col2, col31 + col32 + col33 as col3 from...

--
Rubén Garrigós
Solid Quality Mentors

"Amiro" <Amiro (AT) amiro (DOT) com> wrote in message
news:OHh9JdMwIHA.5580 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Hi,

Using MS Query, I like to query an Informix database and get the result
of multiple rows on a single line. I would like to end up with a specific
colomn showing the result on a signle line which include several rows
like this

Col 1 - Col 2 - Col 3 - Col 3 - Col 3 - Col 3
data data data1 data2 data3 data4

Instead of

Col 1 - Col 2 - Col 3
data data data1
data2

Can I do that in MS Query?

Thanks in advance.

Amiro
data3






Reply With Quote
  #8  
Old   
Amiro
 
Posts: n/a

Default Re: Result on a single line - 05-28-2008 , 09:32 AM



Thanks for replying but it doesn't work. I got an error message. I think it
doesn't like the + sign...
Here is the query:

SELECT inv2.in2_in1_code, inv2.in2_loc_mag, inv2.in2_en1_code, loc1.lc1_loc,
loc1.lc1_seq, loc1.lc1_date
FROM prog.inv2 inv2, prog.loc1 loc1
WHERE loc1.lc1_en1_code = inv2.in2_en1_code AND loc1.lc1_in1_code =
inv2.in2_in1_code AND ((inv2.in2_en1_code='3') AND
(inv2.in2_in1_code='2001492'))

loc1.lc1_loc is the column that we need the data to show on several columns.

Amiro

"Rubén Garrigós" <rgarrigos (AT) solidq (DOT) com> a écrit dans le message de news:
OjXCY3MwIHA.524 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
Quote:
You can concatenate the columns with:

select col1, col2, col31 + col32 + col33 as col3 from...

--
Rubén Garrigós
Solid Quality Mentors

"Amiro" <Amiro (AT) amiro (DOT) com> wrote in message
news:OHh9JdMwIHA.5580 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Hi,

Using MS Query, I like to query an Informix database and get the result
of multiple rows on a single line. I would like to end up with a specific
colomn showing the result on a signle line which include several rows
like this

Col 1 - Col 2 - Col 3 - Col 3 - Col 3 - Col 3
data data data1 data2 data3 data4

Instead of

Col 1 - Col 2 - Col 3
data data data1
data2

Can I do that in MS Query?

Thanks in advance.

Amiro
data3






Reply With Quote
  #9  
Old   
Amiro
 
Posts: n/a

Default Re: Result on a single line - 05-28-2008 , 09:32 AM



Thanks for replying but it doesn't work. I got an error message. I think it
doesn't like the + sign...
Here is the query:

SELECT inv2.in2_in1_code, inv2.in2_loc_mag, inv2.in2_en1_code, loc1.lc1_loc,
loc1.lc1_seq, loc1.lc1_date
FROM prog.inv2 inv2, prog.loc1 loc1
WHERE loc1.lc1_en1_code = inv2.in2_en1_code AND loc1.lc1_in1_code =
inv2.in2_in1_code AND ((inv2.in2_en1_code='3') AND
(inv2.in2_in1_code='2001492'))

loc1.lc1_loc is the column that we need the data to show on several columns.

Amiro

"Rubén Garrigós" <rgarrigos (AT) solidq (DOT) com> a écrit dans le message de news:
OjXCY3MwIHA.524 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
Quote:
You can concatenate the columns with:

select col1, col2, col31 + col32 + col33 as col3 from...

--
Rubén Garrigós
Solid Quality Mentors

"Amiro" <Amiro (AT) amiro (DOT) com> wrote in message
news:OHh9JdMwIHA.5580 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Hi,

Using MS Query, I like to query an Informix database and get the result
of multiple rows on a single line. I would like to end up with a specific
colomn showing the result on a signle line which include several rows
like this

Col 1 - Col 2 - Col 3 - Col 3 - Col 3 - Col 3
data data data1 data2 data3 data4

Instead of

Col 1 - Col 2 - Col 3
data data data1
data2

Can I do that in MS Query?

Thanks in advance.

Amiro
data3






Reply With Quote
  #10  
Old   
Amiro
 
Posts: n/a

Default Re: Result on a single line - 05-28-2008 , 09:32 AM



Thanks for replying but it doesn't work. I got an error message. I think it
doesn't like the + sign...
Here is the query:

SELECT inv2.in2_in1_code, inv2.in2_loc_mag, inv2.in2_en1_code, loc1.lc1_loc,
loc1.lc1_seq, loc1.lc1_date
FROM prog.inv2 inv2, prog.loc1 loc1
WHERE loc1.lc1_en1_code = inv2.in2_en1_code AND loc1.lc1_in1_code =
inv2.in2_in1_code AND ((inv2.in2_en1_code='3') AND
(inv2.in2_in1_code='2001492'))

loc1.lc1_loc is the column that we need the data to show on several columns.

Amiro

"Rubén Garrigós" <rgarrigos (AT) solidq (DOT) com> a écrit dans le message de news:
OjXCY3MwIHA.524 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
Quote:
You can concatenate the columns with:

select col1, col2, col31 + col32 + col33 as col3 from...

--
Rubén Garrigós
Solid Quality Mentors

"Amiro" <Amiro (AT) amiro (DOT) com> wrote in message
news:OHh9JdMwIHA.5580 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Hi,

Using MS Query, I like to query an Informix database and get the result
of multiple rows on a single line. I would like to end up with a specific
colomn showing the result on a signle line which include several rows
like this

Col 1 - Col 2 - Col 3 - Col 3 - Col 3 - Col 3
data data data1 data2 data3 data4

Instead of

Col 1 - Col 2 - Col 3
data data data1
data2

Can I do that in MS Query?

Thanks in advance.

Amiro
data3






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.