Docsity

Introduction to Database Structures: SQL Query Examples, Assignments of Database Management Systems (DBMS)

Partial preview of the text

Download Introduction to Database Structures: SQL Query Examples and more Assignments Database Management Systems (DBMS) in PDF only on Docsity!

SYM 400 Introduction to Database Structures.

From this assignment The pictures Below will demonstrate all the steps I have taken.

9 WeD Google Chiome.

labagent lopescloud.geu.edu/vmDisplay?id=3763c605-8204-4134-97b5-9acbBaddc 1 0c&loginPrompt=false

7 SQLQuery.sql - EC2AMAZ-MLEISMR AdventureWorks2017 (ECZAMAZ-MLEIMR\rdp_user (52))* - Microsoft SQL Server Management Studio

File Edit View Query Project Tools Window Help

o - G- o0-URP| BNewuey BIQRARI N XPA[2-C -

§ | Adventureworks2017 - | b Becste ® v 32 8[E] ° 55 | S[@]D

et i R 5oL e e+ < I

Connect~ § ¢ declare @QOH int ‘f

[© @ EC2AMAZ-MLEISMR(SQL Server 15 ;::lgf‘:‘mmsi::" Rroduct 0oy from inserted

S W Databases set @MIN - (Select Product MIN from inserted |

@ W System Databases (^) declare @code varchar (

@ 1 Database Snapshots set @code -(select Product code from inserted) ‘

= @ AdventureWorks2017 51if (@QOH<@MIN -

@ 1 Database Diagrams Supdate Products

& M Tables set Product_Redrder-

i where Produst Cods- 1

@ W External Resources end^

@ 1 Synonyms X

@ W Programmability B Messages

@ W Service Broker Conmands compleved successfully. 7

@ W Storage

B 8 Secury Completion time: 2024-10-07703:52:21.7530214400:

@ @ AdventureWorksDW

@ W Security

@ W Server Objects

% W Replication.

® W PolyBase N I

Ahacs O Lok Aumitabitins

< > @ Query executed successfully. EC2AMAZ-MLEISMR (15.0 RTM) ECZAMAZ-'%E(WR\MD_IU. AdventureWorks2017 00:00:00 0 rows

‘Web Virtual Machine - Google Chrome

25 labagent.lopescloud.geu.edu/vmDisplayi

SQLQuery3.sql - EC2AMAZ-MLEIIMR AdventureWorks2017 (ECZAMAZ-MLEIWR[_@JHU (52))* - Microsoft SQL Server Management Studio

File Edit View Query Project Tools Window Help

C-0[B-u-URF Brwauey QIR XTH|2-C- -lRrpEe-

“§ | AdventureWorks2017 - | b Execute viegraee deo w

Object Explorer -

P Products +

cinaith (B8, Lok set ProductQon - 4 %

= @ EC2AMAZ-MLEI9MR(SQL Server 15 A Where Product Code - 1]

5 8 Databases

) 1 System Databases

¥ Database Snapshots

@ AdventureWorks

Database Diagrams

Tables

Views

& 1 Beral Resources & 5 8 oyS 100% -

& ¥ Programmability B Messages

  • Service Broker -

© 1 Sorage (1 row atfected)

R M Secuny (1 xow atfected) @ @ AdventureWorksDW

@ W Security Completion time: 2024-10-07704:04:26.0844784400:

@ 9 Server Objects

@ W Replication -

@ W PolyBase 100% -

Aharsare O Hink Avsilabiling >

< > 0 © Query executed successully. EC2AMAZ-MLEIOMR (15.0RTM) EC2AMAZ-MLEIMR\rdp_us... AdventureWorks2017 00:00:00 0rows

[ Ready tn3 Col 23 Ch23 INS

labagent lopescloud.geu.edu/vmDisplay?id=3763c605-82d4-4134-97b5-9ach8addc10c&loginPrompt=false

"1 SQLQuery3.sql - ECZAMAZ-MLEISMR AdventureWorks2017 (ECZAMAZ-MLEIOMR\rdp_user (52))* - Microsoft SQL Server Management Studio

File Edit View Query Project Tools Window Help

  • B-o-2E P BrwaeyBRI R

AdventureWorks2017 ~ | b Execute v 82

XPa|?2-C- cRpED-

Connect~ E (VI

= @ ECZAMAZ-MLEIOMR (SQL Server 15 o

= W Databases

System Databases

@ W Database Snapshots

© W AdventureWorks

@ 11 Database Diagrams

Tables

@ 1 Views

0 Extermal Resources

@ 1 Synonyms

Programmability

W 1 Service Broker

@ W Storage

Security

@ AdventureWorksDW

@ W Security

@ 99 Server Objects

Replication

@ W PolyBase

£ a0 ik Romiohiin

HUpdate Products

Where product code -

Select* From Audi_logl 1

B Messages

Heg 217, Level 16, State 1, Procedurs ordermors, Line 12 (Batch Start Line 0] A

Haximus stored procedure, function, trigger, or view nesting level exceeded (limit 32)

Completion time: 2024-10-07T04:47:37.8880495+00:

4 Ouer camnletedwith srrars. FC2AMAZ-MIFIOMR (15.0RTM) | FC2AMAZ-MIFIOMRArdn us.. | AdventureWarks2017 | D0:00:00 | 0 rows.

@ Web Virtual Machine - Google Chrome

25 labagent.lopescloud.gcu.edu/vmDisplay?id=3763c605-82d4-4134-97b5-9acb8addc 10c&loginPrompt=false

' SQLQueryl.sql - ECZAMAZ-MLEIOMR AdventureWorks2017 (ECZAMAZ-MLEIOMR\rdp_user (52))* - Microsoft SQL Server Management Studio Quick Launch (Ctr+ L - 8 x

File Edit View Query Project Tools Window Help

B o-2EF| Brewaey B2 2R $¥Fal2-

Nf | AdventureWorks2017 - | b Execute vieBE)rse

Oy e ] o oot oo+ < T

SiCreate table Products + | Connect ¥sycos | (

© @ EC2AMAZ-MLEISMR(SQL Server 15.0.2) Product_Code varchar(10),

5 W Databases Product_Desc varchar(100),

5 W System Databases Product_QOH INT.

® 1 Database Snapshots Product_MIN INT, 2

& 8 AdventureWorks2017 Product_ListPrice FLOAT,

Product_MinOrder INT, ® gwwmwmmwzm Product_edrder. ST

& curity )

5 W Server Objects

@ M Replication Ty =

& W PolyBase

@ W Always On High Availability B Messages

& % Management Conmands completed successfully. =

& 1 Integration Services Catalogs & I 501 ServerAgent Completion time: 2024-10-07T03:10:22.1537360400:

@ [ XEvent Profiler

@ Query executed successfully.

labagent lopescloud.gcu.edu/vmDisplay?id=3763c605-82d4-4134-97b5-9acb8addc10c&loginPrompt=false

SQLQuery3.sq| - ECZAMAZ-MLEISMR AdventureWorks2017 (EC2AMAZ-MLEISMR\rdp_user (52))* - Microsoft SQL Server Management Studio uick Launch (Ctr + P &

File Edit View Query Project Tools Window Help

-0 (8- u-UWF BNwauey RRRAR | XPA(D2-C-[B] -|5 = s

| b obete = v E2E[E] P @ 3 5|

P R SINSERT INTO products -

L. VALUES (1, 'POWER Supplies’, 8, S, 35.00, 25, @),

= 8 EC2AMAZ-MLEIOMR(SQL Server 15 o 2, 'Mard Disks', 7, S, 120.00, 50, @

© i Databases

@ W System Databases SELECT * FROM Products;

@ W Database Snapshots

© @ AdventureWorks2017 4

@ W Database Diagrams

@ 9 Tables

@ 1 Views

@ 0 External Resources

@ 8 ymonyms e

@ W Programmability B Resuts il Messages

® W Service Broker Product Code Product Desc Producl QD Product MIN Product ListPrice Product_ MinDrder Product_ReOrder

@ W Storage 1 | POWER Supples 8 5 s 5 0

@ W Security 2 Hard Disks 7 5 120 50 0

@ @ AdventureWorksDW

@ W Security

& W Server Objects

@ W Replication

@ W PolyBase J

Abarsre O Ll A 3 < > @ Query executed successfully. EC2AMAZ-MLEISMR (15.0RTM) EC2AMAZ-MLEISMR\rdp_us... AdventureWorks2017 00:00:00 2 rows

[ Ready Ln5 Col 24 Ch24 INS.