Complete Query - User Requirement and System Requirement
Complete Query - User Requirement and System Requirement
System Requirements
Components Descriptions
RAM The minimum requirement of RAM is 4 GB
or above for smooth and better performance
of application.
System Capability 64 bits operating system, (x64) based
processor
Operating System Windows 7, 8, 10 and 11
Hard Disk Drive 2 GB free space
Processor Intel, AMD etc. minimum 2.0 GH and more
for better performance
Full set up .net framework 4.0 or above and 1.8 size
(Zip or .exe) file
Table no 1.
Secondly, I have included user requirement in given table which will provide detailed
description of software system’s function, services and operational constrains.
User Requirements
Requirements Description
Login System Administrator can login directly as a default
user. Other users will be created for data
entry only or both (owner & data entry)
privileges.
Product The system should be able to store product
information
Supplier The system should be able to store supplier
information
Elements The system should be able to elements
information and supplier can be one or more
in element area.
Table no. 2 User Requirement
The given ERD has been created using 7 different entities such as problem, specialist, call,
person, element, software and user. The problem table have ProblemID(Primary Key),
Description, CallID, SpecalistID, CreatedDate to manage problem which we get from caller.
The specialist table …..
The relation between problem and call is many to one relationship, relation between problem
to specialist many to relationship, ……
The given ERD has been created successfully as per scenario which is in above image. We
may see an ERD of a FoodMart management with various entities and their attributes in the
diagram.
The relational diagram of United Limited has been successfully created which is indicating
the relationship between entities.
Data Dictionary
As per (Ucmerced.edu, 2023), Data Dictionary is a list of names, definitions, and properties
for data elements in a database, information system or research project. It explains the
meanings and goals of data elements in the context of a project, as well as interpretations,
accepted meanings and representation. A Data Dictionary also contain information about data
pieces in the form of metadata. A Data Dictionary metadata can help to define the scope and
properties of data items, as well as the rules that govern their use and application.
For the project development, we should build a user table which user is an entity with
username and password. We must create product entity to manage information of product
including fields Product Name, Unit, Quantity, Price etc. Then we must build element entity
to manage element information using such properties like Element Name, Category etc. In
addition, we should build a supplier entity to manage information about suppliers using
following properties like supplier name, address, phone, email etc. in order to save record.
The element, attributes and its description is shown on following data dictionary.
User Table
Column Name Data Type Length Constrains Description
(Attributes)
UserID Int 10 Primary Key Unique
identification of
user identity
FirstName Varchar 50 Not Null Require 50
characters data
in various
format
LastName
Username Not Null
Password
Product Table
ProductID Int 10 Primary Key Unique
identification of
Product Identity
ProductName
Unit Varchar 10 Not null Require 50
characters of
unit names
Quantity Int 10 Not null 10 numbers of
integer value
require
Price Money Not null Require amount
value with
decimal places
Element Table
ElementID Primary Key
SupplierID Foreign Key
ProductID Foreign Key
Category
Description
Supplier Table
SupplierID Primary Key
SupplierName
Address
Phone
Email
For the data quality and accuracy to ensure through a procedure has been used in United
Limited for the data validation. It can ensure logical consistency of input and stored data. It is
implemented in designed system to check system report.
Data Check
Data type check ensures in designed system of United Limited that the information entered is
correct data type in domain names. E.g. int data type allows only number value and date data
type only allows a date value to be entered.
Range Check
When working with data that contains numbers, currencies or date and time values, range
check is necessary to identify data within a range.
Length Check
This is used to ensure that the correct number of characters are entered into the field,
preventing it from being too long or too short.
Format check
It is used to verify that data imputed are in right format and eliminate confusion.
Normalization
Introduction to Normalization
Normalization is the process of managing data of our existing database as well as new
database. It puts data in tabular form and make relationship between those tables and remove
redundancy and duplicity of data from our tables to protect our data. In another word, it is a
process that splits single larger tables into multiple tables to organize the data. "The process
of a complex database structure in simple and more reliable database is called
Normalization". The benefits and drawbacks of normalization are as follows: - Improvise
with citation
Benefits of Normalization
Drawbacks of Normalization
1. Reduces performances.
2. Joins.
3. Consume more time.
Types of Normalization:
Normalization 1NF
A relation in which intersection of each row and column contains only one value. Each table
is by default in first normal form.
Example:
Solution of 1NF:
Normalization 2NF
A relation is said to be the second normal form when we normalize the first normal form. In
other word, the output of first normal form will be the input of second normal form. To
achieve the second normal form, we have to remove dependency.
Example:
Solution of 2NF:
Specialist Id Specialist
1 Ram
1 Sita
2 Gita
This table is second normal form.
Normalization 3NF
A relation is said to be the third normal form when we normalize the second normal form. All
non-key attributes are not dependent on any other non-key attributes. Each field has a unique
name. To achieve the third normal form, we have to remove transitive dependency.
Example:
Specialist Id Specialist
1 Ram
2 Sita
3 Gita
Solution of 3NF:
Conclusion:
Conclusion of Task 1
Task 2 question copy paste
You can write you are implementing the query for the help desk system
1. Creating database
Query:
Output:
2. Using database
Query:
Use DesktopApp
Output:
This query helps to use database to select as a current database for further procedure to create
relational databases.
3. Creating tables
Query:
Output:
Query:
Output:
Query:
Output:
Query:
Output:
This query helps to create tables for the application in relational database system using
various constrains and data types.
Output:
This query helps to insert data on product table to manage information of product items in
application.
Query:
Output:
This query helps to insert data in supplier table to manage information of suppliers in
application.
Query:
Output:
This query helps to insert value on element table to manage information for the application
using foreign key constrains.
5. Retrieving data
Query:
Output:
This query helps to retrieve all data from product table which was designed in relational
database system.
Query:
Output:
Using select query on supplier table, data has been retrieved which was designed in relational
database.
Query:
Output:
By the help of select query, data can be retrieve from relational database system which was
built as per requirement.
6. Updating data
Query:
update product
set Unit='pkt'
where ProductID=4
Output;
The update query helps to modify the existing data of product table from relational database
system.
7. Deleting data
Query:
Output:
Using delete query, data can be delete from product table of relational database system and
make sure which is not integrated with other tables.
8. Sorting data
Query:
use DesktopApp
select * from product
order by Price ASC
Output:
This query helps to sort the result in ascending and descending order to manage information
on relational database system.
9. Group by
Query:
select ProductName
from product
group by ProductName
having ProductName='kitkat'
Output:
The Group By statement groups rows that have the same values into summary rows. It helps
to include ( COUNT( ), MAX( ), MIN( ), AVG( ) and SUM( ) ) to aggregate functions.
Query:
Output:
The sum() function helps to summation of value which have same product name on table of
relational database system.
Query:
Output:
This query helps to count the particular row who have similar values in table of relational
database system.
10. Joins
Joins are used to combine the rows of two or more tables to display (retrieve) selected data in
relational database system. There are different kinds of joins as follow:
a. Inner join
This keyword helps to select the records that have matching value on both side on table1 and
table2 in relational database system.
b. Left Join
You can do self
c. Right Join
You can do self
11. Union
Union and union all operation in relational database system, are used to combine the result-
set two or more select queries.
Query:
use DesktopApp
select * from product
union all
select * from prductgodown
Output:
Security and Maintenance on relational database system
12. View
View is nothing more than a saved SQL query to protect original data displaying virtual table
data. It can be used to reduce complexity of the database schema in relational database
system to provide security.
Query:
use DesktopApp
create view vwProByEle
as select ProductName, Unit, Quantity, Price, Category from product
join
element
on (product.ProductID=element.ElementID)
Output:
13. Trigger
Triggers are the SQL odes that are automatically executed to response in certain events on
particular table which is used to provide security on the table. It can handle errors of the
table. Generally, triggers used in data inspection in relational database system.
Query:
Output:
This query helps to create trigger for the insert, update and delete to manage information of
databases.
Query:
use DesktopApp
create procedure spGetProduct
as
begin
select ProductName, Unit, Price from product
end
execute spGetProduct
Output:
Store Procedure on Save:
Query:
Output:
Delete
Query:
Output:
12. Index
Indexes are used to retrieve data from the database more quickly using a clustered index seek.
In other words clustered index seek means its going to scan a particular range of rows.
Syntax:
use DesktopApp
create index index_product
on product (ProductID)
select * from product
where ProductID=9
Output:
Integrated Testing
Describe (not required for assignment)
Stress Testing
Describe (not required for assignment)
Insert Check
Project Name DesktopApp
Test case ID 1
Test Engineer Nirjala Thapa
Test Scenario Insert data in to the database with correct
data type
Test Step Insert the data into the table with the correct
SQL syntax
Test Data Product(‘waiwai’,’kg’,’5’,’20’)
Expected Result System should show success message on
output
Actual Result Success message was shown
Status Pass
Output:
Finally, all the test has been done as expected however there was some error on database
system but it was solved correctly.
Task 5:
User:
Starting SSMS
Connecting Database
Creating table
Inserting data
Updating data
Delete data
View
Trigger
Store Procedure
Technical:
Dataflow diagram banaune
Flowchart banaune
Record video how user can use this application appropriately and upload into drive