I can think of three different ways of interpreting your question . . . I suggest you give us an example of the data in the table and what you want to see in the view.
Does the statement: select distinct label, sid, s_size from the_table;
return distinct combination of label, sid, s_size or just distinct label with sid, s_size?
Originally posted by lgaorcl Does the statement: select distinct label, sid, s_size from the_table;
return distinct combination of label, sid, s_size or just distinct label with sid, s_size?
I think you are in the perfect position to find out . . . by trying it.
Does the statement: select distinct label, sid, s_size from the_table;
return distinct combination of label, sid, s_size or just distinct label with sid, s_size?
above query return you distinct of label,sid and s_size.
Thanks for the help! I tried both. The one with max(label) returned 1350 records. What does the max function do here?
Another one returned 660 records. What's the difference between these two scripts?
Do you have any good SQL books to recommend to me?
Bookmarks