Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Overig

Sym 400- Expanding the Scope of Queries Introduction to Database Structures.

Beoordeling
-
Verkocht
-
Pagina's
5
Geüpload op
07-04-2025
Geschreven in
2024/2025

I have to give the records of the FirstName “John” in the Person table with the full name and the number of records. To do this I input the following query: Employees named John were as follows: SELECT CONCAT(FirstName, ‘ ‘, MiddleName, ‘ ‘, LastName) As Employees_Named_John From Person. Person Where FirstName = John There were 58 results

Meer zien Lees minder
Instelling
SYM 400
Vak
SYM 400

Voorbeeld van de inhoud

SYM 400 Introduction to Database Structures.




I have to give the records of the FirstName “John” in the Person table with the full name and the

number of records. To do this I input the following query: Employees named John were as

follows: SELECT CONCAT(FirstName, ‘ ‘, MiddleName, ‘ ‘, LastName) As

Employees_Named_John From Person. Person Where FirstName = John There were 58 results

, for employees named John altogether To get the column count I used the following query

SELECT*FROM Person. Person Where FirstName = ‘John’

How many person are there in the database, SQL query to get this is:- SELECT Count (*) From

Person. Person Where FirstName = ‘John’. Now I have to remove one record of one John T.

Moore since he was an incorrect entry and we need to remove him using business entity ID. To

do this I use the following SQL transaction: It will remove * From the Person. Person Where

BusinessEntity = ‘18327’ :Person Where BusinessEntity = ‘18327’ :

Next, the human resources manager has asked for the full list of the e-mail address of each

employee. To do this I used this query: SELECT CONCAT (FirstName, ‘ ‘, LastName) as

FullName, pe. EmailAddress From Person. This is achieved through the use of person as the

principal predicate logical path with an inner join person. EmailAddress as pe ON pp

BusinessEntityID = pe EmailAddressID. To do so I simply require finding the full name of the

employee registered with the email address ana17@adventure-works. com when properly

employing a WHERE clause. To do this I added one more line to the query used in question 3:

SELECT CONCAT (FirstName, ‘ ‘, LastName) as FullName, pe. EmailAddress From Person.

Person as pp

Inner Join Person. Having a foreign key relation with the Address EmailAddress as pe ON pp.

BusinessEntityID = pe. id WHERE EmailAddress = ‘’. com This

proves that it is the employee namely David Coleman who had the specific email address and the

addition of this WHERE clause. line saved me a lot of time otherwise they would have been used

to searching for the employee among 19167 results by going through the list one by one starting

from this email. The pictures below will provide a better understanding.

Geschreven voor

Instelling
SYM 400
Vak
SYM 400

Documentinformatie

Geüpload op
7 april 2025
Aantal pagina's
5
Geschreven in
2024/2025
Type
OVERIG
Persoon
Onbekend

Onderwerpen

$25.99
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF


Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
Oldspice Portage Learning
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
1204
Lid sinds
6 jaar
Aantal volgers
867
Documenten
3727
Laatst verkocht
1 maand geleden
999

Lemme help you murder that paper :) Nursing, Math, Biology, Anatomy etc

3.9

208 beoordelingen

5
103
4
43
3
30
2
9
1
23

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen