Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2012

    Unanswered: Help Creating a View

    Hi! I'm creating a view of a file who has a key field that is a character which contains numbers but is padded to the left so i created a view that does this digits(cast(translate(field, '000', '\') as dec(8,0))) when i run the program it says that it has no key. How do i make this new field be the key?

  2. #2
    Join Date
    Apr 2006
    Provided Answers: 11
    view of a file : is this i/series ?
    any detail is welcome (maybe complete error message..)
    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-V11 Fundamentals- DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified

  3. #3
    Join Date
    Sep 2012
    is it possible to create a view with key fields?
    Last edited by luffy; 09-27-12 at 04:58.

  4. #4
    Join Date
    Oct 2009
    221B Baker St.
    Well, yes - depending on exactly what you are asking . . .

    It is perfectably ok to post some clarifying information along with a cryptic question.

    Keep in mind that you know exactly what you are asking, but many do not.

Posting Permissions

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