0% found this document useful (0 votes)
27 views

Lec1 Lab CSC371

This document outlines the goals and objectives of a database systems lab course which includes developing a database system project. It discusses learning Structured Query Language (SQL) and using a database management system (DBMS) like Microsoft SQL Server or MySQL. It provides examples of SQL statements for creating databases and tables, inserting data, and selecting data.

Uploaded by

sp22-bse-097
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Lec1 Lab CSC371

This document outlines the goals and objectives of a database systems lab course which includes developing a database system project. It discusses learning Structured Query Language (SQL) and using a database management system (DBMS) like Microsoft SQL Server or MySQL. It provides examples of SQL statements for creating databases and tables, inserting data, and selecting data.

Uploaded by

sp22-bse-097
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

CSC371-DATABASE SYSTEMS I

(LAB)
GOALS AND OBJECTIVES
• How to develop a Database System as a real time project
• How to create a database.
• How to save data using database software.
• How to update data.
• How to generate reports from data collection.
• How to take data backup.
• How to use of Database software.
WHAT WE NEED TO LEARN?
• A computer language that manage data for our system that is called Structured Query
Language or shortly “SQL”.
• A database software where we can run the statements of the language.
STRUCTURED QUERY LANGUAGE
(SQL)
• Case insensitive
• Standard
• Different syntax for different vendors
STRUCTURED QUERY LANGUAGE
(SQL)
• Data Definition Language (DDL)
• For Definition and Creation schema
• Data Manipulation Language (DML)
• Data Updating (Insertion, retrieving and deletion of data)
• Data Control Language (DCL)
• To Grant or Revoke access
DATABASE SOFTWARE (DBMS)
• Microsoft SQL Server
• MySQL
• ORACLE
• Firebase
and many more……….
DOWNLOADING AND
INSTALLATION
• Download:
• https://www.microsoft.com/en-us/download/details.aspx?id=56840
• Installation:
• https://www.youtube.com/watch?v=zk-FnngDy0k
• https://www.youtube.com/watch?v=REBdy2SBXH0
• https://www.youtube.com/watch?v=pRSG2CMX4GY
RESOURCES TO CONSULT AND
PRACTICE
• https://www.w3schools.com/sql/default.asp
• https://www.w3resource.com/sql-exercises/
MICROSOFT SQL SERVER EXPRESS
EDITION
• Database Engine
• Microsoft SQL Server Management studio
DATABASE CREATION
• Syntax
• CREATE DATABASE databasename;
• Create database test
SQL CREATE TABLE STATEMENT

• Syntax
• CREATE TABLE table_name (
column1 datatype,
column2 datatype,
column3 datatype,
....
);
• CREATE TABLE Staff (
staffNo int,
fName varchar(255),
lName varchar(255),
position varchar(255),
gender char ,
DOB date,
salary money,
);
SQL INSERT INTO STATEMENT
• Syntax:
• INSERT INTO table_name (column1, column2, column3, ...)
VALUES (value1, value2, value3, ...);

• insert into staff (staffNo, fName, lName , position, gender, DOB, salary)
values(123,'A','B', 'Manager', 'M','11-02-19', 12000)
THE SQL SELECT STATEMENT

• Syntax
• SELECT column1, column2, ...
FROM table_name;

• select staffNo, fName, lName , position, gender, DOB, salary from staff
• Select * from staff
SUMMARY
• Students should develop a Database System at the end of the term.
• SQL
• DBMS
• Microsoft SQL Server/ MySQL
• How to write a simple query

You might also like