Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I get all records from left join in this Select - SQL
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How do I get all records from left join in this Select - SQL
Miscellaneous
Thread ID:
00355646
Message ID:
00355646
Views:
50
When I run this SELECT command it only returns two records.
The left table Servcalls has many records and I want to return all of them in a view. The right table Customers is the parent in a one to many relation with servcalls.

Thanks in advance for your help!

CREATE SQL VIEW CALLBACK AS ;
SELECT ALL Servcalls.*, Customers.company;
FROM appdata!servcalls LEFT JOIN appdata!customers ;
ON Servcalls.prim_key = Customers.prim_key ;
GROUP BY Servcalls.prim_key;
ORDER BY Servcalls.callbacktime
- jim durkin

"The universe is a big place, perhaps the biggest." Kurt Vonnegut
Next
Reply
Map
View

Click here to load this message in the networking platform