Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
6 views
SQL1
Uploaded by
bamulya1324
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Download now
Download
Save SQL1 For Later
Download
Save
Save SQL1 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
6 views
SQL1
Uploaded by
bamulya1324
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Download now
Download
Save SQL1 For Later
Carousel Previous
Carousel Next
Save
Save SQL1 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 2
Search
Fullscreen
create table emp(emp_no int(5),emp_name varchar(20),Basic_sal int(10),HRA
int(10),DA int(10),PF int(10),gross_sal int(10),net_sal int(10));
mysql> desc emp;
+-----------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------+-------------+------+-----+---------+-------+
| emp_no | int(5) | YES | | NULL | |
| emp_name | varchar(20) | YES | | NULL | |
| Basic_sal | int(10) | YES | | NULL | |
| HRA | int(10) | YES | | NULL | |
| DA | int(10) | YES | | NULL | |
| PF | int(10) | YES | | NULL | |
| gross_sal | int(10) | YES | | NULL | |
| net_sal | int(10) | YES | | NULL | |
+-----------+-------------+------+-----+---------+-------+
8 rows in set (0.00 sec)
mysql> insert into emp(emp_no,emp_name,Basic_sal)values(4401,'Amulya',75000);
Query OK, 1 row affected (0.00 sec)
mysql> insert into emp(emp_no,emp_name,Basic_sal)values(4402,'Keerthana',50000);
Query OK, 1 row affected (0.01 sec)
mysql> insert into emp(emp_no,emp_name,Basic_sal)values(4403,'sahasra',38000);
Query OK, 1 row affected (0.00 sec)
mysql> insert into emp(emp_no,emp_name,Basic_sal)values(4404,'geetha',100000);
Query OK, 1 row affected (0.00 sec)
mysql> insert into emp(emp_no,emp_name,Basic_sal)values(4405,'suhan',60000);
Query OK, 1 row affected (0.00 sec)
mysql> insert into emp(emp_no,emp_name,Basic_sal)values(4406,'venkat',85000);
Query OK, 1 row affected (0.00 sec)
mysql> insert into emp(emp_no,emp_name,Basic_sal)values(4407,'rani',75000);
Query OK, 1 row affected (0.00 sec)
mysql> insert into emp(emp_no,emp_name,Basic_sal)values(4408,'shankar',50000);
Query OK, 1 row affected (0.00 sec)
mysql> select*from emp;
+--------+-----------+-----------+------+------+------+-----------+---------+
| emp_no | emp_name | Basic_sal | HRA | DA | PF | gross_sal | net_sal |
+--------+-----------+-----------+------+------+------+-----------+---------+
| 4401 | Amulya | 75000 | NULL | NULL | NULL | NULL | NULL |
| 4402 | Keerthana | 50000 | NULL | NULL | NULL | NULL | NULL |
| 4403 | sahasra | 38000 | NULL | NULL | NULL | NULL | NULL |
| 4404 | geetha | 100000 | NULL | NULL | NULL | NULL | NULL |
| 4405 | suhan | 60000 | NULL | NULL | NULL | NULL | NULL |
| 4406 | venkat | 85000 | NULL | NULL | NULL | NULL | NULL |
| 4407 | rani | 75000 | NULL | NULL | NULL | NULL | NULL |
| 4408 | shankar | 50000 | NULL | NULL | NULL | NULL | NULL |
+--------+-----------+-----------+------+------+------+-----------+---------+
8 rows in set (0.00 sec)
mysql> update emp set HRA=0.15*Basic_sal;
Query OK, 8 rows affected (0.00 sec)
Rows matched: 8 Changed: 8 Warnings: 0
mysql> update emp set DA=0.11*Basic_sal;
Query OK, 8 rows affected (0.00 sec)
Rows matched: 8 Changed: 8 Warnings: 0
mysql> update emp set PF=0.06*Basic_sal;
Query OK, 8 rows affected (0.00 sec)
Rows matched: 8 Changed: 8 Warnings: 0
mysql> update emp set gross_sal=Basic_sal+HRA+DA;
Query OK, 8 rows affected (0.00 sec)
Rows matched: 8 Changed: 8 Warnings: 0
mysql> update emp set net_sal=gross_sal-PF;
Query OK, 8 rows affected (0.00 sec)
Rows matched: 8 Changed: 8 Warnings: 0
mysql> select *from emp;
+--------+-----------+-----------+-------+-------+------+-----------+---------+
| emp_no | emp_name | Basic_sal | HRA | DA | PF | gross_sal | net_sal |
+--------+-----------+-----------+-------+-------+------+-----------+---------+
| 4401 | Amulya | 75000 | 11250 | 8250 | 4500 | 94500 | 90000 |
| 4402 | Keerthana | 50000 | 7500 | 5500 | 3000 | 63000 | 60000 |
| 4403 | sahasra | 38000 | 5700 | 4180 | 2280 | 47880 | 45600 |
| 4404 | geetha | 100000 | 15000 | 11000 | 6000 | 126000 | 120000 |
| 4405 | suhan | 60000 | 9000 | 6600 | 3600 | 75600 | 72000 |
| 4406 | venkat | 85000 | 12750 | 9350 | 5100 | 107100 | 102000 |
| 4407 | rani | 75000 | 11250 | 8250 | 4500 | 94500 | 90000 |
| 4408 | shankar | 50000 | 7500 | 5500 | 3000 | 63000 | 60000 |
+--------+-----------+-----------+-------+-------+------+-----------+---------+
8 rows in set (0.00 sec)
You might also like
iiwub-kdz76
PDF
No ratings yet
iiwub-kdz76
14 pages
Database (Mysql)
PDF
No ratings yet
Database (Mysql)
22 pages
Assignment 2
PDF
No ratings yet
Assignment 2
2 pages
DBMS Final Code
PDF
No ratings yet
DBMS Final Code
60 pages
SQL Class 12 Cbse
PDF
No ratings yet
SQL Class 12 Cbse
5 pages
Mysql 25 Queries
PDF
No ratings yet
Mysql 25 Queries
10 pages
DBMS PRACTICAL 2
PDF
No ratings yet
DBMS PRACTICAL 2
6 pages
Resturent Final
PDF
No ratings yet
Resturent Final
12 pages
SQL Practical
PDF
No ratings yet
SQL Practical
40 pages
Office
PDF
No ratings yet
Office
6 pages
Exp1 DWM
PDF
No ratings yet
Exp1 DWM
10 pages
SEM-4 SQL Assignment - Copy
PDF
No ratings yet
SEM-4 SQL Assignment - Copy
9 pages
Program-9: To Create View and Use of Insert, Delete, Select and Update Commands in View Viewing Contents of Employee Table
PDF
No ratings yet
Program-9: To Create View and Use of Insert, Delete, Select and Update Commands in View Viewing Contents of Employee Table
6 pages
DB6 output
PDF
No ratings yet
DB6 output
4 pages
mysql (2)
PDF
No ratings yet
mysql (2)
12 pages
input and outputs of pl sql
PDF
No ratings yet
input and outputs of pl sql
8 pages
Practical 4
PDF
No ratings yet
Practical 4
11 pages
MySQL 05 April 2025
PDF
No ratings yet
MySQL 05 April 2025
92 pages
Salary Record
PDF
No ratings yet
Salary Record
4 pages
Record Mysql Emp
PDF
No ratings yet
Record Mysql Emp
8 pages
Rahul SQL File 18.04.2024
PDF
No ratings yet
Rahul SQL File 18.04.2024
10 pages
DMS Practical-8 Final
PDF
No ratings yet
DMS Practical-8 Final
2 pages
Group_Functions
PDF
No ratings yet
Group_Functions
6 pages
Mysql Use Arati08
PDF
No ratings yet
Mysql Use Arati08
4 pages
SQL Practicals (1)
PDF
No ratings yet
SQL Practicals (1)
7 pages
Assignment 2B
PDF
No ratings yet
Assignment 2B
5 pages
Assignment 7
PDF
No ratings yet
Assignment 7
6 pages
Practice Joins
PDF
No ratings yet
Practice Joins
14 pages
Table creation (1)
PDF
No ratings yet
Table creation (1)
6 pages
Practical No 02 (B)
PDF
No ratings yet
Practical No 02 (B)
6 pages
Exp 8 Joins
PDF
No ratings yet
Exp 8 Joins
3 pages
Mysql Record File
PDF
No ratings yet
Mysql Record File
10 pages
Practical No.3 - Copy
PDF
No ratings yet
Practical No.3 - Copy
9 pages
Adobe Scan 23 May 2023
PDF
No ratings yet
Adobe Scan 23 May 2023
5 pages
Built in Function Praticals
PDF
No ratings yet
Built in Function Praticals
11 pages
Create View in Mysql
PDF
No ratings yet
Create View in Mysql
10 pages
Mysql by Ajay Tiwari
PDF
No ratings yet
Mysql by Ajay Tiwari
8 pages
7 9 1st July 2024 Session 15
PDF
No ratings yet
7 9 1st July 2024 Session 15
11 pages
sql2
PDF
No ratings yet
sql2
5 pages
Program 3
PDF
No ratings yet
Program 3
3 pages
Dbms
PDF
No ratings yet
Dbms
5 pages
cs
PDF
No ratings yet
cs
12 pages
Assign 5 SQL
PDF
No ratings yet
Assign 5 SQL
9 pages
dbmsALLMergedSK
PDF
No ratings yet
dbmsALLMergedSK
73 pages
Group (A)-2B
PDF
No ratings yet
Group (A)-2B
7 pages
Assignment 4
PDF
No ratings yet
Assignment 4
2 pages
SQL Rev 2
PDF
No ratings yet
SQL Rev 2
21 pages
SQL excercises
PDF
No ratings yet
SQL excercises
12 pages
Cse3a 80 Assgn02
PDF
No ratings yet
Cse3a 80 Assgn02
6 pages
dbmsprac16
PDF
No ratings yet
dbmsprac16
2 pages
Dbm s All Merged
PDF
No ratings yet
Dbm s All Merged
75 pages
Sample Practicalpics
PDF
No ratings yet
Sample Practicalpics
31 pages
Sample Practical IP
PDF
No ratings yet
Sample Practical IP
31 pages
Assignment 5
PDF
No ratings yet
Assignment 5
2 pages
Document From Nishad
PDF
No ratings yet
Document From Nishad
46 pages
DBPR 3
PDF
No ratings yet
DBPR 3
4 pages
106121092 - Prajwal Sundar
PDF
No ratings yet
106121092 - Prajwal Sundar
79 pages
DBMS Practical
PDF
No ratings yet
DBMS Practical
39 pages
Data Manipulation Language (DML)
PDF
No ratings yet
Data Manipulation Language (DML)
2 pages
Sapthagiri College Ofengineering
PDF
No ratings yet
Sapthagiri College Ofengineering
4 pages
Matic Polygon Development - Mobiloitte
PDF
No ratings yet
Matic Polygon Development - Mobiloitte
2 pages
PHP 8 Objects, Patterns, and Practice: Mastering OO Enhancements, Design Patterns, and Essential Development Tools Zandstra download
PDF
100% (3)
PHP 8 Objects, Patterns, and Practice: Mastering OO Enhancements, Design Patterns, and Essential Development Tools Zandstra download
58 pages
A13C Manual of AI Plugin V2.0
PDF
No ratings yet
A13C Manual of AI Plugin V2.0
7 pages
A 5G Framework and Its Analysis of Interference Cancellation in Multi-Tier Heterogeneous Networks
PDF
No ratings yet
A 5G Framework and Its Analysis of Interference Cancellation in Multi-Tier Heterogeneous Networks
8 pages
Keerthi - C++ Resume
PDF
No ratings yet
Keerthi - C++ Resume
6 pages
Matlab and Modelsim Linking
PDF
No ratings yet
Matlab and Modelsim Linking
13 pages
Oracle DBA Interview Questions and Answers - Backup and Recovery
PDF
No ratings yet
Oracle DBA Interview Questions and Answers - Backup and Recovery
3 pages
2.3 User Class and Characteristics
PDF
No ratings yet
2.3 User Class and Characteristics
2 pages
عمر2
PDF
No ratings yet
عمر2
1 page
Chap03 Exercise Solutions
PDF
No ratings yet
Chap03 Exercise Solutions
4 pages
C and C++
PDF
No ratings yet
C and C++
1,093 pages
Document 371342.1
PDF
No ratings yet
Document 371342.1
2 pages
ASUS Aura Sync Compatible Motherboards v2
PDF
No ratings yet
ASUS Aura Sync Compatible Motherboards v2
3 pages
1 - Design of Analog CMOS Integrated Circuits Behzad Razavi Marcado
PDF
No ratings yet
1 - Design of Analog CMOS Integrated Circuits Behzad Razavi Marcado
8 pages
BigCommerce Build An Ecommerce Website
PDF
No ratings yet
BigCommerce Build An Ecommerce Website
21 pages
AIS-1 - Module On Topic 1
PDF
No ratings yet
AIS-1 - Module On Topic 1
2 pages
IBM Redbooks Connections 301 Wiki (010912)
PDF
No ratings yet
IBM Redbooks Connections 301 Wiki (010912)
249 pages
Python Programming Notes
PDF
100% (2)
Python Programming Notes
141 pages
Resume Aaron Sledge
PDF
No ratings yet
Resume Aaron Sledge
3 pages
PC Lenovo
PDF
No ratings yet
PC Lenovo
60 pages
VIDEO VBOX LITE - Technical Specs
PDF
No ratings yet
VIDEO VBOX LITE - Technical Specs
3 pages
Emtech 4 5 6 7 Outline
PDF
No ratings yet
Emtech 4 5 6 7 Outline
8 pages
draft-ietf-behave-dns64-11
PDF
No ratings yet
draft-ietf-behave-dns64-11
33 pages
Helmet Detection
PDF
No ratings yet
Helmet Detection
7 pages
HR306 Ex
PDF
100% (1)
HR306 Ex
150 pages
Cyber Security 2
PDF
No ratings yet
Cyber Security 2
6 pages
Lecture - 01 - CUDA Programming
PDF
No ratings yet
Lecture - 01 - CUDA Programming
52 pages
4 Deep Learning and Its Applications A Review
PDF
No ratings yet
4 Deep Learning and Its Applications A Review
6 pages
CH1M3
PDF
No ratings yet
CH1M3
2 pages