nadeemshafi9 Posted May 18, 2006 Share Posted May 18, 2006 schema[b]owner[/b]{ pk ono fname lname adress}[b]property_for_rent[/b]{ pk pno fk ono adress}hi guys here are some tables, the owners own more than one property eachSELECT fname&" "&lname&", "&address AS [owner], pnoFROM property_for_rent p, owner oWHERE p.ono = o.onothe prob is i get seperated records for each property owned by a single guy, i need to show his or her details once and then followed by the pno (property number)'s they hav.let me giv u a visual of what i am getting with the above codeowner 1 pnoowner 1 pnoowner 1 pnoowner 2 pnoowner 3 pnoowner 3 pnoowner 3 pnolet me giv u a visual of what i whant[b]owner 1[/b] pno pno pno[b]owner 2[/b] pno[b]owner 3[/b] pno pno pnoi know you can count things this way using GROUP BY and COUNT(*) so u must be able to show them this way.thanks alot for any help. Quote Link to comment https://forums.phpfreaks.com/topic/9916-sql-syntax/ Share on other sites More sharing options...
nadeemshafi9 Posted June 5, 2006 Author Share Posted June 5, 2006 ignore wot i said up there i didnt know what i was talking about then, i do now, sorry, thanx anyway. Quote Link to comment https://forums.phpfreaks.com/topic/9916-sql-syntax/#findComment-41950 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.