Re: sql queries



harish rg wrote:
I need a help

Table: airlines_data

Table Structure:

Airlines Airport
ADAMAIR US
AERLINGUS UK
AEROFLOT US
AIRBERLIN US

I want the records in given below format

Airport ADAMAIR AERLINGUS AEROFLOT AIRBERLIN
US YES NO YES YES
UK NO Yes NO NO

Please can you help me in this



You can use dynamic pivoting:
http://pratchev.blogspot.com/2008/12/dynamic-pivoting.html

--
Plamen Ratchev
http://www.SQLStudio.com
.