Database

0 / 5. 0

A database is a central repository for an organization’s resources. An efficient database enables easier administration and enhances the security of the database. However, it is essential to understand the basic controls for the creation of the database tables and the fields. The AUTOTRACE command is a critical element in database administration. In the Oracle database, the AUTOTRACE executes the query and queries the plan table automatically. For the user to use the AUTOTRACE, the user must have the PLUSTRACE role which has its location in ORACLE_HOME/sqlplus/admin directory. Creating a Table called Students The script creates the table Students with fields such as StudentId, LastName, FirstName, AdvisorName and the Faculty. CREATE TABLE Students ( StudentID int, LastName varchar(200), FirstName varchar(200), AdvisorName varchar(200), Faculty varchar(200) ); Creating a Table called Faculty The script creates the table Faculty with fields such as StudentId, LastName, FirstName, AdvisorName and the Faculty. CREATE TABLE Faculty ( StudentID int, LastName varchar(200), FirstName varchar(200), AdvisorName varchar(200), Faculty varchar(200) ); Inserting Data INSERT INTO Faculty (StudentID, LastName, FirstName, AdvisorName, Faculty) VALUES (StudentID, LastName, FirstName, AdvisorName, Faculty); Select Command from the Table The script selects all from the Faculty table with a specific AdvisorName. select * from Faculty WHERE AdvisorName='{$ AdvisorName }'; Inserting Data INSERT INTO Students (StudentID, LastName, FirstName, AdvisorName, Faculty) VALUES (StudentID, LastName, FirstName, AdvisorName, Faculty); Select select * from Students WHERE AdvisorName='{$ AdvisorName

Free Database Essay Sample

Related samples

Zika virus: Transmission form Introduction The Zika virus belongs to the Flaviviradae family, was found for the first time in a monkey called Rhesus febrile and in...

Zika virus: cases and prevention Introduction The World Health Organization (WHO) has confirmed that Zika is a virus caused through the mosquito bite which is...

Zeus The King of Greek mythology Introduction Zeus is the Olympic God of heaven and thunder, the king of all other gods and men and, consequently, the main figure...

Zeus's punishment to Prometheus Introduction Prometheus, punished by Zeus Prometheus, punished by Zeus. Prometheus is a ‘cousin’ of Zeus. He is the son of the...

Comments

Leave feedback

Your email address will not be published. Required fields are marked *