what is a composite key ? : Sql dba


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More SQL PLSQL Interview Questions

What is trigger in sql and its types?

0 Answers  


How do you create a unique index?

0 Answers  


What are the cursor attributes used in PL/SQL ?

4 Answers  


how does a local variable is defined using t-sql? : Transact sql

0 Answers  


Can dml statements be used in pl/sql?

0 Answers  






suppose I have two table one Emp and other is dpt. Emp table has a field ,dept id,name ,sal and dpt table has a field dept id,dept name. Now I want to find out the emplyee list whose sal is between 2000-3000 from dept x.

7 Answers   Geometric Software, IBM,


SELECT emp_num, years, SUM(salary) FROM sales UNION ALL SELECT emp_id, SUM(takehomepay) FROM marketing What error is present in the sample code above? 1. Queries being combined with the UNION ALL statement are not allowed to have SELECT lists with a different number of expressions. 2. You are not allowed to use aggregate functions within two queries joined by a UNION ALL statement. 3. The UNION ALL statement incorrectly combines the "years" result from the first query with the "SUM (takehomepay)" result from the second query. 4. Unless the UNION ALL statement is replaced with a UNION statement, the queries will return duplicates. 5. The "emp_id" column from the second query must be renamed (or aliased) as "emp_num" so that it corresponds to the column name from the first query. Otherwise, the queries will not execute.

3 Answers  


Can we connect to postgresql using sql developer?

0 Answers  


What are the steps you take to tune(performance tuning) the code in plsql?

4 Answers   Cap Gemini, Infosys, TCS,


In a Distributed Database System Can we execute two queries simultaneously ? Justify ?

3 Answers  


what are the differences between require and include, include_once and require_once? : Sql dba

0 Answers  


What is the function that is used to transfer a pl/sql table log to a database table?

0 Answers  


Categories