19. Suppose you have created a column and by mistake the database was wrong. Then
how to change that mistake?
Ans. ALTER TABLE table_name
MODIFY COLUMN column_name datatype;
20. How to delete all the records?
Ans. DELETE FROM table_name;
21. How to insert a new record?
Ans. INSERT INTO table_name (column1, column2, column3, …)
VALUES (value1, value2, value3, …);
22. How to create a database?
Ans. CREATE DATABASE databasename;
23. How to backup a database?
Ans. BACKUP DATABASE databasename
TO DISK = ‘filepath’;
24. What is validation checking?
Ans. When using SQL, data validation is the aspect of a database that keeps data consistent.
The main types of constraints in SQL are check, unique, not null, and primary
constraints. Check constraints are used to make certain that a statement about the data is
true for all rows in a table.
25. What is stored attribute?
Ans. A stored attribute is an attribute that cannot be derived from other attributes while a
derived attribute is an attribute that can be obtained using another stored attribute. Thus,
this is the main difference between stored and derived attributes in DBMS.
26. Is there any admin control panel in your project?
Ans. Yes.
27. Activity of admin’s in your project?
Ans. In this project, admin can register new user and can also delete any user and ….
28. What is localhost? Why it is necessary?
Ans. The localhost is the default name describing the local computer address also known as
the loopback address. For example, typing: ping localhost would ping the local IP address of
127.0.0.1 (the loopback address). When setting up a web server or software on a web
server, 127.0.0.1 is used to point the software to the local machine.
Localhost is often used in Web scripting languages like PHP and ASP when defining what
server the code should run from or where a database is located.