100% Zufriedenheitsgarantie Sofort verfügbar nach Zahlung Sowohl online als auch als PDF Du bist an nichts gebunden 4.2 TrustPilot
logo-home
Prüfung

CSE 180 Questions And Answers With Verified Solutions

Bewertung
-
Verkauft
-
seiten
6
Klasse
A
Hochgeladen auf
16-04-2025
geschrieben 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:

Mehr anzeigen Weniger lesen









Ups! Dein Dokument kann gerade nicht geladen werden. Versuch es erneut oder kontaktiere den Support.

Dokument Information

Hochgeladen auf
16. april 2025
Anzahl der Seiten
6
geschrieben in
2024/2025
Typ
Prüfung
Enthält
Fragen & Antworten

Themen

  • cse 180

Inhaltsvorschau

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.

Lerne den Verkäufer kennen

Seller avatar
Bewertungen des Ansehens basieren auf der Anzahl der Dokumente, die ein Verkäufer gegen eine Gebühr verkauft hat, und den Bewertungen, die er für diese Dokumente erhalten hat. Es gibt drei Stufen: Bronze, Silber und Gold. Je besser das Ansehen eines Verkäufers ist, desto mehr kannst du dich auf die Qualität der Arbeiten verlassen.
Nipsey Chamberlain School Of Nursing
Profil betrachten
Folgen Sie müssen sich einloggen, um Studenten oder Kursen zu folgen.
Verkauft
2040
Mitglied seit
5 Jahren
Anzahl der Follower
1524
Dokumente
14950
Zuletzt verkauft
3 Jahren vor
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!!

Mehr lesen Weniger lesen
4.1

362 rezensionen

5
211
4
55
3
55
2
14
1
27

Kürzlich von dir angesehen.

Warum sich Studierende für Stuvia entscheiden

on Mitstudent*innen erstellt, durch Bewertungen verifiziert

Geschrieben von Student*innen, die bestanden haben und bewertet von anderen, die diese Studiendokumente verwendet haben.

Nicht zufrieden? Wähle ein anderes Dokument

Kein Problem! Du kannst direkt ein anderes Dokument wählen, das besser zu dem passt, was du suchst.

Bezahle wie du möchtest, fange sofort an zu lernen

Kein Abonnement, keine Verpflichtungen. Bezahle wie gewohnt per Kreditkarte oder Sofort und lade dein PDF-Dokument sofort herunter.

Student with book image

“Gekauft, heruntergeladen und bestanden. So einfach kann es sein.”

Alisha Student

Häufig gestellte Fragen