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
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
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
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
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
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
Assign 5 SQL
PDF
No ratings yet
Assign 5 SQL
9 pages
cs
PDF
No ratings yet
cs
12 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
SQL Lab Record1
PDF
No ratings yet
SQL Lab Record1
8 pages
MySQL
PDF
No ratings yet
MySQL
16 pages
mysql practials file
PDF
No ratings yet
mysql practials file
9 pages
Visit Report - 312
PDF
No ratings yet
Visit Report - 312
4 pages
9a0 15.06
PDF
No ratings yet
9a0 15.06
22 pages
Glykas 2010 Fuzzy Cognitive Maps
PDF
No ratings yet
Glykas 2010 Fuzzy Cognitive Maps
435 pages
Hot Food Vending Machine
PDF
No ratings yet
Hot Food Vending Machine
20 pages
Wireless Usb
PDF
No ratings yet
Wireless Usb
18 pages
Case Study Sega Sammy
PDF
No ratings yet
Case Study Sega Sammy
10 pages
Cyber War Will Not Take Place
PDF
No ratings yet
Cyber War Will Not Take Place
29 pages
5g Radio Access Network Planning and Optimization Nov 2020
PDF
0% (1)
5g Radio Access Network Planning and Optimization Nov 2020
31 pages
Systems Analysis and Design in a Changing World 7th Edition Satzinger Solutions Manual instant download
PDF
100% (3)
Systems Analysis and Design in a Changing World 7th Edition Satzinger Solutions Manual instant download
46 pages
Emulex® NVMe Over Fibre Channel - User Guide R12.0
PDF
No ratings yet
Emulex® NVMe Over Fibre Channel - User Guide R12.0
49 pages
Introduction To Algorithms by Cormen: Special Features of Book
PDF
No ratings yet
Introduction To Algorithms by Cormen: Special Features of Book
4 pages
Man Eng Mov11.6 MoviconCE Programmer Guide
PDF
No ratings yet
Man Eng Mov11.6 MoviconCE Programmer Guide
68 pages
Fm-Aa-CIA-15 CC 101 Study Guide 1 Final
PDF
No ratings yet
Fm-Aa-CIA-15 CC 101 Study Guide 1 Final
13 pages
Electronics
PDF
No ratings yet
Electronics
33 pages
Integrating Matheuristics and Metaheuristics For Timetabling
PDF
No ratings yet
Integrating Matheuristics and Metaheuristics For Timetabling
10 pages
Cybersecurity Final Report
PDF
No ratings yet
Cybersecurity Final Report
31 pages
Enabling AI Application in Data Science
PDF
No ratings yet
Enabling AI Application in Data Science
644 pages
Packet_Sniffing_And_Spoofing.pdf
PDF
No ratings yet
Packet_Sniffing_And_Spoofing.pdf
26 pages
DCN - 5 - Four Types of Addressing
PDF
No ratings yet
DCN - 5 - Four Types of Addressing
62 pages
Large Language Model (LLM) Interview Question And Answer Course
PDF
No ratings yet
Large Language Model (LLM) Interview Question And Answer Course
10 pages
Csv-File-Ppt-Intro
PDF
No ratings yet
Csv-File-Ppt-Intro
16 pages
List of Links
PDF
No ratings yet
List of Links
2 pages
Kawasaki Robot: Explosion-Proof Painting Robots
PDF
No ratings yet
Kawasaki Robot: Explosion-Proof Painting Robots
10 pages
Reject / Retract Cassette
PDF
No ratings yet
Reject / Retract Cassette
2 pages
Loop
PDF
No ratings yet
Loop
2 pages
03-2. Brainstorming Creative Concepts - Foundr
PDF
No ratings yet
03-2. Brainstorming Creative Concepts - Foundr
2 pages
Rajib Mall Pose
PDF
0% (1)
Rajib Mall Pose
2,358 pages
Executive Post Graduate Certification in Data Science and Artificial Intelligence 1
PDF
No ratings yet
Executive Post Graduate Certification in Data Science and Artificial Intelligence 1
14 pages
Website
PDF
No ratings yet
Website
3 pages
Microsoft Power BI Data Analyst (PL-300T00) H61Q2S
PDF
No ratings yet
Microsoft Power BI Data Analyst (PL-300T00) H61Q2S
3 pages