SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
select row_number() over (partition by s.aircraft_code )rows_count, count(seat_no)seats_count from seats s join aircrafts_data ad on s.aircraft_code = ad.aircraft_code where ad.aircraft_code = '773' group by seat_no,s.aircraft_code

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear