data . · web viewselect studentid, studentname where program = ‘bacelor sains...

3
DATA MANIPULATION. OBJECTIVE Students will be required to convert logical database to physical implementation using any DBMS visual tools. Student will design based on the system and ensure that all the related button and linking works as required. QUESTION 1 CREATE ALL THE TABLES USING SQL CODE Consider The Right Domains, Using The Correct data type etc. refer the data according to DBASE:DBStudent. 1. SELECT * FROM tblCourse; 2. SELECT * FROM tblStudentCourse; 3. SELECT * FROM tblStudent; 4. SELECT StudentID, StudentName WHERE program = ‘Bacelor Sains Computer’; 5. SELECT CourseTitle, Description FROM TblCourse WHERE CreditHour = 3; 6. SELECT studentID FROM TblStudentCourse WHERE Status = ‘active’; 7. SELECT StudentID, StudentName FROM TblStudent WHERE Program = ‘Sains Computer’ AND Age<25; 8. SELECT StudentName from TblStudent WHERE Gender not in [‘F’]; 9. SELECT StudentID, CourseID FROM TblStudentCourse WHERE STATUS = ‘active’ ORDER BY StudentID; 10. WRITE the SQL code to DELETE the row for TblStudent named Noriza Satam; 11. WRITE the SQL code to DELETE the row for StudentID= 131464; 12. SELECT tblCourse. CourseTitle,tblStudentCourse.StudentID, tblStudentCourse.CourseID, FROM tblStudentCourse INNER JOIN ON tblCourse.CourseID = tblStudentCourse.CourseID;

Upload: ngobao

Post on 23-Mar-2018

217 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: DATA . · Web viewSELECT StudentID, StudentName WHERE program = ‘Bacelor Sains Computer’; SELECT CourseTitle, Description FROM TblCourse WHERE CreditHour = 3; SELECT studentID

DATA MANIPULATION.

OBJECTIVE

Students will be required to convert logical database to physical implementation using any DBMS visual tools. Student will design based on the system and ensure that all the related button and linking works as required.

QUESTION 1CREATE ALL THE TABLES USING SQL CODE

Consider The Right Domains, Using The Correct data type etc. refer the data according to DBASE:DBStudent.

1. SELECT * FROM tblCourse;2. SELECT * FROM tblStudentCourse;3. SELECT * FROM tblStudent;4. SELECT StudentID, StudentName WHERE program = ‘Bacelor Sains

Computer’;5. SELECT CourseTitle, Description FROM TblCourse WHERE CreditHour =

3;6. SELECT studentID FROM TblStudentCourse WHERE Status = ‘active’;7. SELECT StudentID, StudentName FROM TblStudent WHERE Program =

‘Sains Computer’ AND Age<25;8. SELECT StudentName from TblStudent WHERE Gender not in [‘F’];9. SELECT StudentID, CourseID FROM TblStudentCourse WHERE STATUS =

‘active’ ORDER BY StudentID;10. WRITE the SQL code to DELETE the row for TblStudent named

Noriza Satam;11. WRITE the SQL code to DELETE the row for StudentID= 131464;12. SELECT tblCourse. CourseTitle,tblStudentCourse.StudentID,

tblStudentCourse.CourseID, FROM tblStudentCourse INNER JOIN ON

tblCourse.CourseID = tblStudentCourse.CourseID;

Page 2: DATA . · Web viewSELECT StudentID, StudentName WHERE program = ‘Bacelor Sains Computer’; SELECT CourseTitle, Description FROM TblCourse WHERE CreditHour = 3; SELECT studentID

CASE STUDY

According to Figure 1, answer the following question:

Figure1