DBAsupport.com Forums - Powered by vBulletin
Results 1 to 10 of 13

Thread: unique pair of columns

Threaded View

  1. #4
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    4,166
    Originally posted by lgaorcl
    The table has three columns for example, label, sid, s_size.

    The view wants these three columns with unique combination of sid and s_size.

    Thanks!
    Why don't you just do this?

    Code:
    SELECT DISTINCT label, sid, s_size
      FROM the_table;
    Last edited by gandolf989; 02-10-2005 at 04:11 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width