Results 1 to 3 of 3

Thread: how to make this query?

  1. #1
    Join Date
    May 2013
    Posts
    2

    Post how to make this query?

    Hello all,

    I have the following table:

    create table Sale(
    bankname char(8) null,
    controlename char(10) not null,
    creditcardnummer numeric(19) null,
    username char(10) not null,
    accountnummer numeric(7) null,
    constraint pk_username primary key(username)
    )

    I want to make a case/trigger where the following happens:
    If the word "Creditcard" has been inserted in controlename then creditnummer must contain numbers else it will be NULL.

  2. #2
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932

  3. #3
    Join Date
    May 2013
    Posts
    2
    thank you for the reply

Posting Permissions

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