Welcome Guest, Not a member yet? Register   Sign In
2 table results inside a single model function
#1

[eluser]max123[/eluser]
Is it possible to return 2 query results in a single model function. That means i want to take 2 result sets from 2 related tables by using a single model function. Is it possible?
#2

[eluser]imn.codeartist[/eluser]
store each query result in the array and return it as combined result
#3

[eluser]rogierb[/eluser]
Or use the sql UNION operator to combine two queries

see http://www.w3schools.com/sql/sql_union.asp for more info.




Theme © iAndrew 2016 - Forum software by © MyBB