If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > cross-tab query syntax

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-03-03, 16:45
mrobins mrobins is offline
Registered User
 
Join Date: Nov 2003
Posts: 3
Question cross-tab query syntax

Hi,

I was wondering if anyone knew the INFORMIX syntax required to create a cross-tab query. In MS Access using TRANSFORM and PIVOT functions will create a cross-tab query.

thanx in advance for your help.
Reply With Quote
  #2 (permalink)  
Old 11-04-03, 08:08
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Re: cross-tab query syntax

Quote:
Originally posted by mrobins
Hi,

I was wondering if anyone knew the INFORMIX syntax required to create a cross-tab query. In MS Access using TRANSFORM and PIVOT functions will create a cross-tab query.

thanx in advance for your help.
Hi,

You refer to "select a.*, b.* from localtable a, remotetable b
where a.key = b.key
................

Where, remotetable= databasename@servername:tablename.
Servername= $INFORMIXSERVER (name of connect for tcp/ip, ipx,....)

Gustavo.
Reply With Quote
  #3 (permalink)  
Old 11-05-03, 11:02
mrobins mrobins is offline
Registered User
 
Join Date: Nov 2003
Posts: 3
i'm sorry that does't help me to create a cross-tab query.
Reply With Quote
  #4 (permalink)  
Old 11-20-03, 18:03
drumz drumz is offline
Registered User
 
Join Date: Nov 2003
Posts: 1
Re: cross-tab query syntax

Quote:
Originally posted by mrobins
Hi,

I was wondering if anyone knew the INFORMIX syntax required to create a cross-tab query. In MS Access using TRANSFORM and PIVOT functions will create a cross-tab query.

thanx in advance for your help.
Try
Select a.key, sum(a.value), sum(b.value) from table1 a, table1 b where a.key = b.key and a.valuename = 'FirstVal' and b.valuename = 'SecVal'

If all the data is from a single table.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On