100% tevredenheidsgarantie Direct beschikbaar na betaling Zowel online als in PDF Je zit nergens aan vast
logo-home
WGU D191 Advanced Data Management Comprehensive Test €11,37   In winkelwagen

Tentamen (uitwerkingen)

WGU D191 Advanced Data Management Comprehensive Test

 5 keer bekeken  0 keer verkocht
  • Vak
  • Data management
  • Instelling
  • Data Management

WGU D191 Advanced Data Management Comprehensive Test WGU D191 Advanced Data Management Comprehensive Test what is important about non-aggregate columns in reference to the GROUP BY clause? - ANSWER - non-aggregate fields must always be included in the GROUP BY clause; otherwise SQL interpreter ...

[Meer zien]

Voorbeeld 3 van de 19  pagina's

  • 15 september 2024
  • 19
  • 2024/2025
  • Tentamen (uitwerkingen)
  • Vragen en antwoorden
  • Data management
  • Data management
avatar-seller
2024




WGU D191 Advanced Data
Management Comprehensive
Test (2024) || Questions &
Answers (Graded A+)




CONCEPTIAL RESEARCHERS | conceptialresearch@gmail.com

, WGU D191 Advanced Data
Management Comprehensive Test
what is important about non-aggregate columns in reference to the GROUP BY
clause? - ANSWER - non-aggregate fields must always be included in the GROUP
BY clause; otherwise SQL interpreter will return an error (it will not know how to
group the results)

GROUPING SETS - ANSWER - SQL keyword that is a better alternative to UNION
ALL statements

syntax for GROUPING SETS - ANSWER - SELECT state, gender, COUNT(*) FROM
customers GROUP BY GROUPING SETS ((state), (gender), (state, gender))
ORDER BY 1, 2;

COPY command - ANSWER - PostgreSQL command that transfers data from a DB
to a file and vice versa

query planner - ANSWER - powerful SQL tool that analyzes a query request,
decides upon an execution path, but does not run; returns the results to the user;
helpful when analyzing overall execution times

syntax of a query planner (and breakdown of each section) - ANSWER - (1)
EXPLAIN (2) ANALYZE SELECT * FROM tablename WHERE clicked_date
BETWEEN '2011-01-01' AND '2011-02-01' (3) LIMIT 5;
(1) - command that will inform the interpreter to not execute the statement, but return
the query plan
(2) - collects stats about tables and indices and stores in internal tables
(3) - additional constraint that allows the planner to show two results - the results of a
LIMIT query aka the indicated tuples, the second the result of a full query unaffected
by the constraint

break down the result of a Query Plan:

Seq Scan on emails (cost = 0.00...9606.58 rows = 418158 width = 79)
(1 row) - ANSWER - Seq Scan = type of scan executed (standard sequential scan)
cost = First number is time expended before scan starts, second number is the total
cost in units of executing queries if all available rows are retrieved
rows = total number of rows that are available to be returned
width = width of each row in bytes
(1 row) = rows of the query plan returned

Cost Units in a query plan - ANSWER - unit that is used to reference how much a
query expends, specifically in the number of disk requests or page fetches

when is a hash index scan most effective? - ANSWER - For describing large data
sets using very little data

, syntax for creating an index using a specific scanning method - ANSWER - CREATE
INDEX indexname ON tablename(columnname) USING [HASH | BTREE]
(columnname);

While indexes make DB searching fundamentally faster, when is it not a effective to
use the index method? - ANSWER - - when the field you are using/DB is constantly
changing
- if the index is out of date
- when you are looking for records containing same search criteria w/in a specific
field (need to create partial index on subset of data)
- when the DB isn't that large (seq scan held in RAM are plenty fast enough)

syntax of creating a function in SQL (mul steps) - ANSWER - CREATE FUNCTION
function_name ([function_arguements])
RETURNS return_type AS $return_name$
[DECLARE return_name return_type;]

BEGIN
<function SQL statements>;

RETURN <some_value>;

END; $return_name$

LANGUAGE PLPGSQL;

stored procedure - ANSWER - special function in PostgreSQL that adds capabilities
to transaction computations; doesn't have a return value, rather IN or INOUT
parameters

syntax for a stored procedure - ANSWER - CREATE OR REPLACE PROCEDURE
procedure_name(IN parameter_name DATATYPE)
BEGIN
UPDATE tablename
SET <equation>
WHERE <condition>;

INSERT INTO tablename(column)
VALUES(TRUE, parameters);

COMMIT;

EXCEPTION WHEN OTHERS THEN
ROLLBACK;
END;
LANGUAGE plpgsql;

SQL trigger - ANSWER - execution of SQL statements or functions in response to a
specific event; also called "events" or "call backs"

Voordelen van het kopen van samenvattingen bij Stuvia op een rij:

√  	Verzekerd van kwaliteit door reviews

√ Verzekerd van kwaliteit door reviews

Stuvia-klanten hebben meer dan 700.000 samenvattingen beoordeeld. Zo weet je zeker dat je de beste documenten koopt!

Snel en makkelijk kopen

Snel en makkelijk kopen

Je betaalt supersnel en eenmalig met iDeal, Bancontact of creditcard voor de samenvatting. Zonder lidmaatschap.

Focus op de essentie

Focus op de essentie

Samenvattingen worden geschreven voor en door anderen. Daarom zijn de samenvattingen altijd betrouwbaar en actueel. Zo kom je snel tot de kern!

Veelgestelde vragen

Wat krijg ik als ik dit document koop?

Je krijgt een PDF, die direct beschikbaar is na je aankoop. Het gekochte document is altijd, overal en oneindig toegankelijk via je profiel.

Tevredenheidsgarantie: hoe werkt dat?

Onze tevredenheidsgarantie zorgt ervoor dat je altijd een studiedocument vindt dat goed bij je past. Je vult een formulier in en onze klantenservice regelt de rest.

Van wie koop ik deze samenvatting?

Stuvia is een marktplaats, je koop dit document dus niet van ons, maar van verkoper conceptialresearchers. Stuvia faciliteert de betaling aan de verkoper.

Zit ik meteen vast aan een abonnement?

Nee, je koopt alleen deze samenvatting voor €11,37. Je zit daarna nergens aan vast.

Is Stuvia te vertrouwen?

4,6 sterren op Google & Trustpilot (+1000 reviews)

Afgelopen 30 dagen zijn er 81849 samenvattingen verkocht

Opgericht in 2010, al 14 jaar dé plek om samenvattingen te kopen

Start met verkopen
€11,37
  • (0)
  Kopen