Guest_imported
New member
- Jan 1, 1970
- 0
HI!
I have just created a view containing informations from two tables :
CUSTOMER and ADDRESS.
The problem is the following :
In the view, I can see many lines corresponding to the same customer because some customers have many addresses.
I only want one line for each customer in my view because in my software (wich use oracle as database) the user can select the customers in a summary : it is unuseful to see in that summary the same customer many times!
What can I do :
1/to create my view
2/to show each customer only one time in my summary?
Is it possible to use the 'distinct' clause in any way ?
Thank you for your help.
Nicodem
I have just created a view containing informations from two tables :
CUSTOMER and ADDRESS.
The problem is the following :
In the view, I can see many lines corresponding to the same customer because some customers have many addresses.
I only want one line for each customer in my view because in my software (wich use oracle as database) the user can select the customers in a summary : it is unuseful to see in that summary the same customer many times!
What can I do :
1/to create my view
2/to show each customer only one time in my summary?
Is it possible to use the 'distinct' clause in any way ?
Thank you for your help.
Nicodem