Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
java-first-project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Aishwarya Shetty
java-first-project
Commits
a2732b6e
Commit
a2732b6e
authored
2 months ago
by
aishwarya
Browse files
Options
Downloads
Patches
Plain Diff
Queries changes added
parent
683bde90
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/org/example/Queries/Screenshots/img.png
+0
-0
0 additions, 0 deletions
src/main/java/org/example/Queries/Screenshots/img.png
src/main/java/org/example/Queries/queries.sql
+47
-0
47 additions, 0 deletions
src/main/java/org/example/Queries/queries.sql
with
47 additions
and
0 deletions
src/main/java/org/example/Queries/Screenshots/img.png
0 → 100644
+
0
−
0
View file @
a2732b6e
199 KiB
This diff is collapsed.
Click to expand it.
src/main/java/org/example/Queries/queries.sql
0 → 100644
+
47
−
0
View file @
a2732b6e
INSERT
COMMAND
:
insert
into
employee
(
id
,
name
,
age
,
salary
)
values
(
101
,
'Rohan'
,
24
,
54600
);
insert
into
employee
(
id
,
name
,
age
,
salary
)
values
(
102
,
'Aishwarya'
,
24
,
54600
);
insert
into
employee
(
id
,
name
,
age
,
salary
)
values
(
103
,
'Archana'
,
24
,
54600
);
insert
into
employee
(
id
,
name
,
age
,
salary
)
values
(
104
,
'Vidya'
,
24
,
54600
);
select
*
from
employee
id
|
name
|
age
|
salary
-----+-----------+-----+--------
101
|
Rohan
|
20
|
50000
102
|
Aishwarya
|
21
|
75000
103
|
Archana
|
25
|
45000
104
|
Vidya
|
24
|
54600
(
4
rows
)
UPDATE
Command
:
update
employee
set
name
=
'Vidhu'
where
id
=
104
;
select
*
from
employee
id
|
name
|
age
|
salary
-----+-----------+-----+--------
101
|
Rohan
|
20
|
50000
102
|
Aishwarya
|
21
|
75000
103
|
Archana
|
25
|
45000
104
|
Vidhu
|
24
|
54600
(
4
rows
)
SELECT
Command
:
rohan
=>
select
id
,
name
from
employee
where
salary
>
47000
;
id
|
name
-----+-----------
101
|
Rohan
102
|
Aishwarya
104
|
Vidhu
(
3
rows
)
DELETE
Command
:
delete
from
employee
where
age
=
23
;
select
*
from
employee
;
id
|
name
|
age
|
salary
-----+-----------+-----+--------
101
|
Rohan
|
20
|
50000
102
|
Aishwarya
|
21
|
75000
103
|
Archana
|
25
|
45000
(
3
rows
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment