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
Download
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
Portofolio Data Entry-Dikompresi
PDF
100% (2)
Portofolio Data Entry-Dikompresi
9 pages
Ata 75 - Engine Air Cor
PDF
No ratings yet
Ata 75 - Engine Air Cor
23 pages
5.2.2.4 Lab - Using Digital Signatures PDF
PDF
No ratings yet
5.2.2.4 Lab - Using Digital Signatures PDF
5 pages
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
136 610 1 PB
PDF
No ratings yet
136 610 1 PB
1,297 pages
Planar Walldirector Video Controller Brochure Web
PDF
No ratings yet
Planar Walldirector Video Controller Brochure Web
4 pages
Swinburne Referencing Guide How To Use Swinburne Harvard Style Dec 2018
PDF
No ratings yet
Swinburne Referencing Guide How To Use Swinburne Harvard Style Dec 2018
10 pages
Security Pratices IA-QP1
PDF
No ratings yet
Security Pratices IA-QP1
2 pages
Module 4
PDF
No ratings yet
Module 4
6 pages
Ethics in Information Technology: Ethics For IT Workers and IT Users
PDF
No ratings yet
Ethics in Information Technology: Ethics For IT Workers and IT Users
32 pages
D.A.V. Group of Schools: Common Periodic Test Ii - 2022-2023
PDF
No ratings yet
D.A.V. Group of Schools: Common Periodic Test Ii - 2022-2023
3 pages
5th_sem_database_design.drawio
PDF
No ratings yet
5th_sem_database_design.drawio
6 pages
Kymeta U8 Antenna
PDF
No ratings yet
Kymeta U8 Antenna
2 pages
Nevada On Line Monitoring
PDF
No ratings yet
Nevada On Line Monitoring
8 pages
Download ebooks file Intermediate English Grammar for ESL Learners, 3rd ed 3rd Edition Robin Torres-Gouzerh all chapters
PDF
100% (1)
Download ebooks file Intermediate English Grammar for ESL Learners, 3rd ed 3rd Edition Robin Torres-Gouzerh all chapters
47 pages
Sushant's Java Based Technology Blog - 22. Profile Options Related To OAF PDF
PDF
No ratings yet
Sushant's Java Based Technology Blog - 22. Profile Options Related To OAF PDF
3 pages
Quickdraw B
PDF
No ratings yet
Quickdraw B
1 page
MATH 1220 1 College Algebra
PDF
No ratings yet
MATH 1220 1 College Algebra
5 pages
Spiral Model
PDF
No ratings yet
Spiral Model
14 pages
MS222 Module Outline 2122
PDF
No ratings yet
MS222 Module Outline 2122
4 pages
2nd AIML
PDF
No ratings yet
2nd AIML
37 pages
Troubleshooting Spindle Inverters
PDF
No ratings yet
Troubleshooting Spindle Inverters
5 pages
LPS - InstallationManual+3AST005823-DMC Rev D
PDF
No ratings yet
LPS - InstallationManual+3AST005823-DMC Rev D
40 pages
Seminar Log Book
PDF
No ratings yet
Seminar Log Book
17 pages
Masking Salesforce Via JDBC - Application Solutions
PDF
No ratings yet
Masking Salesforce Via JDBC - Application Solutions
3 pages
Lesson 1 Installing IDE
PDF
No ratings yet
Lesson 1 Installing IDE
10 pages
FAT Schedule Special Re Registration Updated 01-12-23
PDF
No ratings yet
FAT Schedule Special Re Registration Updated 01-12-23
225 pages
Landtek Leep Hardness 23
PDF
No ratings yet
Landtek Leep Hardness 23
2 pages
Title For Paper: First Author, Second Author, Third Author
PDF
No ratings yet
Title For Paper: First Author, Second Author, Third Author
2 pages
HiSmart Life - WiFi Instruction 20200715
PDF
No ratings yet
HiSmart Life - WiFi Instruction 20200715
353 pages
Cybersecurity Plan Template
PDF
No ratings yet
Cybersecurity Plan Template
14 pages