Professional Documents
Culture Documents
SQL Table and Data
SQL Table and Data
Create a Database
WCT
Create Tables
Employee:EmpId, FirstName, LastName, BirthDate, mailid, GenderCode, Address,
PhoneNumber
Projects:ProjectId,EmpId,ProjectName,Location,Startyear,Duration
Client: ClientId,ProjectId,Projectname,Location,PhoneNumber,DepartmentID
Department:DepartmentId,Deptname,ProjectId,EmployeeID,ScheduleID
HR:EmployeId,Startdate,DeptId,jobtitle,salary,Experience
5.show tables;
6.Get structure of a table
describe tablename;
7.Add coloum to an already created table
alter table tblename add colname datatype;
8.Add coloum to a particular position
alter table tablename add colname datatype after colname;
9.How to insert data into a table
insert into tablename(colnames) values(values);
10.Add multiple rows at a time
insert into tablename(colnames) values(values),(values),(values);