66 lines
2.3 KiB
SQL
66 lines
2.3 KiB
SQL
-- Inserimento della nuova categoria 'Tradizioni'
|
|
INSERT INTO `categories` (`name`) VALUES ('Tradizioni');
|
|
|
|
-- Inserimento delle domande per la categoria 'Tradizioni'
|
|
SET @category_id = (SELECT `id` FROM `categories` WHERE `name` = 'Tradizioni');
|
|
|
|
-- Domanda 1
|
|
INSERT INTO `questions` (`category_id`, `question_text`) VALUES
|
|
(@category_id, 'Come si chiamano i dolci tipici di Carnevale a Lacedonia?');
|
|
|
|
SET @question_id = LAST_INSERT_ID();
|
|
|
|
INSERT INTO `answers` (`question_id`, `answer_text`, `is_correct`) VALUES
|
|
(@question_id, 'Chiacchiere', 1),
|
|
(@question_id, 'Struffoli', 0),
|
|
(@question_id, 'Cauzuncielli', 0),
|
|
(@question_id, 'Sfogliatelle', 0);
|
|
|
|
-- Domanda 2
|
|
INSERT INTO `questions` (`category_id`, `question_text`) VALUES
|
|
(@category_id, 'In che mese si svolge la sagra "cingule ricotta e vrasciol"?');
|
|
|
|
SET @question_id = LAST_INSERT_ID();
|
|
|
|
INSERT INTO `answers` (`question_id`, `answer_text`, `is_correct`) VALUES
|
|
(@question_id, 'Agosto', 1),
|
|
(@question_id, 'Luglio', 0),
|
|
(@question_id, 'Settembre', 0),
|
|
(@question_id, 'Giugno', 0);
|
|
|
|
-- Domanda 3
|
|
INSERT INTO `questions` (`category_id`, `question_text`) VALUES
|
|
(@category_id, 'Quale evento storico viene rievocato a Lacedonia con un corteo in abiti d'epoca?');
|
|
|
|
SET @question_id = LAST_INSERT_ID();
|
|
|
|
INSERT INTO `answers` (`question_id`, `answer_text`, `is_correct`) VALUES
|
|
(@question_id, 'La Congiura dei Baroni', 1),
|
|
(@question_id, 'La Battaglia di Lacedonia', 0),
|
|
(@question_id, 'L'arrivo di Garibaldi', 0),
|
|
(@question_id, 'La fondazione della città', 0);
|
|
|
|
-- Domanda 4
|
|
INSERT INTO `questions` (`category_id`, `question_text`) VALUES
|
|
(@category_id, 'Come si chiamano i ravioli dolci farciti con castagne e cioccolata?');
|
|
|
|
SET @question_id = LAST_INSERT_ID();
|
|
|
|
INSERT INTO `answers` (`question_id`, `answer_text`, `is_correct`) VALUES
|
|
(@question_id, 'Cauzuncielli', 1),
|
|
(@question_id, 'Sfogliatelle', 0),
|
|
(@question_id, 'Chiacchiere', 0),
|
|
(@question_id, 'Struffoli', 0);
|
|
|
|
-- Domanda 5
|
|
INSERT INTO `questions` (`category_id`, `question_text`) VALUES
|
|
(@category_id, 'In onore di quale santo vengono allestiti grandi falò il 18 marzo?');
|
|
|
|
SET @question_id = LAST_INSERT_ID();
|
|
|
|
INSERT INTO `answers` (`question_id`, `answer_text`, `is_correct`) VALUES
|
|
(@question_id, 'San Giuseppe', 1),
|
|
(@question_id, 'San Gerardo', 0),
|
|
(@question_id, 'San Nicola', 0),
|
|
(@question_id, 'San Filippo Neri', 0);
|