Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crosstab Query 1

Status
Not open for further replies.

BAWC01

Technical User
Nov 23, 2005
79
CH
Hi

I have a crosstab query;

Code:
TRANSFORM Count(Export_1.IATA) AS CountOfIATA
SELECT Export_1.Flight, Export_1.Dest, Count(Export_1.IATA) AS [Total Of IATA]
FROM Export_1
GROUP BY Export_1.Flight, Export_1.Dest
PIVOT Export_1.[0-45];

What I want to do is multiply the balues in the colums by 2, how can I do this

Thanks

Phil
 
try:

Code:
TRANSFORM 2* Count(Export_1.IATA) AS CountOfIATA
SELECT Export_1.Flight, Export_1.Dest, Count(Export_1.IATA) AS [Total Of IATA]
FROM Export_1
GROUP BY Export_1.Flight, Export_1.Dest
PIVOT Export_1.[0-45];

EasyIT
 
Bingo

Simple but Excellent solves my problem

Thanks

Phil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top