PostgreSQL function returning a table without specifying each field in a table
I'm moving from SQL server to Postgresql. In SQL Server I can define table-based function as an alias for a query. Example: Create Function Example(@limit int) As Returns Table As Return Select t1.*, t2.*, price * 0.5 discounted From t1…