Mike,thank you very much for your reply.
Does your assignment's documentation explicitly say what fields constitute primary key because docs for URLyBird 1.3.3 doesn't say anything like that, uniquesness is solely maintanied based on recno which is like a serial#.
The database that URLyBird uses contains 7 fields:
1)name(Hotel name)
2)location (city where this hotel is located)
3)size (maximum room occupancy)
4)smoking (smoking or non-smoking flag)
5)rate (charge per night for the room)
6)date (day for which this room is booked)
7)owner (customer name or ID who will occupy this room)
Nothing can be ever unique in the above fields even as a combination because a hotel can have multiple identical rooms and a customer can book multiple rooms in the same hotel for the same day.
recno is the only possible primary key,but we don't allow the client to choose recno i.e where he wants to store the record in the DB file, we control it from within the application.
Hence I don't see any scope for DuplicateKeyException.
Please let me know if you need more info.
Thanks