Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

SQL SERVER 2000 yes/no?

Options
  • 19-02-2004 11:17am
    #1
    Registered Users Posts: 7,097 ✭✭✭


    hey all

    I'm just using SQL server! I'm trying to set up a column name callled attendance range. And all I want to be able to enter in this field is either Present or Absent with the default being Absent. How would I write a rule for this!

    I've only started using SQL 2000!

    I have
    @Attendance range = "Present", "Absent" default "Absent"

    but its wrong! Any help would be grately appreciated!!

    thanks in advance!!


Comments

  • Registered Users Posts: 7,097 ✭✭✭mada999


    i got it I think

    @list in ('Present', 'Absent')

    and then i entered 'Absent' in for the default value!


  • Registered Users Posts: 2,472 ✭✭✭Sposs


    Glad i could help :)


  • Closed Accounts Posts: 333 ✭✭McGintyMcGoo


    Well done Sposs :D


Advertisement