Activity For Database
Activity For Database
ITSYS101 Database
Activity for SQL
1. What is SQL?
-SQL stands for Structured Query Language, which is a domain-specific language used to
manage data, especially in relational database management systems (RDBMS). It is a
powerful tool for interacting with databases, allowing users to organize, manage, and retrieve
data efficiently. SQL is a non-procedural language that is based on ANSI standards and is
known for its ease of use, flexibility, and effectiveness in handling structured data. It offers
various commands for data definition, retrieval, manipulation, access control, and more. SQL is
widely used in database programming, client/server communication, internet data access,
distributed databases, and as a gateway language for different DBMS products. It has evolved
over the years with multiple versions and is a fundamental language for anyone working with
databases
2. What is RDBMS
- A Relational Database Management System (RDBMS) is a type of database management
system that stores data in a row-based table structure connecting related data elements. It
includes popular systems like Oracle, IBM's DB2, and Microsoft's SQL Server. RDBMSes are
essential for managing databases efficiently, providing features like data dictionaries, data
storage management, security management, and support for multiple concurrent user access
while ensuring data integrity. SQL is the primary language used for data access in RDBMSes,
offering data manipulation and definition language statements. RDBMSes have evolved to
adapt to cloud architecture and distributed computing, facing competition from NoSQL systems
designed for massive distribution and high scalability. Despite this, RDBMSes remain crucial
for ensuring data consistency in various applications
3. How to create Database. Please create your own database. Write the syntax use in creating a
database.
4. What are the common syntax use in SQL, give at lease 5.
5. Go to https://www.programiz.com/sql/online-compiler/
A. Create Table name CustomerBSIT. And run your program or syntax in SQL. Write down
your syntax and screenshot your output.
Sample Output:
CustomerBSIT
CustomerID CustomerFirstName CustomerLastName CustomerAge CustomerAddress
C. After creating customer table Insert data or record on the table, your record or data is
depend on your own idea. Insert at least 5 records in customer table, Use the syntax for
INSERT.
Write down your syntax and screenshot your output.
Sample Output:
CustomerBSIT
CustomerID CustomerFirstName CustomerLastName CustomerAge CustomerAddress
00014 Ryan Dela Cruz 18 Baler
00081 Aldrin Pimentel 20 Maria Aurora
00123 Jane Roa 19 San Luis
00124 Krisel Picart 25 Maria Aurora
00125 Austin Enriquez 23 Casiguran
D. Then using the syntax Select, select table CustomerBSIT. Write down your syntax and
screenshot your output.
For Example, this is your table for CustomerBSIT, using the syntax Delete the record in the 1st and 2nd
column in the table.
CustomerBSIT
CustomerID CustomerFirstName CustomerLastName CustomerAge CustomerAddress
00014 Ryan Dela Cruz 18 Baler
00081 Aldrin Pimentel 20 Maria Aurora
00123 Jane Roa 19 San Luis
00124 Krisel Picart 25 Maria Aurora
00125 Austin Enriquez 23 Casiguran
Sample Output:
CustomerBSIT
CustomerID CustomerFirstName CustomerLastName CustomerAge CustomerAddress
00081 Aldrin Pimentel 20 Maria Aurora
00123 Jane Roa 19 San Luis
00124 Krisel Picart 25 Maria Aurora
00125 Austin Enriquez 23 Casiguran
CustomerBSIT
CustomerID CustomerFirstName CustomerLastName CustomerAge CustomerAddress
00123 Jane Roa 19 San Luis
00124 Krisel Picart 25 Maria Aurora
00125 Austin Enriquez 23 Casiguran
H. Using the syntax for Drop, delete the ProductBSIT table and CustomerBSIT table. Write
down your syntax for it. Explain what happen to ProductBSIT table and CustomerBSIT
table after running your syntax in programiz.