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
Tentamen (uitwerkingen)

CSE 180 Questions And Answers With Verified Solutions

Beoordeling
-
Verkocht
-
Pagina's
6
Cijfer
A
Geüpload op
16-04-2025
Geschreven in
2024/2025

CSE 180 Questions And Answers With Verified Solutions What are the application programming approaches? ANS 1. code in a specialized stored procedure language is stored in the database, and its executed in the database when the procedure is called 2. SQL statements are embedded in a host language (ex. C) 3. Connection tools/libraries are used to allow a conventional language to access a database 4. RESTful Web Services using HTTP What are stored procedures? ANS PSM (Persistent Stored Modules): allows us to store procedures as database schema elements mixture of conventional programming languages constructs and SQL what are the alternatives to PSM? ANS - Oracle: PL/SQL (allows you to create and store procedures/functions and can be run from Oracles generic query interface) - PostgreSQL: PL/pgSQL (can be executed from psql - IBM DB2: SQL PL - MS SQL Server and Sybase: Transact-SQL (T-SQL) What is the basic PL/pgSQL form? ANS CREATE PROCEDURE name (parameter list) AS $$ optional_local_declarations $$ LANGUAGE plpgsql; CREATE FUNCTION name (parameter list) RETURNS type AS $$ optional_local_declarations body $$ LANGUAGE plpgsql; What are the parameter modes? ANS mode-name-type triples: - IN mode: value can be used, and value can not be changed (default) - OUT mode: value can not be used, and value can be changed - INOUT mode: value can be used and value can be changed Function parameters may have any of these three modes Procedure parameters can have mode IN or mode INOUT; they can not have mode OUT What are the terms for invoking stored procedures and stored function? ANS a stored function may be used in SQL expressions wherever a value of its return type could appear PostgreSQL Stored Procedures can explicitly execute transactions, but stored functions can't What are the kinds of PL/pgSQL statements? ANS - RETURN; - RETURN expression; - DECLARE name type [:= initial value]; - DECLARE - BEGIN...END Assignment statements:

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

CSE 180 Questions And Answers With Verified Solutions
What are the application programming approaches? ANS 1. code in a specialized stored procedure
language is stored in the database, and its executed in the database when the procedure is called


2. SQL statements are embedded in a host language (ex. C)


3. Connection tools/libraries are used to allow a conventional language to access a database


4. RESTful Web Services using HTTP



What are stored procedures? ANS PSM (Persistent Stored Modules): allows us to store procedures as
database schema elements


mixture of conventional programming languages constructs and SQL



what are the alternatives to PSM? ANS - Oracle: PL/SQL (allows you to create and store
procedures/functions and can be run from Oracles generic query interface)


- PostgreSQL: PL/pgSQL (can be executed from psql


- IBM DB2: SQL PL


- MS SQL Server and Sybase: Transact-SQL (T-SQL)



What is the basic PL/pgSQL form? ANS CREATE PROCEDURE <name> (<parameter list>)

AS $$
<optional_local_declarations>
$$ LANGUAGE plpgsql;


CREATE FUNCTION <name> (<parameter list>) RETURNS <type>
AS $$

, <optional_local_declarations>
<body>
$$ LANGUAGE plpgsql;



What are the parameter modes? ANS mode-name-type triples:



- IN mode: value can be used, and value can not be changed (default)


- OUT mode: value can not be used, and value can be changed


- INOUT mode: value can be used and value can be changed


Function parameters may have any of these three modes


Procedure parameters can have mode IN or mode INOUT; they can not have mode OUT



What are the terms for invoking stored procedures and stored function? ANS a stored function may be
used in SQL expressions wherever a value of its return type could appear


PostgreSQL Stored Procedures can explicitly execute transactions, but stored functions can't



What are the kinds of PL/pgSQL statements? ANS - RETURN;

- RETURN <expression>;
- DECLARE <name> <type> [:= <initial value>];
- DECLARE

- BEGIN...END


Assignment statements:
- <variable> := <expression>;


Statement labels: you can give a statement a label by prefixing a name and colon.

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
16 april 2025
Aantal pagina's
6
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$13.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.
Nipsey Chamberlain School Of Nursing
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
2093
Lid sinds
5 jaar
Aantal volgers
1528
Documenten
14937
Laatst verkocht
3 dagen geleden
LECT EXAMS

FOR THE BEST ASSIGNMENTS,TEST BANKS,EASSY AND TO HELP IN TUTORING I have done papers of various topics and complexities. I am punctual and always submit work on-deadline. I write engaging and informative content on all subjects. Send me your research papers, case studies, psychology papers, etc , and I’ll do them to the best of my abilities. Writing is my passion when it comes to academic work. I’ve got a good sense of structure and enjoy finding interesting ways to deliver information in any given paper. I love impressing clients with my work, and I am very punctual about deadlines. Send me your assignment and I’ll take it to the next level. I strive for my content to be of the highest quality. Your wishes come first— send me your requirements and I’ll make a piece of work with fresh ideas, consistent structure, and following the academic formatting rules For every student you refer to me with an order that is completed and paid transparently, I will do one assignment for you, free of charge!!

Lees meer Lees minder
4.1

370 beoordelingen

5
216
4
56
3
55
2
14
1
29

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