- column Description is not in the table Department (page department), i see no
point in adding it.
- page: Mechanic we need a foreign key in the Mechanic Table to refer to the Dept ID, so that we can make the connection between the 2: to be able to assign a mechanic to a dept. At this point there is no connection between them.
from "SIEMENS"."MESSAGE_LOGGING" group by TO_CHAR(TIMESTAMP,'DD-MM-YYYY') asc;
- List of all messages sent by day:
SELECT COUNT(STATUS),TO_CHAR(TIMESTAMP,'DD-MM-YYYY') FROM SIEMENS.MESSAGE_LOGGING GROUP BY TO_CHAR(TIMESTAMP,'DD-MM-YYYY') ORDER BY TO_CHAR(TIMESTAMP,'DD-MM-YYYY') ASC;
- List of all failed messages:
SELECT COUNT(STATUS),TO_CHAR(TIMESTAMP,'DD-MM-YYYY') FROM SIEMENS.MESSAGE_LOGGING where status='failed' GROUP BY TO_CHAR(TIMESTAMP,'DD-MM-YYYY') ORDER BY TO_CHAR(TIMESTAMP,'DD-MM-YYYY') ASC;