www.webdeveloper.com
Results 1 to 5 of 5

Thread: createTrigger

  1. #1
    Join Date
    Mar 2006
    Posts
    8

    createTrigger

    hi all i have a proble creating atrigger
    here ar my tables

    1- product
    productid (primary)
    price
    ...

    2-orderline
    orderID(foreign to order table)
    productid(foreign to product table)
    priceperunit
    ...

    3-order
    orderid(primary)
    customerid(foreign to customer table)
    salesmanid(foreign to employee table)

    4-customer
    customerid (primary key)
    ...

    now i have to create a trigger that when a new product inserted
    every customer will receive one with a price of 0

    how can i create this one coz as you see there are 2 tables between product and customer
    thx

  2. #2
    Join Date
    Aug 2005
    Location
    The Garden State
    Posts
    5,634
    what database are you using?
    Acceptable Use | SQL Forum FAQ | celery is tasteless | twitter

    celery is tasteless - currently needing some UI time

  3. #3
    Join Date
    Mar 2006
    Posts
    8
    Ms Sql Server

  4. #4
    Join Date
    Mar 2006
    Location
    NCAA Tournament Hell
    Posts
    21
    Quote Originally Posted by mike009
    Ms Sql Server
    What version?

  5. #5
    Join Date
    Mar 2006
    Posts
    8
    2000

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles