PostgreSQL Test
A handler named 'plpgsqlHandle()' is created for installing PL/pgSQL. For creating the handler on 'SwineDB' database you would issue a command:
A PL/pgSQL code block is defined with DECLARE, BEGIN and END. How many such sub blocks can be nested within a block?
A steel production company has two sales outlets. Both outlets are maintaining their data separately in servers SVA and SVD. Both outlets use the same structure for the Sales table. Which method wi...
A wholesale merchant shop needs a report about the sale where total sale of the day is more than $50,000. Which of the following will fulfill this requirement?
Can you define variables in PostgreSQL pl/pgSQL whose value cannot be null?
Choose the correct statement regarding WAL in PostgreSQL:
Choose the correct statement:
Choose the correct statements for a trigger function:
Consider the following structure of the students table: rollno number(4) name varchar(20) course varchar(20) What will be the query to display the c...
Data validation can be implemented at the definition stage through:
Every Boyce-Codd Normal Form(BCNF) is in:
Examine the following query: Create table Person (EmpNo Number(4) not null, EName Char not null, Join_dt Date not null, Pay Number) Which of the following field(s) are created correctly?
Food Cart Accounting System (FOCAS) is maintaining products in the products table, and wants to see the products which are 50 or more numbers far from the minimum stock limit. The structure of the ...
For which of the following languages does PostgreSQL provide an API interface?
How can data be accessed by users who do not have direct access to the tables?
If entity x is existence-dependent on entity y, then what is x called?
In which of the following ways can a value in an array column be modified?
In which order are primary queries and their sub-queries interpreted:
Is function overloading available in PL/pgSQL?
Normalization divides tables in a more useful and meaningful manner. Which statement is correct for the FIRST NORMAL FORM?
Perfect Services provides financial services. You need to display data from the pers table for joining_date from #1/1/2005# to #31/12/2005# and the job should be for Analyst or Clerk or Salesman. W...
Point out the incorrect statement regarding group functions:
Select the appropriate query for the Products table when data should be primarily ordered by ProductGroup. ProductGroup should be displayed in ascending order and CurrentStock should be in descendi...
The names of those departments where there are more than 100 employees have to be displayed. Given two relations, employees and departments, which query should be used? Employee --------- Empno Emp...
The primary key indexing technique does not allow:
There are two tables A and B. You are retrieving data from both tables where all rows from table B and only matching rows from table A should be displayed. Which type of join will you apply between...
There is a column c1 in the table t to which a primary key pk is to be added. What will be the correct syntax?
There is a table t upon which a primary key constraint by the name pk is applied. What will be the correct syntax to drop the constraint?
What do you infer from the following two lines? 1. host all 192.168.1.10 255.255.255.255 reject 2. host all 127.0.0.1 255.255.255.255 t...
What do you understand by the following PL/pgSQL declaration? c_phone customer.contact_no%TYPE;
What does the following update statement do? Update OrderTable set OrderDiscount=OrderDiscount*1.10
What does the pg_dump command do? pg_dump CustomerDatabase
What does the RAISE statement do in PL/pgSQL?
What is a cluster?
What is the default location of the standard elog?
What is the default variable for the PROMPT3?
What is the error in the following query if the students table contains several records? select name from students where name = (select name from students order by name);
What is the first step in installing PL/pgSQL in PostgreSQL?
What is wrong in this query: Select * from Orders where OrderID=(select OrderID from OrderItems where ItemQty>50)
When should sub queries be used?
Which character function should be used to return a specified portion of a character string?
Which clause should be used to display the rows of a table in ascending order of a particular column?
Which component of a DBMS verifies the syntax of the users query?
Which method should be used to drop the master table if its primary key is being referenced by a foreign key in some other table?
Which of the following are not DCL operations?
Which of the following are supported by PostgreSQL?
Which of the following are valid in a declare block?
Which of the following can be used to uniquely identify a row?
Which of the following clauses are not allowed in a single row sub-query?
Which of the following copy commands will work in PostgreSQL?
Which of the following date and time constants are not defined in PostgreSQL?
Which of the following date function(s) are invalid?
Which of the following files controls the host based authentication in PostgreSQL?
Which of the following functionalities is supported by the pg_ctl script?
Which of the following functions is not available in PostgreSQL?
Which of the following geometric types is not defined in PostgreSQL?
Which of the following help PostgreSQL avoid unnecessary locking of records?
Which of the following holds true for functions in PostgreSQL?
Which of the following holds true if you have installed PL/pgSQL in the PgDatabase?
Which of the following holds true when you have defined a function with "isstrict" attribute?
Which of the following is correct for the postmaster -n debugging option?
Which of the following is correct regarding VACUUM?
Which of the following is correct with regard to Password Authentication?
Which of the following is not a single value function?
Which of the following is not an SQL operator?
Which of the following is not defined in the PL/pgSQL?
Which of the following is true about PostgreSQL clients?
Which of the following programming structures is not available in PL/pgSQL?
Which of the following security features is inbuilt in PostgreSQL?
Which of the following statements are incorrect regarding referential integrity?
Which of the following statements are true for views?
Which of the following statements is correct with regard to PostgreSQL?
Which of the following statements is correct?
Which of the following statements is not correct about creating a new operator?
Which of the following statements regarding views are incorrect?
Which of the following techniques can be used to obtain a result which is based on comparing one row of a table with another row of the same table?
Which of the following trigger function variables is not defined?
Which of the following values is not defined to indicate the level of the raise event?
Which of the following variable declarations is not correct?
Which statements hold true for Partition Tables?
Will the following function compile and execute? DECLARE intValue int4; BEGIN intValue := 20 * 20; return intValue; END;
You have defined a function "Calculate()" in the template1 database. What will happen when you create a new database "ManagementDB" there?
You want to manipulate some value in the database upon updation in a trigger function. Which line of the code would be appropriate?
You want to update the last modified timestamp in the orders table. The correct way to do this in a PL/pgSQL function, when the parameter integer order_id is passed, would be: