Mini Project: Management of A Discussion Forum
Mini Project: Management of A Discussion Forum
user profile (name, email, date of registration, number of participation in the forum).
The forum will be divided into different discussion rooms, each room will have
a theme and one of its users will play the role of moderator.
In each chat room, users can create new topics or reply to existing messages.
A subject can be opened or closed (in this case we can no longer post)
inscription DATE,
nb_action INTEGER);
theme VARCHAR2(128),
nb_thread INTEGER);
date_envoi TIMESTAMP,
id_salle INTEGER REFERENCES salle(id_salle),
corps VARCHAR2(512),
Take the time to understand the schema of the database and the constraints of integrity.
Questions
START WITH 1
INCREMENT BY 1
NOMAXVALUE;
Create in the same way sequences to generate the room key and the message key
3. Adding users Create a PL / SQL procedure to add a forum user to the database
AS
/* déclaration*/
BEGIN
/* instuctions*/
END ;
To obtain this date you can use SELECT CURRENT_DATE FROM DUAL
5. Adding a room Create a procedure to add a room to the forum. Create a few rooms.
6. Adding a message Create a procedure to post a message that will be the start of
previous message.
After inserting the new message in the message table, the procedure will
possibly update (if necessary) id_moderateur in the room where the message was posted.
Post some messages and check the correct update of the moderator
7. Closure of subject
The procedure will generate an error if the user is not a moderator in the room where
Create an exception to alert users when they post replies in a closed topic.
9. Tree view
Write a request or a procedure allowing to display the messages and the answers in
arborescent form (in-depth course prefix of the forest of trees representing the threads of
discussion).
Display example: