DMS questions and answers
DMS questions and answers
19. What are views in SQL? How are they different from
tables?
Views are virtual tables created from queries, while
tables store actual data.
36. What are the SQL data types? Name some commonly used
ones.
Common types are INT, VARCHAR, DATE, FLOAT, and BOOLEAN.
63. How do you fetch the current date and time in SQL?
Use CURRENT_TIMESTAMP., select GETDATE is another.
PL/SQL Basics
82. How can you handle exceptions in PL/SQL? What are the
types of exceptions?
Use predefined (e.g., NO_DATA_FOUND) and user-defined
exceptions in the EXCEPTION section.
83. What are stored procedures? How are they different from
functions in PL/SQL?
Procedures may not return values; functions always return
a value.
Database Security
Transaction Processing
1. What is a transaction in DBMS?
A sequence of operations performed as a single logical
unit of work.