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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

SQL SERVER 2000 yes/no?

  • 19-02-2004 10:17am
    #1
    Registered Users, Registered Users 2 Posts: 7,113 ✭✭✭


    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, Registered Users 2 Posts: 7,113 ✭✭✭mada999


    i got it I think

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

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


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


    Glad i could help :)


  • Closed Accounts Posts: 333 ✭✭McGintyMcGoo


    Well done Sposs :D


Advertisement