I have a sql function that calculate some numbers and returns 1 to 4 records for each run, the function gets clientID (int).
I have a query that selects ALL clients. I want that on each client the function will run and will return its values. something like that:
ClientID | FunctionReturnValue
1 1.1
1 2.1
1 1.9
1 1.3
2 1.9
3 1.3
Any ideas?