Results 1 to 4 of 4

Thread: View Statement

  1. #1
    Join Date
    Sep 2008
    Posts
    19

    Unanswered: View Statement

    The modifications done to the view were done
    Last edited by gautambali; 01-17-14 at 11:35. Reason: No changes done at this time

  2. #2
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    2,514
    Provided Answers: 11
    can you explain why the "where" predicate can not be used..
    there is no relation between where and col-list
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified
    http://www.infocura.be

  3. #3
    Join Date
    Sep 2008
    Posts
    19
    .. from store1.catattr a .....
    join store1.ATTRDESC N N.ATTR_ID = a.ATTR_ID
    join store1.ATTRDESCVAL v on V.ATTR_ID = N.ATTR_ID where N.NAME='SOLD_IN_YYYY' and V.VALUE!= 'Y' ;


    Using this definition for the view would filter records for NAME col to just 'SOLD_IN_YYYY'. The NAME col has many distinct attributes like 'author' 'published' etc which should be displayed except when the case is 'N.NAME='SOLD_IN_YYYY' and V.VALUE!= 'Y'.

  4. #4
    Join Date
    Apr 2008
    Location
    Iasi, Romania
    Posts
    561
    Provided Answers: 2
    N.name <> 'SOLD_IN_YYYY' or (n.name = 'SOLD_IN_YYYY' and v.value = 'N')
    Florin Aparaschivei
    DB2 9.7, 10.5 on Windows
    Iasi, Romania

Posting Permissions

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